Viewing 15 posts - 121 through 135 (of 184 total)
BFSTEP (8/1/2013)
August 1, 2013 at 11:21 am
I would use a case statement to handle this.
July 29, 2013 at 1:16 pm
See http://msdn.microsoft.com/en-us/library/ms187787.aspx
It indicates:
Examples of valid simple terms are "blue berry", blueberry, and "Microsoft SQL Server". Phrases should be enclosed in double quotation marks ("").
July 26, 2013 at 11:46 am
I have both desktop and laptop pcs for work. I rarely ever use the laptop outside the plant - but nice to have if I need to travel or...
July 15, 2013 at 6:45 am
I have enjoyed 3 weeks vacation and unlimited sick time for several years and now find myself in a much different situation.
My current position includes 2 weeks PTO which must...
July 12, 2013 at 12:08 pm
Trust me when I say that there is a reason why I looked for that early.
😛
July 11, 2013 at 9:33 am
I believe you are missing a comma after the previous line.
July 11, 2013 at 8:44 am
SELECT unit_id,
SUM(value) AS unit_total,
CASE
WHEN COUNT(Unit_ID) = 1
AND SUM(value) >= 50
THEN 'Y'
ELSE 'N'
END AS Flag,
CASE
WHEN COUNT(Unit_ID) = 1
AND SUM(Value) >= 50
THEN max(orderID)
ELSE NULL
END AS OrderID,
CASE
WHEN COUNT(Unit_ID) = 1
AND...
July 10, 2013 at 11:53 am
I recall having a very similar thought when I finished my Accounting 101 class.
Knowing my debits from my credits and my assets from my liabilities (and most importantly,...
July 10, 2013 at 7:19 am
This is my first year in the automotive industry. I must say that for the most part, I don't like being forced to take my vacation at specfic times...except...
June 28, 2013 at 12:33 pm
This is standard practice in the US - the week of July 4 and the week of Christmas are typically no production.
June 28, 2013 at 12:10 pm
My July 4 holiday will begin in a little more than 2 hours - my employer is in the automotive manufacturing business and the infamous "shutdown" is nearly upon us.
June 28, 2013 at 11:53 am
Then the script I posted above would work.
June 28, 2013 at 11:32 am
Here is my attempt - summing the value by unit_id, displaying a "Y" flag if there is a single unit_id with value >= 50 and only displaying results if the...
June 28, 2013 at 11:29 am
pongcs86 (6/28/2013)
New to the site, new to writing SQL queries and have no background in this type of thing.
But I've been googling my way to victory for the most...
June 28, 2013 at 11:17 am
Viewing 15 posts - 121 through 135 (of 184 total)