If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > inline SQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-04, 08:11
ashaq ashaq is offline
Registered User
 
Join Date: Dec 2003
Posts: 39
Thumbs down inline SQL

I need the documentation to understand how inline SQl works ,Can anyone provide me the documentation in detail for the same.Is this inline SQl also called embedded SQL in DB2.Also kindly provide the steps to execute the program

Thanks


Ashaq
Reply With Quote
  #2 (permalink)  
Old 09-20-04, 03:45
blom0344 blom0344 is offline
Registered User
 
Join Date: Jan 2003
Location: Zutphen,Netherlands
Posts: 256
Are you referring to working with temporary sets?

Basically this is storing the outcome of the inner SQL statement in a temporary set and then applying SQL over this set again.

Example:

Select temp.x,temp.y from
(Select a,b,c from m,n where ..........................) temp

There is additional syntax that involves using the 'WITH' clause.

Recommendation: SQL cookbooks by Graeme Birchall
__________________
Ties Blom
Senior Application Developer BI
Getronics Healthcare
DB2,ORACLE,Powercenter,BusObj,Access,
SQL, SQL server
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On