yapafly
MIS
- Jun 2, 2008
- 7
Hi, All
i hope someone can help me..
Within a single report, how to put 2 difference sql query in 2 difference table.
User only need insert the parameter(@ParticipantID)once and the 2 table will generated .
detail:
oracle databases name: npcrpt
sql code 1:
EXEC ('
SELECT XNP_PORT_DATA.RECIPIENT_ID,XNP_PORT_DATA.DONOR_ID
FROM XNP_PORT_DATA ..
WHERE XNP_PORT_DATA.RECIPIENT_ID LIKE UPPER(?)', @ParticipantID) AT npcrpt ;
sql code 2:
EXEC ('
SELECT XNP_PORT_DATA.RECIPIENT_ID, XNP_PORT_DATA.DONOR_ID
FROM XNP_PORT_DATA ..
WHERE XNP_PORT_DATA.DONOR_ID LIKE UPPER(?)', @ParticipantID) AT npcrpt ;
i hope someone can help me..thanks
i hope someone can help me..
Within a single report, how to put 2 difference sql query in 2 difference table.
User only need insert the parameter(@ParticipantID)once and the 2 table will generated .
detail:
oracle databases name: npcrpt
sql code 1:
EXEC ('
SELECT XNP_PORT_DATA.RECIPIENT_ID,XNP_PORT_DATA.DONOR_ID
FROM XNP_PORT_DATA ..
WHERE XNP_PORT_DATA.RECIPIENT_ID LIKE UPPER(?)', @ParticipantID) AT npcrpt ;
sql code 2:
EXEC ('
SELECT XNP_PORT_DATA.RECIPIENT_ID, XNP_PORT_DATA.DONOR_ID
FROM XNP_PORT_DATA ..
WHERE XNP_PORT_DATA.DONOR_ID LIKE UPPER(?)', @ParticipantID) AT npcrpt ;
i hope someone can help me..thanks