Dear expert,
I'm trying to join two table between master and child table. I want to show all aircraft registration for specified aircraft type even if there is no flight record at the time specified.
Unfortunately, from my query result, I cannot see aircraft registration "GPN" (which is an A330-200 and exist but not flight at the time specified). please see attachment.
Please help.
[imgnothumb]http://bytes.com/attachments/attachment/5699d1322102225/query-result.jpg[/imgnothumb]
I'm trying to join two table between master and child table. I want to show all aircraft registration for specified aircraft type even if there is no flight record at the time specified.
Code:
SELECT TYPE, SREG, Sum(FLT_MINUTES)/60/7 AS [AVG FH], Sum(FLT_MINUTES) AS FM, Count(FLT_MINUTES) AS CYCLE FROM AC RIGHT JOIN WEEKLY ON AC.SREG = WEEKLY.AC_REG WHERE DEP_UTC BETWEEN #10/31/2011# AND #11/6/2011# AND TYPE = "A330-200" GROUP BY TYPE, SREG;
Please help.
[imgnothumb]http://bytes.com/attachments/attachment/5699d1322102225/query-result.jpg[/imgnothumb]
Comment