Viewing 15 posts - 1 through 15 (of 60 total)
This has been on the backburner for a couple of weeks, and, guess what, I've been asked to amend the fifo logic once again....test code below:--===== If the...
December 11, 2017 at 4:53 am
Hi Chris,
Finally able to get back on with this!
Much appreciate your earlier input but unfortunately there's been a request to change the fifo logic somewhat and is probably best shown...
November 27, 2017 at 5:26 am
Hi Chris,
Many thanks for the reply. Not as yet had chance to test your code as I've been dealing with another client. Hopefully get back on with this in...
October 18, 2017 at 5:16 am
Hopefully, this is more useful test data:--===== If the test table already exists, drop it
IF OBJECT_ID('TempDB..#myStockTake','U') IS NOT NULL
DROP TABLE #myStockTake
--===== Create the...
October 16, 2017 at 10:53 am
SELECT 'A01' as bin,'1' as seq,'180022' as product,'11' as qty,'21' as expectedqty,'-10' as stockdiff,-10*42.11 as GainLoss UNION ALL
SELECT 'A01A','2','180022','0','3','-3',-1*42.11+-2*42.11 UNION ALL
SELECT 'A01','1','180023','5','6','-1',-1*42.11 UNION ALL
SELECT 'A01','1','180026','15','13','2',2*42.11...
October 16, 2017 at 10:30 am
Solved.
Went down the route of using SQL table to hold intermediate results. Then queried that to get xls output.
May 16, 2017 at 7:53 am
Thanks Gail for the info.
Much appreciated.
July 22, 2011 at 5:23 am
Hi,
I thought that may put people off!
Unfortunately I do not have permission to save execution plans on this db (its a third party one..we only have read access).
With regards to...
July 22, 2011 at 4:45 am
Of course. I'm unfamiliar with spt_values having used numbers tables in the past).
Many thanks,
Dom
November 22, 2010 at 8:55 am
Hi Ken,
Many thanks for the reply however I'm not getting the results as expected. Is there a potential error with the date generation bit of the code?
The below creates...
November 22, 2010 at 8:26 am
Hi Ron,
Thanks for the reply but Crystal Reports XI doesn't support table variables.
For info/closure I've rejigged the code supplied by Chris to work with my clients SQL Server 2k db.
SELECT...
November 18, 2010 at 10:01 am
That's great Chris...very useful (and can be adapted for various uses)
Unfortunately I'm not allowed to create sprocs! Just writing 'sql commands' is rocket science to those who require the reports!
Once...
November 18, 2010 at 8:02 am
Thanks for the reply Chris,
I'm actually trying to write a 'Sql command' in Crystal Reports. I've a report that lists application usage over time....I'm trying to find usage or lack...
November 18, 2010 at 7:43 am
Hi,
does this get you started:
To get a list of the top-level folders and associated user permissions:
SELECT Catalog.Name, Catalog.Path, Users.UserName
FROM Catalog INNER JOIN
Policies ON Catalog.PolicyID = Policies.PolicyID INNER JOIN
PolicyUserRole ON PolicyUserRole.PolicyID...
September 7, 2010 at 2:11 am
Viewing 15 posts - 1 through 15 (of 60 total)