Autor Zpráva
wafle
Profil *
zdravim, nejak se mi porad nedari vybrat z jedne tabulky hodnoty, ktere ve druhe nejsou. nevite pls nekdo? :)
Kajman_
Profil *
select t1.hodnota from tabulka1 t1 where t1.hodnota not in (select t2.hodnota from tabulka2 t2)

starší verze bez vnořených dotazů
select t1.hodnota from tabulka1 t1 left join tabulka2 t2 on t1.hodnota=t2.hodnota where t2.hodnota is null

nebo tak nějak
wafle
Profil *
jee, dik moc... funguje skvele :)
Toto téma je uzamčeno. Odpověď nelze zaslat.

0