Viewing 15 posts - 241 through 255 (of 541 total)
ChrisM@Work (6/20/2012)
pwalter83 (6/20/2012)
ChrisM@Work (6/20/2012)
Are you seeing one row per BOOKING_ID in your output?- here's where adequate sample data would have helped
yeah, I get only one row per BOOKING_ID...
June 20, 2012 at 6:06 am
ChrisM@Work (6/20/2012)
Are you seeing one row per BOOKING_ID in your output?- here's where adequate sample data would have helped
yeah, I get only one row per BOOKING_ID and that...
June 20, 2012 at 5:48 am
ChrisM@Work (6/20/2012)
pwalter83 (6/20/2012)
---------------------------------
CROSS APPLY (
SELECT
=
STUFF(
(SELECT ', ' +...
June 20, 2012 at 5:24 am
ChrisM@Work (6/20/2012)
SELECT
MB.BOOKING_ID,
BOOKING_NUM,
--------------------------------------------------------
a.[BOOKING EQUIPMENT],
--------------------------------------------------------
GENERAL_COMMODITY_CD + ',' AS GENERAL_COMMODITY_CD -- qualify this column with a table alias so others know which table it's from
FROM MG_BOOKING MB
LEFT JOIN (
SELECT...
June 20, 2012 at 5:08 am
ChrisM@Work (6/20/2012)
pwalter83 (6/20/2012)
... I have some other tables that are also being used in the query as well. Can that be taken into account as well ?Thanks.
Of course. Can you...
June 20, 2012 at 2:27 am
SGT_squeequal (6/19/2012)
the reason you get duplicates is because of your joins are returning courtesan product, can you just explain how you want your results
The output should be like this...
June 20, 2012 at 2:06 am
ChrisM@Work (6/19/2012)
pwalter83 (6/19/2012)
ChrisM@Work (6/19/2012)
Paul, how many rows max will you have to roll up like this? Your example shows two rows - can it be 3, or 4, or n?
Could...
June 20, 2012 at 1:58 am
SGT_squeequal (6/19/2012)
June 19, 2012 at 10:04 am
ChrisM@Work (6/19/2012)
Paul, how many rows max will you have to roll up like this? Your example shows two rows - can it be 3, or 4, or n?
Could be up...
June 19, 2012 at 9:46 am
SGT_squeequal (6/19/2012)
select A.BOOKING_ID ,...
June 19, 2012 at 9:37 am
Thanks a lot for your reply !
May 22, 2012 at 5:59 am
george sibbald (5/15/2012)
does the object exist on both servers? Is the owner of the object the same on both servers?
As far as I know, the login name on both the...
May 15, 2012 at 7:18 am
anthony.green (5/4/2012)
May 4, 2012 at 7:53 am
Eugene Elutin (5/3/2012)
Change ORDER BY to:
ORDER BY [Employee Name]
,CAST('01 '+ [Month] + ' ' + CAST([Year]...
May 4, 2012 at 4:08 am
Eugene Elutin (5/3/2012)
Change ORDER BY to:
ORDER BY [Employee Name]
,CAST('01 '+ [Month] + ' ' + CAST([Year]...
May 3, 2012 at 2:41 pm
Viewing 15 posts - 241 through 255 (of 541 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy