Viewing 15 posts - 1,456 through 1,470 (of 2,462 total)
I think you're on the right track, you'll notice in Jason's excellent example that he includes a number in his lag/lead functions (you did not not which is the problem)...
-- Itzik Ben-Gan 2001
May 26, 2015 at 1:48 pm
This is hands down the best big data article I have read in some time. We'll done sir, very informative yet concise. 5 stars!
-- Itzik Ben-Gan 2001
May 23, 2015 at 7:40 am
Beatrix Kiddo (5/22/2015)
Ctrl+Shift+R will refresh the Intellisense local cache. (Or Edit > Intellisense > Refresh Local Cache.)See if that helps?
That has never helped me with the problem the op is...
-- Itzik Ben-Gan 2001
May 22, 2015 at 8:20 am
ramana3327 (5/21/2015)
Is it performance...
-- Itzik Ben-Gan 2001
May 21, 2015 at 4:34 pm
I think Lowell's advice was spot-on. I would definitely go the self-employed route. I started working on my own a couple years ago and wish I had done so earlier....
-- Itzik Ben-Gan 2001
May 21, 2015 at 4:21 pm
I have been told that numerous applications each today with their own database are to be migrated to a common database thereby requiring that all table/object names be prefixed with...
-- Itzik Ben-Gan 2001
May 21, 2015 at 3:45 pm
It's hard to guess without looking at what your SSIS packages are doing or seeing the changes in your servers' state throughout the day. Also I'm no SSIS guru but...
-- Itzik Ben-Gan 2001
May 21, 2015 at 3:13 pm
Yep
-- Itzik Ben-Gan 2001
May 20, 2015 at 9:38 pm
Day 0 is 1/1/1900. 1 = 1 day...
SELECT CAST(0 AS DATETIME) -- 1/1/1900
SELECT CAST(1 AS DATETIME) -- 1 day afterr 1/1/1900
SELECT CAST((1.1) AS DATETIME) -- 1.1 days after...
SELECT CAST((1.5) AS...
-- Itzik Ben-Gan 2001
May 20, 2015 at 7:24 pm
joffwilliams (5/20/2015)
-- Itzik Ben-Gan 2001
May 20, 2015 at 7:11 pm
I'm thinking that this should do the trick:
WITH cntByYrMnth AS
(
SELECT
yr = ISNULL(r1.yr, r2.yr),
mnth = ISNULL(r1.mnth, r2.mnth),
cnt1 = ISNULL(r1.cnt1,0),
cnt2 = ISNULL(r2.cnt2,0)
FROM #raw1 r1
FULL...
-- Itzik Ben-Gan 2001
May 20, 2015 at 6:05 pm
Rizk.Christopher (5/20/2015)
-- Itzik Ben-Gan 2001
May 20, 2015 at 5:11 pm
Jason A. Long (5/20/2015)
Alan.B (5/20/2015)
-- Itzik Ben-Gan 2001
May 20, 2015 at 4:54 pm
Luis Cazares (5/20/2015)
Those questions are there because some people just copy, paste and execute code without analysing what they...
-- Itzik Ben-Gan 2001
May 20, 2015 at 4:53 pm
I have noticed that in SQL Server 2012 and 2014 (perhaps previous versions as well but I don't remember) Intellisence is just downright flaky. It goes away and comes back...
-- Itzik Ben-Gan 2001
May 20, 2015 at 4:41 pm
Viewing 15 posts - 1,456 through 1,470 (of 2,462 total)