One-to-many Query in MySQL
问题 What's the best way to query one-to-many in MySQL? This is a simplified version of the database I am working on (if anything doesn't look right tell me): CREATE TABLE Tenant( tenant_id int NOT NULL, first_name varchar(20), last_name varchar(20), PRIMARY KEY (tenant_id) ); CREATE TABLE Rent( tenant_id int NOT NULL, month enum('JAN', 'FEB', ...), date_paid date NOT NULL, amount_paid int NOT NULL, FOREIGN KEY (tenant_id) REFERENCES Tenant(tenant_id) ); (The reason that there is month and date