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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Do not want to use UNION ALL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-08-08, 02:05
tokumardinesh tokumardinesh is offline
Registered User
 
Join Date: Apr 2008
Posts: 1
question

respected sir,
i have one table. it contains field ename,itemno,item1,quantity.
i want to join table and want to gget resultsuch as ename,item,quantity.
if i m using union all,then i get result . but i do not want to use union all.
please give alternate query. reply soon plz.


thanks and regards,
dinesh kumar
Reply With Quote
  #2 (permalink)  
Old 04-08-08, 04:56
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
First, your problem description is far from sufficient. So I have no clue what you want to join with what and which results you would like to have.

Second, why don't you want to use UNION if it gives you the correct answer? The idea of SQL is that you specify "what" you want and the system figures out the best way "how" to get the result.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 01-27-09, 14:40
Cawas Cawas is offline
Registered User
 
Join Date: Dec 2008
Posts: 5
c'mon, that was funny, respected sir stolze.
Reply With Quote
  #4 (permalink)  
Old 01-27-09, 16:55
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I didn't mean to be funny at all.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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