Viewing 14 posts - 91 through 104 (of 104 total)
hi Kingston,
I 'm currently working on server 2000,so that pivot won't allow in that version,is any other possibiliies there ah???
July 19, 2012 at 10:16 pm
hi ,
i got the answer finally
select account_no,
sum(case when trans ='Cr' then amount else 0 end) "Credit",
sum(case when trans ='Dr' then amount else 0 end)...
July 19, 2012 at 5:12 am
hi,
some of the accoun tno are repaetd how make groupby accountno
July 19, 2012 at 4:54 am
LOTNO value QUANTITY
============================================
H1207013 ...
July 19, 2012 at 1:47 am
hi
the value colum is summarise,if the LOT_NO is reapted 5 times means the value divdied equally....
ex:
H1207013==>2 times came, now i need the value for lot printing ...
July 19, 2012 at 12:36 am
raghuldrag (7/18/2012)
=============
company_no location_no issue_no stock_no lot_no value
---------- ---------- ------------- ------- --------- -----
AMRUTFAC MHYD BACK\000000\2008 5000054 [highlight=#ffff11]H1207013 2603.04000000 [/highlight]
AMRUTFAC MHYD BACK\000000\2008 5000153 C2107065 1643.60000000
AMRUTFAC MHYD BACK\000001\2008...
July 18, 2012 at 3:26 am
queryoutput:
=============
company_no location_no issue_no stock_no lot_no value
---------- ---------- ------------- ------- --------- -----
AMRUTFAC MHYD BACK\000000\2008 5000054 [highlight=#ffff11]H1207013 2603.04000000 [/highlight]
AMRUTFAC MHYD BACK\000000\2008 5000153 C2107065 1643.60000000
AMRUTFAC MHYD BACK\000001\2008 5000160...
July 18, 2012 at 3:10 am
company_no location_no issue_no lot_no quantity confirmed_qt.... value ...
July 18, 2012 at 1:10 am
em wrote query like
select a.company,b.location,b.stockno,b.lotno,c.value
from header a
inner join
storage b
on
a.company=b.company
and a.location=b.location
inner join
accounts c
on b.issueno= b.issueno
and a.company=c.company
and b.location=c.location
and b.stockno=c.stockno
July 17, 2012 at 6:52 am
its actually 3 tables......
T1="HEADER "
its has compny,location,issueno
T2="STORED DATA"
...
July 17, 2012 at 6:46 am
Viewing 14 posts - 91 through 104 (of 104 total)