Hi all,
here my select command
SELECT SUM(dbo.ITR.ITR _TransQty * dbo.ITR.ITR_Uni tCostAmt) from itr
where itr_transdate between '2007-12-01' and '2007-12-31'
group by itr_glacctnbr
having itr_glacctnbr=' 121101'
This statement select only one glaccount but i have more than 15 glaccounts to select.
I can use this statement to select all glaccount but i want to select specific glaccounts
SELECT sUM(dbo.ITR.ITR _TransQty * dbo.ITR.ITR_Uni tCostAmt) from itr
where itr_transdate between'2007-12-01' and '2007-12-31'
group by itr_glacctnbr
I can get result in rows that i want to inset into another table called 'testgl'
That table contains field of all different gl_accounts. fields like 121101, 121102,12103... .etc
How to convert selected rows in column and insert on this table fields.
Thanks in advance for your answer.
here my select command
SELECT SUM(dbo.ITR.ITR _TransQty * dbo.ITR.ITR_Uni tCostAmt) from itr
where itr_transdate between '2007-12-01' and '2007-12-31'
group by itr_glacctnbr
having itr_glacctnbr=' 121101'
This statement select only one glaccount but i have more than 15 glaccounts to select.
I can use this statement to select all glaccount but i want to select specific glaccounts
SELECT sUM(dbo.ITR.ITR _TransQty * dbo.ITR.ITR_Uni tCostAmt) from itr
where itr_transdate between'2007-12-01' and '2007-12-31'
group by itr_glacctnbr
I can get result in rows that i want to inset into another table called 'testgl'
That table contains field of all different gl_accounts. fields like 121101, 121102,12103... .etc
How to convert selected rows in column and insert on this table fields.
Thanks in advance for your answer.
Comment