Hi can some body please help I'm stuck or lost my brain!

Hi I'm looking for a way to make my SQL [where] shorter clause that is and I would like to first of all with the basic data, which for me is the country code for the United Kingdom.

Select

AA.person1,

BB.scheme2,

CC.document3,

DD.xxxxxxxx

Of

TABLE. PERSON AA.

TABLE. SCHEMA BB,

TABLE. DOCUMENT CC,

TABLE. PRODUCT PR

where

AA. COUNTRYCODE = "UK" and BB. COUNTRYCODE = "UK" and CC. COUNTRYCODE = "UK" and DD. COUNTRYCODE = "UK".

Is it possible to combine the id of the table and don't have that 1 x countrycode = "Ru" instead of the above?

All help greatly received and thanks in advance

where 'UK' = ALL (AA.COUNTRYCODE, BB.COUNTRYCODE, CC.COUNTRYCODE, DD.COUNTRYCODE )

or

select * from a join b using(countrycode)
join c using(countrycode)
join d using(countrycode)
where countrycode = 'UK';

Tags: Database

Similar Questions

Maybe you are looking for