Viewing 15 posts - 2,086 through 2,100 (of 8,731 total)
Would a T-SQL option help?
http://www.sqlservercentral.com/scripts/SQL+Server+2005/67515/
October 4, 2016 at 11:08 am
Here's an option that doesn't need additional functions.
This will fail without warning if the street name has a number.
DECLARE @SourceTable TABLE (
ID INT IDENTITY(1,1)
,...
October 4, 2016 at 9:06 am
joanna.seldon (10/4/2016)
I have got this far using your query
SELECT dateadd(hour, datediff(hour, 0, a.StartDate ), 0) as TimeStampHour, Count(*)
FROM Database.dbo.MainTable a
Where a.StartDate >='20160101'
and a.Department like 'Catering%'
GROUP BY dateadd(hour, datediff(hour,...
October 4, 2016 at 7:47 am
Lynn Pettis (10/3/2016)
What ever happened to basic problem solving skills?
Why would want something like that? It's overrated. Especially when you have a bunch of experts at your service handling crystal...
October 3, 2016 at 2:22 pm
Hi Alan, you're still missing the GetNumsAB definition. I'd be interested on checking out how everything works. 🙂
October 3, 2016 at 12:58 pm
Lynn Pettis (10/3/2016)
October 3, 2016 at 12:34 pm
patla4u (10/3/2016)
Can I implement in production ? What is the advantage and disadvange...
October 3, 2016 at 11:21 am
jasona.work (10/3/2016)
Those of you in the US might have heard about the "creepy clowns" that seem to be popping up all over the place, especially the one down in Georgia...
October 3, 2016 at 11:00 am
If you post your code with sample data, you might get an alternative to the code.
The reason to prevent the use of maxrecursion is that it might not be necessary...
October 3, 2016 at 10:31 am
The simple answer would be to use something like this:
DECLARE @myv VARCHAR(MAX) = 'AB,CD,EF,GH,IJ';
WITH
E(n) AS(
SELECT n FROM (VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0))E(n)
),
E2(n) AS(
SELECT a.n...
October 3, 2016 at 9:47 am
andrew gothard (10/3/2016)
October 3, 2016 at 9:38 am
peter478 (10/3/2016)
Thank you Luis, I would need something on Access, some tips how to do it, I hope I will find something.
Google the functions and change them to the Access...
October 3, 2016 at 8:37 am
Since you only want an example, here's one that works on SQL Server.
If you want to make it work on Access, you have to find the correct function names and...
October 3, 2016 at 8:16 am
ZZartin (10/3/2016)
Eirikur Eiriksson (10/2/2016)
Quick thought, I wouldn't expect the optimizer to do anything but abort the optimizing process on a time out when handling queries with hundreds of apply operators.😎
It...
October 3, 2016 at 8:05 am
I know what you're trying to do. What you fail to understand is that to get the correct calculation, you need to be able to define how to calculate week...
October 3, 2016 at 7:23 am
Viewing 15 posts - 2,086 through 2,100 (of 8,731 total)