• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

select from a table minus other table?

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have two select statment that are working fine getting data from two tables :

To get all roles:

SELECT roles

FROM dba_roles

WHERE ROLE LIKE 'COEUS%' AND ROLE NOT IN ('COEUSWEB', 'COEUSUSER');


To get all roles for user

SELECT roles

FROM dba_role_privs

WHERE grantee = upper(as_userid);


How to have a select statment that have all roles from dba_roles table minus the roles dba_role_privs for a user ?

Thanks, your help is appreciated.
[ October 27, 2008: Message edited by: Bear Bibeault ]
 
author & internet detective
Posts: 42148
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about:

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic