0
Ich brauche diese Abfrage in PostgreSQL zu verbessernverbessern Abfrage in PostgresSQL
select a.*
,(select num
from TABLEA c
where c.one = a.one
and c.two = a.two
and c.three = a.three
and c.four= a.four
and c.five = 'A') as A
,(select num
from TABLEA c
where c.one = a.one
and c.two = a.two
and c.three = a.three
and c.four = a.four
and c.five = 'B') as B
,(select num
from TABLEA c
where c.one = a.one
and c.two = a.two
and c.three = a.three
and c.four = a.four
and c.five = 'C') as C
from TABLEB a
Ich möchte nur ein wählen, um einen bekommen, B, C ....
Ihre Anfrage ist unglaublich! Vielen Dank!! –