Viewing 15 posts - 16 through 30 (of 77 total)
newQty is in the same table. The application will update the value.
May 1, 2013 at 9:08 am
Got it! Thanks. I found the issue, it was in my test value. My code reply is correct.
May 1, 2013 at 8:07 am
select s.partNo, p.descript,
sum(case when battState = '99' then qty else '0'end) as CLNT,
sum(case when battState = '1' then qty-newQty else '0' end)...
May 1, 2013 at 7:43 am
GO
Drop view AssemblyDefects
GO
create View AssemblyDefects AS
(select p.model, i.defect_title, p.item, d.sn, d.dateinspected, t.type, i.defect_id
from productiondefect as d, assignworkorder as p, tlkp_defects as i, tlkp_item as t
where substring(d.sn, 7, 5) = p.workorder
and...
February 21, 2013 at 1:01 pm
Below are my results:
yield
94.4000000000000000
97.6000000000000000
98.4000000000000000
96.8000000000000000
Now, I need to get rid of the zeros and show dates.
October 24, 2012 at 2:44 pm
Ok. I got the below to run. The formula returns weekly defects / overall production totals. I want to calculate weekly defect / weekly production. Is this possible?
;with totalcount as...
October 24, 2012 at 12:40 pm
The first characters will always be letters.
July 30, 2012 at 10:51 am
I resolved this issue by using EXCEPT in 2005 and creating Maintenance Plan in SSIS to run on a schedule. Thanks!
July 19, 2012 at 1:54 pm
it worked. :w00t: Thanks!!!
July 19, 2012 at 1:20 pm
Yes, I am using SELECT From OPENQUERY. I'll try that. Thanks!
July 19, 2012 at 11:54 am
Lynn,
Thanks for your help. I came up with a solution.
insert into recvLogTest
(ordno, itnbr, house, poisq, blcod, b_blksq, cmpdt, itdsc, engno, itcls, duedt, umord, qtyor, stkqt, staic, vndnr, vname, b_relqt, b_reldt,...
April 19, 2012 at 9:21 am
select count(distinct c.sn) as qty, sum(cast(l.labor as decimal(18,2))) / 1000 as labor, sum(cast(l.labor as decimal(18,2)))* count(distinct c.sn) / 1000 as laborhour, sum(cast(l.labor as decimal(18,2))) / 1000 * count(distinct c.sn)...
October 4, 2011 at 2:48 pm
Drew,
This looks like it works. I'm tweaking it to get the correct results however, no longing throwing aggregate error.
Thanks,
DJ Khalif
October 4, 2011 at 1:02 pm
Threw an error near Line 12 ')'
October 4, 2011 at 1:00 pm
Viewing 15 posts - 16 through 30 (of 77 total)