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

Home -> Community -> Usenet -> c.d.o.server -> Re: Simple SQL question

Re: Simple SQL question

From: Rowan McCammon <rowan_mccammon_at_nospam.amp.com.au>
Date: Thu, 28 May 1998 15:10:35 +1000
Message-ID: <356CF1CB.3D6C8A04@nospam.amp.com.au>


Hi Greg,

One way is:

SELECT #USER
FROM USER_TABLE
WHERE #USER NOT IN (SELECT DISTINCT #USER FROM USER_LEVEL_TABLE); Regards,
Rowan.

Greg gpl :-) wrote:

> This maybe incredibly stupid question but, what would be the SQL statement that
> would report the users that don't have an user_level entry? See the ERD below.
>
> Thanks,
> Greg
> lechkung<<at>>detroitedison<<dot>>com
> lechkung<<at>>tir<<dot>>com
>
> +-------------------+
> |LEVEL_TABLE |
> | #level |
> | |
> +-------------------+
> |
> /|\
> +-------------------+
> |USER_LEVEL_TABLE |
> | #user |
> | #level |
> | |
> +-------------------+
> \|/
> |
> +-------------------+
> |USER_TABLE |
> | #user |
> | |
> +-------------------+

--
Remove the anti-spamming thingy from my email address to reply to me.

The opinions expressed are my own and do not represent the opinions of my company. Received on Thu May 28 1998 - 00:10:35 CDT

Original text of this message

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