Viewing 15 posts - 3,136 through 3,150 (of 5,504 total)
caseyo (7/15/2010)
This was exactly what I was needing. I modified...
July 15, 2010 at 3:40 pm
Based on your sample data I would use the following concept.
Unfortunately, I was unable to run your original query since there are tables and functions missing. So I had to...
July 15, 2010 at 3:03 pm
@ Joe Celko:
You've demonstrated to design the view for YTD_Averages.
What is your recommendation to get MTD, QTD and ALL_avg?
As far as I can see, one option would be to UNION...
July 15, 2010 at 2:46 pm
Steve Jones - Editor (7/15/2010)
Jeff Moden (7/15/2010)
And, no... I'm not trying to be a smart guy here or challenge anyone's answer... I've never run into such a problem and I'd...
July 15, 2010 at 2:30 pm
Ok, here's what I came up with:
DECLARE @overall_avgs TABLE
(
[system_id] [TINYINT] NULL,
[id] [TINYINT] NULL,
...
July 15, 2010 at 1:42 pm
Tom.Thomson (7/15/2010)
Paul White NZ (7/14/2010)
July 15, 2010 at 11:04 am
Jeff Moden (7/14/2010)
CirquedeSQLeil (7/14/2010)
LutzM (7/14/2010)
OUCH!!!!I immediately blacklist vendors with such a philosophy as soon as I'm getting aware of it...
I agree with you on that one.
What "philosophy" are...
July 15, 2010 at 11:01 am
Did you make your customer aware of the consequence?
I'm not sure if that's what's intended. I'd recommend asking for clarification.
July 14, 2010 at 5:17 pm
Since the posted table GPK has no unique constraint for gpk column you might end up with duplicates causing your code to fail.
Either a unique constraint is required for the...
July 14, 2010 at 5:07 pm
I can't confirm what you describe:
Example:
DECLARE @tbl TABLE
(
field4 CHAR(20)
)
INSERT INTO @tbl
SELECT '1' UNION ALL
SELECT '700' UNION ALL
SELECT '23,000.00' UNION ALL
SELECT '600,000.00' UNION ALL
SELECT '2,101.50'
SELECT *,CAST(REPLACE(field4,',','')...
July 14, 2010 at 4:43 pm
Did you consider BOL (BooksOnLine, the SQL Server help system), section "sp_addrolemember" as a resource?
July 14, 2010 at 4:39 pm
The problem is the comma.
You would need to remove the comma in order to be able to convert the value to a decimal format.
SELECT
PLANT AS plant,
ITEM_NUMBER AS item_number,
ITEM_DESCRIPTION AS...
July 14, 2010 at 4:18 pm
Hi caseyo,
please provide the table definition (CREATE TABLE ...) for the table in question (overall_avgs and tblResults). One way to do it is by Right-clicking at the table in Management...
July 14, 2010 at 4:09 pm
I immediately blacklist vendors with such a philosophy as soon as I'm getting aware of it...
July 14, 2010 at 3:56 pm
Viewing 15 posts - 3,136 through 3,150 (of 5,504 total)