Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

In db2 locking system is managed by lockmanager or IRLM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
venkatarao

New User


Joined: 19 Dec 2004
Posts: 24
Location: hyderabad

PostPosted: Thu Mar 03, 2005 9:48 am    Post subject: In db2 locking system is managed by lockmanager or IRLM
Reply with quote

1.in db2 locking system is managed by lockmanager or irlm
2.list the 2nd maxsalary of employee in emp table by using simple quirry.
3.can we update primary key in a table
Back to top
View user's profile Send private message

lakshmi_546

New User


Joined: 15 Feb 2005
Posts: 5

PostPosted: Thu Mar 03, 2005 10:12 am    Post subject:
Reply with quote

hai
1a.
2a. select dist(sal) from emp.a where n=(select count dist(sal) from emp.b where a.sal<=b.sal)
here n=1,2 3,---------
for ur query n=2
3a.
Back to top
View user's profile Send private message
skkp2006

New User


Joined: 14 Jul 2006
Posts: 93
Location: Chennai,India

PostPosted: Thu Nov 23, 2006 4:30 pm    Post subject: DB2 Interview Questions
Reply with quote

The answer to the second question is .....

2. select max(sal) from emp where salary not in(select max(sal) from emp)
3.And i think u can update the primary key of a table and the restriction is only for foreign key when we update it with a value which is not in the primary key list ... sqlcode -530 it seems
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Thu Nov 23, 2006 5:05 pm    Post subject:
Reply with quote

Hi There,

I think we cant update the primary key of DB2 table the only way to delete existing row & insert new row with new value.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Get system time in micro second or cl... lind sh CICS 11 Mon Sep 05, 2016 11:14 pm
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am
No new posts System availability in CICS Robert Sample CICS 10 Sat Jun 04, 2016 4:35 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us