Viewing 12 posts - 1 through 13 (of 13 total)
Hi
Had a look at Report Builder and was exactly what was needed, after about 5 attempts got the exact layout I needed. Thanks
James
July 8, 2011 at 4:18 am
Hi
It is a report that will be generated each month by one of the stores clerks.
I will look into reporting.
James
July 7, 2011 at 6:58 am
I have adapted the code to select only items from this month
DECLARE @mydate DATETIME
SELECT @mydate = GETDATE()
SELECT Product, qty, CostCenter, Customer, TotalCost
FROM IssueStock
Where IssueDate between CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(@mydate)-1),@mydate),101)
AND CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(DATEADD(mm,1,@mydate))),DATEADD(mm,1,@mydate)),101)
UNION ALL
SELECT...
July 7, 2011 at 6:42 am
The original statement was fine
UPDATE U SET Quantity = U.Quantity + Inserted.q1 FROM Consumables as U INNER JOIN Inserted ON U.Product = Inserted.Product
James
July 7, 2011 at 4:30 am
Hi
Sorted. I am using the table in an ASP.NET dynamic data site and there was a naming issue, so the original did work, just the asp.net code was wrong.
Thanks all.
July 7, 2011 at 4:03 am
No, it is some code I found, which did work at one point???
July 5, 2011 at 4:12 am
Hi, here is the structure of the two tables, they seem ok
July 5, 2011 at 3:43 am
No errors.
The trigger is on the table ReceiveOrder that has q1 on it.
James
July 5, 2011 at 3:07 am
Well I'm new to SQL. I'll check out inserted tables.
James
June 22, 2011 at 1:41 am
Viewing 12 posts - 1 through 13 (of 13 total)