Viewing 15 posts - 106 through 120 (of 2,458 total)
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
For those who have not read this book I highly suggest it. I picked up a physical copy at SQL In the City 2012 and could not put it down....
-- Itzik Ben-Gan 2001
April 4, 2018 at 2:54 pm
TheRedneckDBA - Friday, March 4, 2011 2:18 PMAnyone know when this will be officially published?
In 2010 I think.
-- Itzik Ben-Gan 2001
April 4, 2018 at 2:50 pm
It is not uncommon that the culprit is poorly designed transformation inside the ETL...
-- Itzik Ben-Gan 2001
April 4, 2018 at 12:22 pm
i have a [tables] which contains ssn, city, state, zip columns after i run this report and save as xml
then reopen it shows columns order as xip, state, city,...
-- Itzik Ben-Gan 2001
April 4, 2018 at 10:47 am
Viewing 15 posts - 106 through 120 (of 2,458 total)