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 > JAVA > Query solution for selecting record simultaneously from two DB tables, alternately

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-11, 08:09
rkbinani rkbinani is offline
Registered User
 
Join Date: Aug 2011
Posts: 1
Query solution for selecting record simultaneously from two DB tables, alternately

I have a requirement where say I have File1 and File 2 have to be queried in such a way that when I select a record from File1, the next record should be from File 2, the third one from File1 and 4th from File2, in a single output query
Ex:
File1 Data

Fld1 Fld2
001 India
002 China

File2 Data

Fld1 Fld2
28 ABC
30 DEF

Output requriement is of the below type, using a single query. Alternate ideas will be highly appreciated.

Fld1 Fld2
001 India
28 ABC
002 China
30 DEC
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On