Viewing 15 posts - 3,196 through 3,210 (of 10,144 total)
Grant Fritchey (7/2/2014)
Did you hear, for a little while Tim Howard was listed on Wikipedia as the US Secretary of Defense. That's awesome.
That's brilliant!
July 2, 2014 at 8:51 am
Koen Verbeeck (7/2/2014)
Jo Pattyn (7/1/2014)
Funny! :w00t:Anyway the Belgium Red Devils got past the USA soccer team after a thrilling match.
It was an awesome game.
The US team (actually just the goalkeeper...
July 2, 2014 at 7:26 am
Dohsan (7/2/2014)
ChrisM@Work (7/2/2014)
SELECT PersonID, StartMonth = MIN(MONTHID), EndMonth = MAX(MONTHID), LOADPCT = PercentLoad
FROM (
SELECT *,
[Grouper] = MONTHID - ROW_NUMBER() OVER(PARTITION BY PersonID, PercentLoad ORDER BY MONTHID)
...
July 2, 2014 at 7:16 am
Try this:
SELECT PersonID, StartMonth = MIN(MONTHID), EndMonth = MAX(MONTHID), LOADPCT = PercentLoad
FROM (
SELECT *,
[Grouper] = MONTHID - ROW_NUMBER() OVER(PARTITION BY PersonID, PercentLoad ORDER BY MONTHID)
FROM #TestProject2...
July 2, 2014 at 7:09 am
pwalter83 (7/2/2014)
ChrisM@Work (7/2/2014)
pwalter83 (7/2/2014)
... it does not calculate the ratio for the first row...
If your calculation depends upon a value from a previous row, what should the result of the...
July 2, 2014 at 4:46 am
pwalter83 (7/2/2014)
... it does not calculate the ratio for the first row...
If your calculation depends upon a value from a previous row, what should the result of the calculation be...
July 2, 2014 at 3:42 am
Your query has four output columns:
SELECT
ot.OperationalTypeAlternateKey AS [OperationalTypeAlternateKey]
,ot.OperationalType AS [Entry Type]
,Convert(Varchar, DateDayOfMonth)+' '+DateMonthName + ' '+ Convert(Varchar,DateYear) AS [Date]
,COUNT(*) AS [Total]
FROM
If you're returning a single row...
June 25, 2014 at 5:38 am
djj (6/25/2014)
June 25, 2014 at 5:18 am
The issue is a lack of clarity.
Don't give up. Have a look at the result of this:
IF OBJECT_ID ('tempdb..#GLT') IS NOT NULL DROP TABLE #GLT
CREATE TABLE #GLT (
[Sequence] [int] NULL,
[WK...
June 25, 2014 at 3:56 am
pwalter83 (6/25/2014)
ChrisM@Work (6/25/2014)
pwalter83 (6/25/2014)
ChrisM@Work (6/25/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
pwalter83 (6/24/2014)
Jeff Moden (6/24/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
June 25, 2014 at 3:40 am
pwalter83 (6/25/2014)
ChrisM@Work (6/25/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
pwalter83 (6/24/2014)
Jeff Moden (6/24/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
June 25, 2014 at 2:57 am
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
pwalter83 (6/24/2014)
Jeff Moden (6/24/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
June 25, 2014 at 1:52 am
pwalter83 (6/24/2014)
Jeff Moden (6/24/2014)
pwalter83 (6/24/2014)
ChrisM@Work (6/24/2014)
IF OBJECT_ID...
June 24, 2014 at 9:26 am
Rog Saber (6/23/2014)
I want to find the earliest time_sched_start_dt, time_sched_end_dt where col_val is null
and the datediff between time_sched_start_dt and...
June 24, 2014 at 8:54 am
Change
HAVING DATEDIFF(MINUTE,MAX(CASE WHEN dir = 'S' THEN dt END),MAX(CASE WHEN dir = 'E' THEN dt END)) > @duration
to
HAVING DATEDIFF(MINUTE,MAX(CASE WHEN dir = 'S' THEN dt END),MAX(CASE WHEN dir...
June 24, 2014 at 7:50 am
Viewing 15 posts - 3,196 through 3,210 (of 10,144 total)