Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Condition to Join two table

Author  Topic 

sureshprpt
Starting Member

33 Posts

Posted - 2010-07-13 : 08:36:30
Dear all
I want to take the report by the comibation below table.
The reoprt format is COde , GL , QTY, Value. Here the issue if GL is < MM5 , the cost type 2 & > MM5 Cost type is 7.If want report with respective cost type. KIndly help me to create the qureis for my requested format report.

Table 1
Code GL Qty
ZZ MM1 1
AA MM2 4
BB MM3 3
CC MM4 6
DD MM5 5
EE MM6 4
FF MM7 2
GG RM 1
HH RM 2

Table 2
Code Cost Type Cost
ZZ 2 10
ZZ 7 20
AA 2 12
AA 7 14
BB 2 15
BB 7 26
CC 2 18
DD 7 24
DD 2 26
EE 7 30
EE 2 10
FF 7 28
FF 2 18
GG 7 10
GG 2 25
HH 7 10

Thanks in advance

Thanks & Regards
Suresh
   

- Advertisement -