Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / February 2006

Tip: Looking for answers? Try searching our database.

Views and privileges

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rhodesm_groups@yahoo.com - 20 Feb 2006 14:39 GMT
Hi DB2 gurus!  Question for you all.  Is the following possible (mainly
the last two bullets)?

*  Already have table called XYZ of information keyed by SSNs.
*  Create an xref table for SSNs to employee numbers.  We'll call this
table XREF.
*  Create a view that joins XYZ and XREF, showing all columns of XYZ,
but with the employee number instead of SSN.
*  Remove select access on XYZ and XREF for all users.
*  Users can perform selects on the view.

Thanks,
Mike
Serge Rielau - 20 Feb 2006 15:59 GMT
> Hi DB2 gurus!  Question for you all.  Is the following possible (mainly
> the last two bullets)?
[quoted text clipped - 9 lines]
> Thanks,
> Mike

Sure, no problem. Just make ser you have at least an informational (NOT
ENFORCED) RI constraint, so DB2 knows it can internally substitute and
do join elimination whenever the empno is not required.

Cheers
Serge
Signature

Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

Knut Stolze - 20 Feb 2006 17:26 GMT
> Hi DB2 gurus!  Question for you all.  Is the following possible (mainly
> the last two bullets)?
[quoted text clipped - 6 lines]
> *  Remove select access on XYZ and XREF for all users.
> *  Users can perform selects on the view.

That's perfectly fine and the traditional mechanism to implement more
fine-grained access rules.

Signature

Knut Stolze
DB2 Information Integration Development
IBM Germany

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.