Title: RE: SQL question avoiding 2 views and not in

Hi Stephane,

This may be more effort but have you considered having a security table to join to in the one view, instead of two views?  Multiple views can really hose the optimizer, as I am sure you know.  However adding a table then creates a task for someone, because the data must be maintained.  And it would have to be a complete set of data if you are avoiding the not in clause.

by the way, I wanted to say this earlier but resisted the urge... how do you answer the interview question about being in a stressful situation like a recovery when your last name is Panicker?

Have a great weekend everyone!

Lisa Koivu
Oracle Datababy Administratikiss and Wild Bamboo Stick Wielder.
Fairfield Resorts, Inc.
5259 Coconut Creek Parkway
Ft. Lauderdale, FL, USA  33063



    -----Original Message-----
    From:   Stephane Paquette [SMTP:[EMAIL PROTECTED]]
    Sent:   Friday, December 13, 2002 2:59 PM
    To:     Multiple recipients of list ORACLE-L
    Subject:        SQL question avoiding 2 views and not in

    Hi,

    We have a lot of views. Now the users have a new
    requirement, only the user 'admin' can see all the
    data from the views. The user 'typical' must see all
    data except the one from group 380.

    A basic solution is to create 2 sets of views with one
    set having a group number <> 380.

    I'm looking for a solution to have only one set of
    views. It's friday afternoon and I have no inspiration
    :-(

    TIA


    =====
    St�phane Paquette
    DBA Oracle et DB2, consultant entrep�t de donn�es
    Oracle and DB2 DBA, datawarehouse consultant
    [EMAIL PROTECTED]

    __________________________________________________________
    L�che-vitrine ou l�che-�cran ?
    magasinage.yahoo.ca
    --
    Please see the official ORACLE-L FAQ: http://www.orafaq.com
    --
    Author: =?iso-8859-1?q?Stephane=20Paquette?=
      INET: [EMAIL PROTECTED]

    Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
    San Diego, California        -- Mailing list and web hosting services
    ---------------------------------------------------------------------
    To REMOVE yourself from this mailing list, send an E-Mail message
    to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
    the message BODY, include a line containing: UNSUB ORACLE-L
    (or the name of mailing list you want to be removed from).  You may
    also send the HELP command for other information (like subscribing).

Reply via email to