Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: difficult sql statement

Re: difficult sql statement

From: Marcus Reiter <donotSPAMME_at_microsoft.com>
Date: Wed, 29 Dec 2004 16:58:14 +0100
Message-ID: <cquk93$ik$05$1@news.t-online.com>


I got it!!!!!!!!!

SELECT s.personalNr PersonalNr, a.test, CASE WHEN b.person IS NULL THEN 'false' ELSE 'true' END 'Signed Up'
FROM person s JOIN signedUpTest a LEFT JOIN test b ON s.personalNr = b.person AND a.test = b.test order by s.personalNr, b.person DESC;

( Actually, it's even more complicated - one more join, but that was irrelevant)...

Marcus Received on Wed Dec 29 2004 - 09:58:14 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US