opgaven går ud på. find gennemsnitslønnen for de personer, der bor i et postdistrikt, hvor s indgår
jeg har skrevet dette SELECT person.navn FROM person where person.postnr = (SELECT postnummer.postnr FROM postnummer where postnummer.postdistrikt LIKE '%s%') (SELECT postnummer.postdistrikt,postnummer.postnr FROM postnummer,person WHERE person.postnr = postnummer.postnr)
får følgende fejl: erver: Msg 512, Level 16, State 1, Line 17 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
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.