kyriakos70
Programmer
Hello,
I have a question, I have 2 tables master/detail, master has a primary key and a field called name detail has 5 fields with details of the company name and a primary key and the foreign key, I want to create a query which will search for a master table name and in the detail table if a field value exists eg. select * from master union select * from detail where master.name like 'something' and (if master name exists) detail.field like 'something'. Is there a way to do this? I only know union for the rest I am not sure.
Thank you
Kyriakos
I have a question, I have 2 tables master/detail, master has a primary key and a field called name detail has 5 fields with details of the company name and a primary key and the foreign key, I want to create a query which will search for a master table name and in the detail table if a field value exists eg. select * from master union select * from detail where master.name like 'something' and (if master name exists) detail.field like 'something'. Is there a way to do this? I only know union for the rest I am not sure.
Thank you
Kyriakos