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.
Expand|Select|Wrap|Line Numbers
- 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.