Viewing 15 posts - 481 through 495 (of 3,957 total)
Sean Lange (1/20/2015)
Ed Wagner (1/20/2015)
Brandie Tarvin (1/20/2015)
Sean Lange (1/20/2015)
January 20, 2015 at 4:38 pm
dwain.c (1/20/2015)
Not to repeat myself or nuthin'dwain.c (1/20/2015)
With DDL and some consumable sample data, I'm sure you'd get a working solution pretty quickly.
I suggest you read this:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
I am not a...
January 20, 2015 at 3:00 am
Not to repeat myself or nuthin'
dwain.c (1/20/2015)
With DDL and some consumable sample data, I'm sure you'd get a working solution pretty quickly.
January 20, 2015 at 2:38 am
ashokputta9 (1/19/2015)
1.Split the RR ("PL:TW RR:1.8%,PL:TX RR:0.9%") into LowendRR ("PL:TW RR:1.8%") and HighendRR ("PL:TX RR:0.9%")
2.Split the LowendRR ("PL:TW RR:1.8%") into LowendPL...
January 20, 2015 at 1:54 am
With DDL and some consumable sample data, I'm sure you'd get a working solution pretty quickly.
Barring that, the right track is to use a calendar table:
http://www.sqlservercentral.com/blogs/dwainsql/2014/03/30/calendar-tables-in-t-sql/
January 20, 2015 at 1:38 am
WITH SampleData (RR) AS
(
SELECT 'PL:TW RR:1.8%,PL:TX RR:0.9%'
)
SELECT LowendRR, HighendRR
,LowendPL = RIGHT(ls, CHARINDEX(':',...
January 20, 2015 at 1:32 am
Another solution for those inclined to the cryptic:
SELECT XBit, CreateDate, b
,ROW_NUMBER() OVER
(
...
January 19, 2015 at 1:49 am
Lynn Pettis (1/18/2015)
... Mark one off, 40 days on the calendar to go. 40 days on the calendar to go, 40 days to go, ...
As if you really need my...
January 18, 2015 at 8:51 pm
About the only thing this doesn't do is reformat the date into precisely the string you want (I used CONVERT with the 106 argument to demonstrate).
DECLARE @Year DATE...
January 18, 2015 at 5:34 pm
GilaMonster (1/15/2015)
Sean Lange (1/15/2015)
EXISTS(select 1
is way faster than just select *. I know Gail has an article on her...
January 18, 2015 at 4:55 pm
Jeff Moden (1/16/2015)
Great article, as usual. It spawned some pretty good discussion, as well. Well done and thanks for taking the time to write something like this.
I...
January 18, 2015 at 4:53 pm
As several folks have pointed out, it is not necessary to use the IS NOT NULL test in a CTE to get the INDEX SEEK, as the same query plan...
January 18, 2015 at 4:52 pm
Post deleted. I thought I was in the SQL 2012 forum...
January 15, 2015 at 11:43 pm
Using JeeTee's sample data:
WITH a as
(
select myKey = 1, someVal = 'A' union all
select myKey = 2, someVal = 'B'
), b as
(
...
January 15, 2015 at 6:01 pm
Viewing 15 posts - 481 through 495 (of 3,957 total)