Viewing 15 posts - 766 through 780 (of 5,504 total)
Glad I could help 😀
This example once again demonstrate how a "semi-optimal" database design usually increase query complexity...
The sad part is, there are companies out there making money by selling...
December 23, 2011 at 1:59 am
Will something like this bring you closer to the result you're looking for?
The information that there will never be more than two UOMs allows to use the ROW_NUMBER approach to...
December 22, 2011 at 2:48 pm
Did you have a look at my solution?
It shows the result you're looking for (at least after eliminating the undesired columns).
But that still doesn't answer the questions I asked earlier.
December 22, 2011 at 2:09 pm
stourault (12/22/2011)
December 22, 2011 at 1:39 pm
GSquared (12/22/2011)
December 22, 2011 at 1:32 pm
Here's a slightly different approach. You'll need to reduce it to the columns needed.
SELECT * FROM
(
SELECT
PartCode,
Lot,
Status,
Warehouse,
MAX(CASE WHEN UOM='CS' THEN Qty ELSE NULL END)...
December 22, 2011 at 1:19 pm
Using the calendar table you could first aggregate the values.
In a second step, use the CrossTab approach to pivot the result. For details how the CrossTab concept works, see the...
December 22, 2011 at 5:44 am
Whatever you define as a "Lane", the best way I can think of is using a calendar table.
I recommend you google for the term "SQL Server calendar table".
Then modify the...
December 22, 2011 at 4:55 am
How did you check indexes and how did you arrive at the conclusion "all are ok"?
Another option would be to build the UNION ALL cte based on telephoneregion1 and telephoneregion2...
December 21, 2011 at 9:44 am
If the number of columns is unknown, I would use the DynamicCrossTab approach instead of PIVOT.
Please see the two related articles referenced in my signature.
Since you most probably need to...
December 21, 2011 at 4:15 am
December 19, 2011 at 2:00 pm
bitbucket-25253 (12/19/2011)
LutzM Posted Today @ 9:07 AM
Hmmm.... interesting....
Based on the (almost public available) age of the two fellows you're somewhat between 14 and 16 years old. Hard to believe that...
December 19, 2011 at 10:52 am
Dev (12/19/2011)
L' Eomot Inversé (12/18/2011)
Revenant (12/17/2011)
December 19, 2011 at 7:07 am
Revenant (12/17/2011)
That's not how it works. I do not want to swamp you with my conclusions -- and I have been around like 30+ years --; but if you...
December 17, 2011 at 4:22 pm
L' Eomot Inversé (12/17/2011)
LutzM (12/17/2011)
Stefan Krzywicki (12/16/2011)
L' Eomot Inversé (12/16/2011)
Stefan Krzywicki (12/16/2011)
SAP = BlechSAP = a lot worse than just Blech
In addition to many of the faults I already knew...
December 17, 2011 at 9:04 am
Viewing 15 posts - 766 through 780 (of 5,504 total)