IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Deafult Table Qualifier in Select Statement


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ganga

New User


Joined: 16 Mar 2005
Posts: 7

PostPosted: Wed Mar 16, 2005 10:39 am
Reply with quote

suppose if i am creating a table as
USERID.STAFF
DB2.STAFF.
if i am writing a query as select * from staff...
which staff it will select
is it db2.staff or userid.staff?
let me explain please
thanks&Regards
ganga
Back to top
View user's profile Send private message
brahmanandareddy

New User


Joined: 16 Dec 2004
Posts: 44
Location: Hyderabad

PostPosted: Wed Mar 16, 2005 2:08 pm
Reply with quote

Hi Ganga,

First, post ur queries in new topic...

Here the answers are...

suppose if i am creating a table as
USERID.STAFF
DB2.STAFF.
if i am writing a query as select * from staff...
which staff it will select

A. If u mention select * from staff....the staff (if it exists) table created under the userid currently u r logged in will be retrieved. If it is not there in the current user id u will have to specify userid for which u should have previleges to access it.


Thank You,
Brahmananda Reddy. K.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To join 2 tables and to join 3rd tabl... DB2 8
No new posts Create a specific record/file based o... SYNCSORT 8
No new posts Extract ISPF table column headings CLIST & REXX 2
No new posts Unload and Load ISPF Table TSO/ISPF 4
No new posts ISPF Table to add a new column TSO/ISPF 1
Search our Forums:


Back to Top