Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

urgent how to join two table which don't have relation ship( 1 to 1)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
pls reply it's very urgent

Table 1 | Table 2
|
code weight | code weight
|
1001 5 | 1002 5
1001 10 | 1002 10
1001 15 |
1002 10 |
1002 10 |
1003 5 |
1003 15 |
1003 10 |
1003 10 |
1004 15 |
1004 5 |
--------------------------------------------------------

i have to generate report like which is group on code.
if there is no code in table 2 correspons to table 1
then it gives 0 otherwise return sum of weight.

like for above table output shoud be as follows :

Report
code weight1 weight2
1001 30 0
1002 20 15
1003 40 0
1004 20 0

is there any option to generate this report .

if u can generate then pls reply me here or send .rpt file

at pradeep_raghu24@rediffmail.com.

it's very urgent.
thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top