Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3180

Have problem while taking a new select query and matching it with existing columns.

$
0
0

Hi All,


I have a table from which I am fetching all columns which are like STUDENT_NAME, STUDENT_ID, STUDENT_ADDRESS and other columns. Now I am taking one more select query in same Crystal report and that select Query is having other fields as STUDENT_ID, STUDENT_NAME, STUDENT_PHONE_NUMBERS. So to fetch the STUDENT_PHONE_NUMBER from second select statement I have to match STUDENT_ID and STUDENT_NAME of second select to already existing select statement. Please let me know how I can match these two columns and fetch STUDENT_PHONE_NUMBER and show it on report?


First select query is showing below data

STUDENT:

STUDENT_ID    STUDENT_NAME  STUDENT_ADDRESS

123456                   ALBERT                       A-123

456123                   JOY                              E- 789


Second query should show: STUDENT_PHONE_NUMBER and that to matching STUDENT_ID and STUDENT_NAME

Output of the report:


STUDENT_ID    STUDENT_NAME  STUDENT_ADDRESS   STUDENT_PHONE_NUMBER

123456                   ALBERT                       A-123                       8945612377

456123                   JOY                              E- 789                     1234567895



Viewing all articles
Browse latest Browse all 3180

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>