Hi everyone, I'm new here. 🙂
I'm trying to wrap my head around nested queries. Here is my setup...
I have 2 tables in which I do a SELECT from with the following query:
SELECT * FROM `list_name`, `list_items` WHERE [B]list_name.id[/B] = 'xx' AND [B]list_items.list_name_id[/B] = 'xx'
list_name.id = primary id on list_name;
list_items.list_name_id = foriegn key to connect to list_name;
TABLE list_name only returns one result, the name of the list.
TABLE list_items returns multiple items.
I'm fairly new to MySQL, is there a better way to perform this query on two tables? such as using a nested query?
Thanks in advance.