Viewing 15 posts - 976 through 990 (of 2,462 total)
EdgeOfKnowWare (2/23/2016)
Rich Mechaber (2/23/2016)
This aspect of NTILE() is an eye-opening piece of information, thank you for posting...
-- Itzik Ben-Gan 2001
February 23, 2016 at 12:26 pm
I don't know if anyone is aware of this but I noticed Dwain Camps hadn't posted anything in awhile so I checked his blog (dwaincsql.com), simple-talk, twitter, linkedin... then came...
-- Itzik Ben-Gan 2001
February 23, 2016 at 12:09 pm
So, to dig even further...
SSC is the right place 😉
If your table had 92 million records, and you had 9 different "Val" columns, would you still use the same code?...
-- Itzik Ben-Gan 2001
February 23, 2016 at 9:59 am
Note my code and comments.
USE tempdb
GO
-- Create a table with an XML column
IF OBJECT_ID('tempdb.dbo.YourTable') IS NOT NULL DROP TABLE dbo.YourTable;
CREATE TABLE dbo.YourTable(SomeID int identity primary key, SomeXML xml NOT...
-- Itzik Ben-Gan 2001
February 23, 2016 at 8:36 am
Excellent article, well written and an easy read. I need to look at/play around with your code a little more to understand what you're doing but I love the overall...
-- Itzik Ben-Gan 2001
February 23, 2016 at 7:58 am
EdgeOfKnowWare (2/22/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 1:18 pm
jim.snyder (2/22/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 12:41 pm
EdgeOfKnowWare (2/22/2016)
The problem I had (which lead me to this post via Google) was that I had several different rankings dependent...
-- Itzik Ben-Gan 2001
February 22, 2016 at 12:14 pm
Glad to help.
<hits forehead with palm of hand!!>
Me too. So much so that I now have a receding hairline :hehe:
-- Itzik Ben-Gan 2001
February 22, 2016 at 11:23 am
Phil Parkin (2/22/2016)
Alan.B (2/22/2016)
Ed Wagner (2/22/2016)
Luis Cazares (2/19/2016)
Ed Wagner (2/19/2016)
GilaMonster (2/19/2016)
SQLRNNR (2/18/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 11:18 am
jim.snyder (2/22/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 11:02 am
EdgeOfKnowWare (2/22/2016)
SELECT *,
CASE WHEN val IS NULL THEN 0 ELSE 1 END,
NTILE(4) OVER (PARTITION BY CASE WHEN val IS NULL THEN 0...
-- Itzik Ben-Gan 2001
February 22, 2016 at 10:28 am
I am very confused since I am not delimiting a string
If you are using multi-select in SSRS then SSRS is passing a comma-delimited string to your query or stored proc....
-- Itzik Ben-Gan 2001
February 22, 2016 at 10:00 am
Ed Wagner (2/22/2016)
Luis Cazares (2/19/2016)
Ed Wagner (2/19/2016)
GilaMonster (2/19/2016)
SQLRNNR (2/18/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 9:34 am
Jacob Wilkins (2/22/2016)
Alan.B (2/22/2016)
Jacob Wilkins (2/19/2016)
kkilsby (2/19/2016)
-- Itzik Ben-Gan 2001
February 22, 2016 at 8:47 am
Viewing 15 posts - 976 through 990 (of 2,462 total)