Viewing 15 posts - 1,261 through 1,275 (of 2,458 total)
You need PERCENT_RANK which is not available In SQL 2012.
To get the Percent Rank Pre-2012:
If rk is the RANK for the specified partition
AND rc is the row count for...
September 16, 2015 at 11:06 pm
Thank you for checking it out.
Kristen-173977 (9/16/2015)
Hopefully not a stupid question?!! but is there is reason why this is a table-valued function rather than...
September 16, 2015 at 10:38 pm
I'm a little late to the party but let's not forget about PatExclude8K[/url].
Here's two Patexclude8K solutions:
SELECT Data = NewString
FROM #Tab
CROSS APPLY dbo.PatExclude8K(data,'[= 0-9]');
SELECT Data = NewString
FROM...
September 16, 2015 at 8:25 pm
mister.magoo (9/15/2015)
I would always try and keep a...
September 15, 2015 at 6:16 pm
You can simplify your query like this:
IF OBJECT_ID('tempdb..#Table') IS NOT NULL DROP TABLE #Table;
CREATE TABLE #Table ( MAIN INT,SUB1 INT,SUB2 INT,[STATUS] VARCHAR(10),MODIFIED VARCHAR(10))
INSERT INTO #Table(MAIN,SUB1,SUB2,[STATUS])
VALUES (1,2,4,'Valid'),(2,4,5,'Valid'),(3,6,4,'Valid'),(4,2,1,'Valid'),(5,3,4,'Valid'),(6,0,0,'Invalid');
DECLARE @count INT =...
September 15, 2015 at 4:35 pm
I've seen this since 6.5 or 7.0 and it's still my favorite error.
September 14, 2015 at 1:30 pm
I was a DBA from for a few years and have since moved on to Business Intelligence.
There seems to be some debate about this but, from what I've seen,...
September 14, 2015 at 11:09 am
FYI regarding my post. I am using SSMS 2012 but got the error on a 2014 server (probably would have been more appropriate to post this under 2014).
brad.mason5 (9/11/2015)
September 11, 2015 at 3:42 pm
Thanks Eirikur, you always seen to have the answer. Very interesting stuff - I have never really played around any Undocumented Query Optimizer Trace Flags (I used to play around...
September 11, 2015 at 3:13 pm
Maybe the recruiter is clueless, I don't know.
If a recruiter wanted to see some of my code without any explanation I would blow them off. I had some take home...
September 10, 2015 at 10:00 pm
The Gail Shaw book Jacob recommended is great.
An appropriate follow-up question is, "Why do you ask?"
September 10, 2015 at 7:43 pm
Everything Koen said, especially the Itzik Ben-Gan books.
I would add:
Kimball's The Microsoft Data Warehouse Toolkit, 2nd Edition[/url] is essential for any new BI developer. That's my BI bible....
September 10, 2015 at 12:25 pm
Viewing 15 posts - 1,261 through 1,275 (of 2,458 total)