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

Mixed queries on DB2 and SQL


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Wed May 19, 2010 9:07 pm
Reply with quote

1. How can we increase the length of column .

Me : If it is in production we need to take the back up of the existing data (with complete plan to re-process that data back to production) , and modify the table using alter option .

2. How can we add columns in middlle of the table .

Me : If it is in production we need to take the back up of the existing data (with complete plan to re-process that data back to production) , and redefine the table (probably REORG)

3. Without using 'WHERE' condition , how can we retrieve colums having NULL values ??

4. How to retrieve yesterday's date ?

Me : We can do this using currentdate-1 . This might be saved in the predefined tables .
But I am not sure which table . SQL for this please ?

It would be great if you could provide your comments on this .
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Wed May 19, 2010 9:13 pm
Reply with quote

Hi Gousiya ,

I would suggest you to read the manual. It seems that you need to brush up your skills.
Back to top
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Wed May 19, 2010 9:20 pm
Reply with quote

Sure ... thanks !!
Back to top
View user's profile Send private message
ms0033436

New User


Joined: 20 Nov 2008
Posts: 15
Location: Pune

PostPosted: Mon May 31, 2010 5:28 pm
Reply with quote

thanks
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Index related queries DB2 5
No new posts RFE: DB2 support for mixed case names. DB2 0
No new posts Need help with below queries DB2 3
No new posts Summing on Mixed Case Literals SYNCSORT 3
No new posts A not very Christmassy PL/I tale, wit... PL/I & Assembler 3
Search our Forums:

Back to Top