Jeg kan ikke se hvad der der galt i denne kode. Måske kan du?
SELECT fag FROM fagbedoemmere
WHERE cpr = (SELECT cpr NOT LIKE 1234564321 FROM bedoemmeretilproeve WHERE (dag, maaned, aar) IN (SELECT dag, maaned, aar FROM bedoemmeretilproeve WHERE cpr = 1234564321) ); Neden under ses fejlmedelelsen
ERROR: operator does not exist: bigint = boolean HINT: No operator matches the given name and argument type(s). You may need to add explicit type casts.
Nyt problem der jeg forsøgte at bygge det anerledes op
Prøvede at bygge det lidt anerledes op
SELECT fag FROM fagbedoemmere WHERE cpr = (SELECT cpr FROM bedoemmeretilproeve WHERE fag = (SELECT fag FROM bedoemmeretilproeve WHERE cpr = 1234564321) AND dag = (SELECT dag FROM bedoemmeretilproeve WHERE cpr = 1234564321) AND maaned = (SELECT maaned FROM bedoemmeretilproeve WHERE cpr = 1234564321) AND aar = (SELECT aar FROM bedoemmeretilproeve WHERE cpr = 1234564321) );
Fejlen er
ERROR: more than one row returned by a subquery used as an expression
Prøv : Select fagbedoemmere.fag FROM fagbedoemmere, bedoemmeretilproeve WHERE fagbedoemmere.cpr = 123456789 and fagbedoemmere.cpr = bedoemmeretilproeve.cpr
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.