Viewing 15 posts - 2,686 through 2,700 (of 10,144 total)
Grant Fritchey (1/26/2015)
ChrisM@Work (1/26/2015)
Grant Fritchey (1/26/2015)
ChrisM@Work (1/26/2015)
Your wish etc etc PM me if you're sure and we'll fix it up.
Thanks! But I've already spent the money to build the other...
January 26, 2015 at 6:43 am
Grant Fritchey (1/26/2015)
ChrisM@Work (1/26/2015)
Your wish etc etc PM me if you're sure and we'll fix it up.
Thanks! But I've already spent the money to build the other costume. Might as...
January 26, 2015 at 5:05 am
rodjkidd (1/26/2015)
Are well it would be good to see you there!
Bracknell - no, I ended at the end of the year. Had a couple of weeks R&R and now looking...
January 26, 2015 at 4:59 am
Most folks would recommend you use your display application for this:
SELECT
LP = CASE WHEN RN = 1 THEN LP ELSE '' END,
KW
FROM (
SELECT LP, KW, rn = ROW_NUMBER()...
January 26, 2015 at 3:42 am
rodjkidd (1/26/2015)
ChrisM@Work (1/26/2015)
Grant Fritchey (1/26/2015)
ChrisM@Work (1/26/2015)
GilaMonster (1/23/2015)
Luis Cazares (1/22/2015)
Brandie Tarvin (1/22/2015)
rodjkidd (1/22/2015)
Steve Jones - SSC Editor (1/21/2015)
What's the superhero costume of choice here? SQL Bits is a month+ away, with...
January 26, 2015 at 3:17 am
Grant Fritchey (1/26/2015)
ChrisM@Work (1/26/2015)
GilaMonster (1/23/2015)
Luis Cazares (1/22/2015)
Brandie Tarvin (1/22/2015)
rodjkidd (1/22/2015)
Steve Jones - SSC Editor (1/21/2015)
What's the superhero costume of choice here? SQL Bits is a month+ away, with the theme...
January 26, 2015 at 2:27 am
GilaMonster (1/23/2015)
Luis Cazares (1/22/2015)
Brandie Tarvin (1/22/2015)
rodjkidd (1/22/2015)
Steve Jones - SSC Editor (1/21/2015)
What's the superhero costume of choice here? SQL Bits is a month+ away, with the theme of superheroes for...
January 26, 2015 at 1:52 am
SELECT MondaysThisMonth = DATEADD(DAY,n,MondayBeforeFOM)
FROM (
SELECT FirstOfMonth, MondayBeforeFOM = DATEADD(DAY,DATEDIFF(DAY,0,FirstOfMonth)/7*7,0)
FROM (SELECT FirstOfMonth = DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0)) d
) e
CROSS JOIN (SELECT 7 UNION ALL SELECT 14 UNION ALL SELECT 21 UNION ALL SELECT 28...
January 23, 2015 at 7:10 am
This is a scalar function. Is it accurate to describe it as "most advanced"?
January 23, 2015 at 5:09 am
srinivas.akyana (1/23/2015)
Since I wanted to repeat the original combination 4 times prior for MonthIDs of 307 & 309, I would need to first start with latest month which is...
January 23, 2015 at 3:02 am
Your original table shows RSCID of 3542 associated with MonthID of 309. In the expected results table, rows with RSCID of 3542 (original month 309) are coloured both green and...
January 23, 2015 at 2:06 am
keith.west-982594 (1/22/2015)
This solution worked perfectly. Thanks for your help. I definitely need to study the CROSS APPLY feature more.
You're welcome. You don't have to use APPLY:
WITH Swapper AS...
January 22, 2015 at 9:14 am
SELECT
LinkingID,
ID1,
ID2,
rn = ROW_NUMBER() OVER (PARTITION BY LinkingID, IDMAX, IDMIN ORDER BY (SELECT NULL))
FROM #Sample s
CROSS APPLY (
SELECT
IDMAX = CASE WHEN ID1 > ID2 THEN...
January 22, 2015 at 8:36 am
steve.tarry (1/21/2015)
DECLARE @STARTDATE DATE = getdate();
DECLARE @ENDDATE DATE = '2015-03-21';
WITH DateCTE AS (
SELECT@startdate AS...
January 21, 2015 at 9:17 am
Viewing 15 posts - 2,686 through 2,700 (of 10,144 total)