Viewing 15 posts - 211 through 225 (of 541 total)
ChrisM@Work (1/11/2013)
Hi PaulI'll try to have a look over the weekend. Meantime, it's the last 5 mins of my last day here - and it's BEERTIME!
Cheers
ChrisM
Hi Chris,
Best of luck for...
January 14, 2013 at 2:21 am
ChrisM@home (1/13/2013)
Your sample data set doesn't have a matching row between MG_VSLVOY_HEADER and MG_VSLVOY_PORT_CONTROL:
SELECT ncv.*, vh.VSLVOY_HEADER_ID
FROM NCV_BL ncv
JOIN MG_VSLVOY_HEADER vh
ON ncv.saisan_VESSEL_CD = vh.VESSEL_CD
AND ncv.saisan_VOYAGE_CD = vh.VOYAGE_NUM
AND ncv.saisan_LEG_CD...
January 14, 2013 at 2:10 am
ChrisM@Work (1/11/2013)
Hi PaulI'll try to have a look over the weekend. Meantime, it's the last 5 mins of my last day here - and it's BEERTIME!
Cheers
ChrisM
Thanks a lot Chris, whenever...
January 11, 2013 at 9:46 am
ChrisM@Work (1/11/2013)
pwalter83 (1/11/2013)
ChrisM@Work (1/11/2013)
SELECT SUM(teu) AS TEU
FROM NCV_BL ncv
JOIN MG_VSLVOY_HEADER vh
ON ncv.saisan_VESSEL_CD = vh.VESSEL_CD
AND ncv.saisan_VOYAGE_CD = vh.VOYAGE_NUM
AND ncv.saisan_LEG_CD = vh.LEG_CD
JOIN MG_VSLVOY_PORT_CONTROL vpc...
January 11, 2013 at 9:39 am
ChrisM@Work (1/11/2013)
SELECT SUM(teu) AS TEU
FROM NCV_BL ncv
JOIN MG_VSLVOY_HEADER vh
ON ncv.saisan_VESSEL_CD = vh.VESSEL_CD
AND ncv.saisan_VOYAGE_CD = vh.VOYAGE_NUM
AND ncv.saisan_LEG_CD = vh.LEG_CD
JOIN MG_VSLVOY_PORT_CONTROL vpc
ON vh.VSLVOY_HEADER_ID...
January 11, 2013 at 8:33 am
ChrisM@Work (1/11/2013)
Why do you need to join to the other tables if they aren't contributing to the query, either as output or as a filter?
This is because of the following...
January 11, 2013 at 8:14 am
ChrisM@Work (1/11/2013)
pwalter83 (1/11/2013)
ChrisM@Work (1/11/2013)
Put that table first in the FROM list and inner join the other tables.
Comment out all of the joins...
January 11, 2013 at 7:48 am
ChrisM@Work (1/11/2013)
Put that table first in the FROM list and inner join the other tables.
Comment out all of the joins to the...
January 11, 2013 at 7:24 am
Andy Hyslop (1/11/2013)
HiYour DDL seems to be missing VOYAGE_NUM in the table MG_VSLVOY_HEADER
Andy
Sorry about that, its there now.
January 11, 2013 at 7:19 am
Lowell (11/26/2012)
they probably are not,and i'm not sure how to insert...
November 27, 2012 at 2:22 am
pwalter83 (10/24/2012)
Eugene Elutin (10/18/2012)
Which tables all of these PLACE_OF_DELIVERY, PLACE_OF_RECEIPT and saisan_month columns come from?They are not in your DDL and you didn't use table aliases in your query...
Hi Eugene,
I...
October 29, 2012 at 4:00 am
Eugene Elutin (10/18/2012)
Which tables all of these PLACE_OF_DELIVERY, PLACE_OF_RECEIPT and saisan_month columns come from?They are not in your DDL and you didn't use table aliases in your query...
Hi Eugene,
I have...
October 24, 2012 at 7:32 am
Eugene Elutin (10/18/2012)
Which tables all of these PLACE_OF_DELIVERY, PLACE_OF_RECEIPT and saisan_month columns come from?They are not in your DDL and you didn't use table aliases in your query...
Thanks Eugene,
The PLACE_OF_DELIVERY,...
October 19, 2012 at 2:43 am
Sean Lange (10/18/2012)
pwalter83 (10/18/2012)
Sean Lange (10/18/2012)
October 18, 2012 at 9:45 am
Sean Lange (10/18/2012)
Thank you for the ddl and sample data. However your requirement mentions a column TEU. This is not present on any of the tables you provided.
Sorry Sean, I...
October 18, 2012 at 7:40 am
Viewing 15 posts - 211 through 225 (of 541 total)