Viewing 15 posts - 61 through 75 (of 2,462 total)
You forgot to change the WHERE to ON for the INNER JOIN
Good catch John, thanks.
Does anyone know why you shouldn't use CROSS APPLY for everything? Or does it sometimes come...
-- Itzik Ben-Gan 2001
July 14, 2019 at 1:23 am
Emph mine...
ANSI-89 style may have been a standard back in the day, but has long been supplemented. In fact it returns incomplete sets. There used to be a page in...
-- Itzik Ben-Gan 2001
July 13, 2019 at 7:25 pm
I have this type of problem when I have too many SQL windows open or too much stuff running on my PC. The problem persists, often, even after closing the...
-- Itzik Ben-Gan 2001
April 18, 2019 at 8:41 pm
My $0.02 about the new site...
First, I miss the count of likes (for threads and individual comments). No nobody knows if you "liked" a thread or comment.
As someone with articles...
-- Itzik Ben-Gan 2001
April 10, 2019 at 9:15 pm
I would do something like this:
DECLARE @date DATETIME = getdate();
SELECT WeekStart = CAST(DATEADD(DAY,f.Dt+1, @date) AS date),
WeekEnd = CAST(DATEADD(DAY,f.Dt+8, @date) AS date)
FROM (VALUES(DATEPART(WEEKDAY,@date)-1)) AS w(Wd)
CROSS APPLY (VALUES(-IIF(w.Wd=0,7,w.Wd))) AS...
-- Itzik Ben-Gan 2001
April 8, 2019 at 6:59 pm
-- Itzik Ben-Gan 2001
March 8, 2019 at 11:03 am
-- Itzik Ben-Gan 2001
March 7, 2019 at 7:50 pm
-- Itzik Ben-Gan 2001
March 7, 2019 at 1:46 pm
-- Itzik Ben-Gan 2001
March 7, 2019 at 10:48 am
-- Itzik Ben-Gan 2001
February 25, 2019 at 3:32 pm
Super easy when using string functions (of course) but, for fun, I took a stab at this. It's a little harder when the number is not evenly divisible by 10...
-- Itzik Ben-Gan 2001
February 19, 2019 at 7:47 am
Good article Steve. Succinct and informative.
-- Itzik Ben-Gan 2001
February 19, 2019 at 7:01 am
This article is awesome! Thanks for putting it together.
-- Itzik Ben-Gan 2001
February 14, 2019 at 2:32 pm
-- Itzik Ben-Gan 2001
February 13, 2019 at 9:31 am
-- Itzik Ben-Gan 2001
February 13, 2019 at 9:30 am
Viewing 15 posts - 61 through 75 (of 2,462 total)