Hi,
i have 3 table like this
Tabel tbCountry
id (PK)
name
Tabel tbCity
id (PK)
name
id_country (FK tbCountry)
Tabel tbGuest
id (PK)
name
id_country (FK tbCountry)
id_city (FK tbCity)
how do I display it like in SQL below with Aurelius?
id (PK)
name
Tabel tbCity
id (PK)
name
id_country (FK tbCountry)
Tabel tbGuest
id (PK)
name
id_country (FK tbCountry)
id_city (FK tbCity)
how do I display it like in SQL below with Aurelius?
SELECT A.ID,A.NAME,B.NAME AS COUNTRY,C.NAME AS CITY
FROM TBGUEST A
LEFT JOIN TBCOUNTRY B ON (B.ID=A.ID_COUNTRY)
LEFT JOIN TBCITY C ON (C.ID=A.ID_CITY)
FROM TBGUEST A
LEFT JOIN TBCOUNTRY B ON (B.ID=A.ID_COUNTRY)
LEFT JOIN TBCITY C ON (C.ID=A.ID_CITY)