Hi, I have parent / child tables:
parent table:
id | description
1 | Alexandra 2 | Natalia
child table:
id | id_parent | description
1 | 1 | Programmer 2 | 1 | Surgery 3 | 2 | Programmer 4 | 2 | IT
How to return set of record according filters, like if we want to get all records with "Programmer" we would like to have set:
response table:
id_parent | id_child | description (from child)
1 | 1 | Programmer
2 | 3 | Programmer
BUT if filter looks like: "Programmer" AND "Surgery", query MUST return only:
response table:
id_parent | id_child | description (from child)
1 | 1 | Programmer
1 | 2 | Surgery
As you can see I also need some kind of "join" in order to "connect" description and code in child table.
Thanks in advance.