Hello everyone,
I just was hoping someone could help me out with this query.
I have two tables.
Table one: Users
Table two: Usersmedia
I would like to select all records from users; however, I would like to link usersmedia rows that match field(ID) only if they exist.
I know this isn't that clear. I will try an example.
I want this to work,
Select * from users, usersmedia where users.ID=usersmedia.ID;
But if there isn't a line in usersmedia that has the corresponding ID then I would like only the fields from users for the ID
Select * from users;
The problem is if I use the first line and there is no corresponding ID in usersmedia then I get no row for that ID. I would still like the fields from users even if their is no match in usersmedia
I hope this isn't to incoherant.
Thanks,
--SL