Viewing 15 posts - 5,236 through 5,250 (of 6,036 total)
Susan, there is nothing to do with Service Packs.
Look at yor data first.
In Staging table vehicle_tmp just contains 2 or more lines with the same vehicle_nmb. And your query...
July 25, 2006 at 7:07 pm
Don't forget at the end of the day to compare performance of this solution with performance of simple PIVOT with aggregates.
![]()
July 25, 2006 at 3:54 pm
Why you are so afraid of aggregates?
They do not harm people. Honestly.
If there is only 1 value MAX will just present that value and dod not do any aggregation. Exactly...
July 25, 2006 at 3:28 pm
First of all get rid of
ISNULL(B.IN_Opening_Stock,0) = 0
and all other such checks.
Replace it with (B.IN_Opening_Stock IS NULL OR B.IN_Opening_Stock = 0)
Looks more heavy but executes times faster.
Second.
You cannot...
July 25, 2006 at 3:18 pm
Topic "Cast and Convert" in BOL must be really helpful for you.
July 25, 2006 at 4:25 am
Probably we need to see full query.
I used to get such kind of errors when there were too many derived tables or subqueries in my statement.
It was long time...
July 24, 2006 at 7:18 pm
Who says 1?
4 tables including types and subtypes.
July 24, 2006 at 7:05 pm
Tim, ready to bet on it?
What do you mean: "I see you got there first..."?
I tell you, it's not a matter of guessing if I can do it. I have...
July 24, 2006 at 6:45 pm
Where this "(UserID=357053)" is dropped from?
July 24, 2006 at 5:16 pm
It is in one table in my application.
And it works fine and it's very fast.
July 24, 2006 at 5:15 pm
Do you read only first lines from help topics?
Read again and this time pay some attention to sentence about FORMATFILE.
Than go by the link "Using Format Files" and read closely,...
July 24, 2006 at 4:59 pm
Bad design. From the beginning.
"Do not multiply entities needlessly." Heard about this?
Now you need either rethink your ideas aboun design or fix the error in UNION query.
select Name as ObjectName,...
July 24, 2006 at 4:36 pm
You cannot order by value not mentioned in SELECT list.
There is no column "users.country" in your SELECT list, there is only "DISTINCT(users.country)".
Quote from BOL:
The ORDER BY clause can include items...
July 24, 2006 at 4:19 pm
SELECT ID, 'Address1'
FROM Table
WHERE Address1 IS NULL
UNION
SELECT ID, 'Address2'
FROM Table
WHERE Address2 IS NULL
UNION
SELECT ID, 'City'
FROM Table
WHERE city IS NULL
UNION
SELECT ID, 'Country'
FROM Table
WHERE country IS NULL
ORDER BY ID
July 22, 2006 at 11:56 pm
Viewing 15 posts - 5,236 through 5,250 (of 6,036 total)