HI i havind table like stindent,zpindent,Tpindent table
in this tables COunt(drugs),SUM(qty),SUM(fundamt) group by finyear
same like other tables bt columns name difference
i want to display this three table data in one gridview like this formate ST table,Zp Table ,Tp Table
| Sl. No. | Fin Year | Sector | No. of Drugs | Qty. of Drugs | Indent Amount | Action | |||
| 1 | 2019-20 | ST | view | ||||||
| 2 | 2019-20 | ZP | view | ||||||
| 3 | 2019-20 | TP | view | ||||||
| 4 | 2018-19 | SS | view |
Ramachandran MPosted Dec 3, 2019, 8:35 AM
SELECT ID as 'Sl.No' ,FinYear,Sector ,SUM(Drugs) OVER(PARTITION BYFinYear) AS 'No Drugs' ,SUM(Qty) OVER(PARTITION BYFinYear) AS 'Qty. of Drugs',SUM(Amt) OVER(PARTITION BYFinYear) AS 'FROMAmt'STstinner join
Zpzp on zp.id=st.idinner join Tp tp on tp.id=st.idVrushali GhodkePosted Dec 3, 2019, 6:56 AM
Laxmidhar SahooPosted Nov 30, 2019, 6:57 AM