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

What is the maximum size of SQL Query


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

New User


Joined: 05 Mar 2008
Posts: 2
Location: Mumbai

PostPosted: Wed Dec 03, 2008 5:31 pm
Reply with quote

what is the maximum size of SQL Query ??
a.32k
b.64k
c.56k
d.16k
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Dec 03, 2008 5:50 pm
Reply with quote

In DB2 V8, The statement length can be 2M.
I have completely no-idea what it means.

I have completely no-idea how this is calculated. I think, type a query in notepad and see if the size is 2MB, if it is try to run it. I never seen a query that big.

By the way, what version you refering toooo.....

I hope iam correct,
Sushanth
Back to top
View user's profile Send private message
wattamwar

New User


Joined: 05 Mar 2008
Posts: 2
Location: Mumbai

PostPosted: Mon Dec 08, 2008 12:31 pm
Reply with quote

hi Shshanth,

Thanks a lot....

We r using version 7.1..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 08, 2008 12:58 pm
Reply with quote

Hello,

This link provides Limits in DB2 - V7:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsnsqh11/A.0?

I do not see a limit that looks like what your question asks.

Also, i believe the question needs to be better asked - maybe by providing the definition of what is considered the size of a query for this question. As this is/was an interview question, it may be difficult to get clarification that would help here.
Back to top
View user's profile Send private message
Suresh Ponnusamy

Active User


Joined: 22 Feb 2008
Posts: 107
Location: New York

PostPosted: Mon Dec 08, 2008 8:49 pm
Reply with quote

Hi

From the link which dick provided I could see the below one.

Code:


In Db2 7

Longest SQL statement             32765 bytes         
                     
 


So the answer will be around 32K.

Code:

In DB2 8
Longest SQL statement             2,097,152 bytes         



Please refer the below given link

www.informit.com/content/images/0672326132/downloads/appd.pdf
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 RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
Search our Forums:

Back to Top