Joined: 01 Feb 2006 Posts: 4 Location: Bangalore, chennai
Requirment: we have 2 tables need to select the data from both tables using same key which is entered by user and display the retrieved columns on top from one table with five rows and from second table at the bottom five rows. if dont entered and selected the indicator Y fetch all the records and display. PF7 and PF8 for scroll.
one table has the key 8 bytes and other one splitted as 5 and 3.
showing the exampple for splitted one and second table records.
Table 1 Table 2
00012 001 00012001
00012 002 <---- no record leave as blank in the screen
00012 003 00012003
To select one record using one select statement for each table.
To select more records one select with cursor statement for each table.
to select all records one select with cursor statement for each table.
My question is fetching records with seperate select cursor for each table.
Is it possible to match the fetched records while scrolling them.
I need a piece of code for matching the records while scrolling if no match I have to keep it blank like as mentioned above example table data.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello and welcome to the forum,
I suspect there is code already running on your system that could be cloned and modified for your requirement. If the code is used for production on your system, someone there understanda how it works . . .