Viewing 15 posts - 106 through 120 (of 2,462 total)
Unless it's someone in my field I say "computer stuff". Anything beyond that I generally get a blank stare.
-- Itzik Ben-Gan 2001
July 30, 2018 at 12:41 pm
-- Itzik Ben-Gan 2001
July 17, 2018 at 1:52 pm
pietlinden beat me to it - here's what that solution would look like:
-- Sample data
USE tempdb
GO
IF OBJECT_ID('dbo.t1') IS NOT NULL DROP TABLE dbo.t1;
-- Itzik Ben-Gan 2001
July 11, 2018 at 3:40 pm
I'm stuck on the last Sunday at the moment but here's how you handle the first Monday.
Lynn Pettis has a great post about common date routines. I...
-- Itzik Ben-Gan 2001
June 20, 2018 at 10:09 pm
This perhaps?
SELECT FullName, NewType, SUM(Amount1), SUM(Amount2)
FROM
(
SELECT TOP (1) FullName, NewType, Amount1, Amount2
FROM @test-2
ORDER BY TDate...
-- Itzik Ben-Gan 2001
June 8, 2018 at 4:25 pm
I stumbled across this while looking to create my own and would like to propose a couple changes:
First, I have noticed lately moving filters from a WHERE clause to a...
-- Itzik Ben-Gan 2001
June 8, 2018 at 10:26 am
-- Itzik Ben-Gan 2001
June 1, 2018 at 2:41 pm
-- Itzik Ben-Gan 2001
May 29, 2018 at 11:30 am
Can you provide an example of what the array looks like and what type of array it is?
Problem is that the array can contain up to 250...
-- Itzik Ben-Gan 2001
May 23, 2018 at 11:37 am
Fixing your data model to avoid this type of tomfoolery is always my first choice.
-- Itzik Ben-Gan 2001
May 14, 2018 at 11:57 am
Thanks folks for the replies. After a little more research I discovered that the problem was related to periodic connectivity issues between the server and the SAN. I never saw...
-- Itzik Ben-Gan 2001
May 14, 2018 at 9:00 am
-- Itzik Ben-Gan 2001
May 9, 2018 at 9:19 am
Another really fast way to tackle this (using NGrams8k - link is in my signature):
SELECT *
FROM #stringsplit s
CROSS APPLY
(
SELECT STUFF(REPLACE((
-- Itzik Ben-Gan 2001
April 24, 2018 at 1:03 pm
I must admit, when I saw the title, TRIM() in T-SQL my first thought was, "boring!"
That said - I was quite impressed and found the article to be quite...
-- Itzik Ben-Gan 2001
April 10, 2018 at 10:55 am
-- Itzik Ben-Gan 2001
April 6, 2018 at 4:02 pm
Viewing 15 posts - 106 through 120 (of 2,462 total)