| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
nagalakshmi
Joined: 23 Feb 2005
Posts: 7
|
| Posted: Thu Feb 24, 2005 9:20 pm Post subject: How many nested Queries at maximum can a Select statement |
|
|
Hi,
Please Clarify questions being asked for interview :
1. How many nested Queries at maximum can a Select statement can have?
2. How many Maximum no. of columns can a DB2 table can have?
Thanks
Lakshmi |
|
| Back to top |
|
mcmillan
Joined: 18 May 2003
Posts: 923
Location: India
|
| Posted: Thu Feb 24, 2005 9:49 pm Post subject: Re |
|
|
Hi,
Please check this link:
http://ibmmainframes.com/references.php
Click on: DB2-SQL PROGRAMMING LIMITS under References: DataBases
section. |
|
| Back to top |
|
khannay2k
Joined: 24 Feb 2005
Posts: 26
Location: Bangalore
|
| Posted: Fri Feb 25, 2005 12:38 pm Post subject: |
|
|
Hi Nagalakshmi,
1. How many nested Queries at maximum can a Select statement can have?
At the max you can have 15 nested queries, and total of 16 queries in a select statment.
2. How many Maximum no. of columns can a DB2 table can have?
For this i have mentioned that u can have at the max 224 columns during the earlier posts. go through the posts, and see that you are not repeating the queries.
Khanna. |
|
| Back to top |
|
Rajshekhar V Patil
Joined: 23 Feb 2005
Posts: 7
Location: Mumbai
|
| Posted: Tue Mar 01, 2005 4:57 pm Post subject: Hi |
|
|
2. How many Maximum no. of columns can a DB2 table can have?
A.
Maximum no. of columns can a DB2 table is 750.
When VSAM to DB2 conversion that time max. is 255(migrating the file into DB2 tables) |
|
| Back to top |
|
pradeepsamson
Joined: 08 Mar 2005
Posts: 5
Location: Pune
|
| Posted: Wed Jun 14, 2006 4:40 pm Post subject: Few questions |
|
|
Hi,
1) In JCL sort card sum fields = none for eliminating duplicates. How can I retrieve only duplicates?
2) How will you make sure that your SELECT query retrieves only one row always?
3) DISTINCT is used for eliminating duplicate rows in DB2. How can retrieve all the duplicates (A sample query is highly appreciated)?
4) I have a sort requirement like 5 records. In that 4 are same and 1 is different. I want to get only that 1 record. How? Anyone have an idea about "EQUALS" in sort card?
5) What would be your first approach after getting -805?
6) How can I know my particular program is using particular "PLAN"?
8)I have written program, ?PROGRAM-ID. ADD. Saved this particular program in a PDS as member name TEST. Will it work or throw any error?
9) I am compiling a COBOL db2 program suddenly my Db2 brought down what will happen?
10) What is Z-OS?
Cheers!
Pradeep Samson. |
|
| Back to top |
|
harish_mf
Joined: 31 Jul 2005
Posts: 21
Location: bangalore
|
| Posted: Thu Jul 20, 2006 1:08 pm Post subject: Re: Few questions |
|
|
pradeepsamson wrote: Hi,
1) In JCL sort card sum fields = none for eliminating duplicates. How can I retrieve only duplicates?
2) How will you make sure that your SELECT query retrieves only one row always?
3) DISTINCT is used for eliminating duplicate rows in DB2. How can retrieve all the duplicates (A sample query is highly appreciated)?
4) I have a sort requirement like 5 records. In that 4 are same and 1 is different. I want to get only that 1 record. How? Anyone have an idea about "EQUALS" in sort card?
5) What would be your first approach after getting -805?
6) How can I know my particular program is using particular "PLAN"?
8)I have written program, ?PROGRAM-ID. ADD. Saved this particular program in a PDS as member name TEST. Will it work or throw any error?
9) I am compiling a COBOL db2 program suddenly my Db2 brought down what will happen?
10) What is Z-OS?
Cheers!
Pradeep Samson. |
|
| Back to top |
|
harish_mf
Joined: 31 Jul 2005
Posts: 21
Location: bangalore
|
| Posted: Thu Jul 20, 2006 1:12 pm Post subject: Re: Few questions |
|
|
harish_mf wrote: pradeepsamson wrote: Hi,
1) In JCL sort card sum fields = none for eliminating duplicates. How can I retrieve only duplicates?
:- sum fields=none, xsum
2) How will you make sure that your SELECT query retrieves only one row always?
:- by if not it will give -811(when cursor is not declared).
3) DISTINCT is used for eliminating duplicate rows in DB2. How can retrieve all the duplicates (A sample query is highly appreciated)?
:-n use Where Exits and Count(*)
4) I have a sort requirement like 5 records. In that 4 are same and 1 is different. I want to get only that 1 record. How? Anyone have an idea about "EQUALS" in sort card?
:- Thia I have to try.
5) What would be your first approach after getting -805?
:- Rebinding is widely used.
6) How can I know my particular program is using particular "PLAN"?
:- Plan is selected through its indexes.
8)I have written program, ?PROGRAM-ID. ADD. Saved this particular program in a PDS as member name TEST. Will it work or throw any error?
:- It will work.
9) I am compiling a COBOL db2 program suddenly my Db2 brought down what will happen?
:-For pre compiling no matter Db2 is up r down.
10) What is Z-OS?
:Zseries os , advanced with release 13 and 14.
Cheers!
Pradeep Samson. |
|
| Back to top |
|
parikshit123
Joined: 01 Jul 2005
Posts: 279
Location: India
|
| Posted: Fri Aug 11, 2006 1:16 pm Post subject: |
|
|
Hi pradeepsamson and harish_mf,
can you guys please avoid cramming a lots of irrelevent questions from the post?
if you wish, you guys can open a new topic after searching the forum. |
|
| Back to top |
|
saravanant
Joined: 06 Sep 2006
Posts: 6
Location: chennai
|
| Posted: Sat Sep 09, 2006 6:46 pm Post subject: Re: How many nested Queries at maximum can a Select statemen |
|
|
nagalakshmi wrote: Hi,
Please Clarify questions being asked for interview :
1. How many nested Queries at maximum can a Select statement can have?
2. How many Maximum no. of columns can a DB2 table can have?
Max no.of columns in a table is 242
Thanks
Lakshmi |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|