Hi !
subNummer Nummer
S1 ________ 1000
S2 ________ 1000
S2 ________ 1001
S2 ________ 1002
S3 ________ 1002
S4 ________ 1001SELECT subNummer FROM tabelle where nummer in (1000,1001,1002)
Liefert ALLE subNummern (S1 bis S4) die entweder 1000, 1001 oder 1002 in der Spalte nummer enthalten haben. Ich brauche aber nur die subNummern die 1000 und 1001 und 1002 enthalten haben (im Beispiel S2). Ich bekomms einfach nicht hin, würde mich um Hilfe freuen!
select a.subnummer from tabelle a, tabelle b, tabelle c where a.nummer=1000 and a.subnummer=b.subnummer and b.nummer=1001 and a.subnummer=c.subnummer and c.nummer=1002;
Gruß
Hans