Denne side indeholder artikler med forskellige perspektiver på Identity & Access Management i private og offentlige organisationer. Artiklerne behandler aktuelle IAM-emner og leveres af producenter, rådgivere og implementeringspartnere.
Så skal du ændre i subview fra UNION til UNION ALL og du skal lave dit udtræk med en GROUP BY a la
select id, type, emne, count(*) as OK1 from subview where ok=1 group by ok union all select id, type, emne, count(*) as OK0 from subview where ok=0 and not exists (select 1 from subview v where s.id=v.id and ok=1) group by ok
create view subview as select * from tabel1 union all select * from tabel2 union all select * from tabel3 go
select id, type, emne, ok, count(*) as antal from subview where ok=1 group by ok union all select id, type, emne, ok, count(*) from subview where ok=0 and not exists (select 1 from subview v where s.id=v.id and ok=1) group by ok
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.