I have two tables, one for users and the other one for messages.
User contains: id, name, address, etc etc
Message contains: id, userid, status, etc etc
How to get a table that contains the User.Name and the number (count?) messages received by that user (Message.userid )?
One step forward:
How to get a table that contains the User.Name and the number (count?) messages received by that user (Message.userid ) with Message.status = Unread?
User contains: id, name, address, etc etc
Message contains: id, userid, status, etc etc
How to get a table that contains the User.Name and the number (count?) messages received by that user (Message.userid )?
One step forward:
How to get a table that contains the User.Name and the number (count?) messages received by that user (Message.userid ) with Message.status = Unread?
Comment