Viewing 15 posts - 5,221 through 5,235 (of 10,144 total)
akberali67 (2/9/2013)
Just one last question and I am sorry if I am bothering you. How much memory do you anticipate I would need to run...
February 11, 2013 at 5:18 am
dwain.c (2/11/2013)
ChrisM@Work (2/11/2013)
Gabriel Priester wrote an article discussing the calculation of moving average. Various alternatives are covered in the discussion.A QU for moving averages??? :w00t: Who'da thunk it!
It's almost as...
February 11, 2013 at 1:47 am
Gabriel Priester wrote an article discussing the calculation of moving average. Various alternatives are covered in the discussion.
February 11, 2013 at 1:04 am
Or possibly this:
-- GROUP BY ROLLUP and GROUP BY CUBE seem to be close.
-- Neither can handle more than 12 columns ("variables") in one sitting
-- 4 sample rows generate...
February 8, 2013 at 8:51 am
Are you trying to turn these three values into a time? Try this:
SELECT
d.SendTime / 360000 AS Hour,
d.SendTime % 360000 / 6000 AS Minute,
d.SendTime % 6000 / 100...
February 8, 2013 at 8:48 am
It's easy enough to fill in gaps. What you want to do after that is up to you. Here are a couple of ideas.
SET DATEFORMAT YMD
DECLARE @Shifts TABLE
(staffid int,...
February 8, 2013 at 7:23 am
Lynn Pettis (2/8/2013)
You do know that there is no guarantee on the order of the data returned by SQL Server if you don't have an ORDER BY...
February 8, 2013 at 6:52 am
wafw1971 (2/8/2013)
... I have been told to hardcode like the Financial Month Section below.
That would be
01 January
02 February
03 March
Are you sure you want to do this?
February 8, 2013 at 6:01 am
wafw1971 (2/8/2013)
...SELECT DISTINCT CalendarMonth
FROM Time3
ORDER BY CalendarMonth
I get January, February, March and not April, August, December.
No. When you ORDER BY CalendarMonth, it will do exactly that, not what you automagically...
February 8, 2013 at 5:39 am
It's difficult to figure out exactly what you are looking for here, but I suspect that one or other of the GROUP BY extensions might just get you what you...
February 8, 2013 at 5:04 am
Minnu (2/8/2013)
- if cursor is not closed / deallcated, then below is the error msg
Msg 16915, Level 16, State 1, Line 7
A cursor with the name 'cur_emp' already exists.
Msg...
February 8, 2013 at 4:22 am
jeganbenitto.francis (2/8/2013)
But i have a small silly doubt again on this,
How can i show the ID (which is more than 8...
February 8, 2013 at 4:14 am
S_Kumar_S (2/8/2013)
HI AllIs it possible to run the MERGE statement using Openrowset or openquery? I tried with below statement:
You want to run this MERGE as a remote query on SERVER=MYSERVER....
February 8, 2013 at 4:10 am
Try this:
;WITH SampleData AS (
SELECT ID = RIGHT('0'+CAST(n AS VARCHAR(2)),2)
FROM (SELECT TOP 99 n = ROW_NUMBER() OVER(ORDER BY name) FROM SYS.columns) d
),
CutOfSample AS (
SELECT TOP(30) -- fetch more rows than...
February 8, 2013 at 3:53 am
How many rows does the table have?
February 8, 2013 at 3:24 am
Viewing 15 posts - 5,221 through 5,235 (of 10,144 total)