View lawprod.MSCM.TRAY_LIST_ASSEMBLY_TIME_VW | Generated by SchemaSpy |
View Definition:
SELECT TRAY_LIST.TL_NO, AVG(TRAYSET.ASSM_DT - TRAYSET.CREAT_DT) * (60 * 60 * 24) AS AVG_ASSEMBLY_SECONDS FROM TRAY_LIST, TRAYSET WHERE TRAY_LIST.TL_ID = TRAYSET.TL_ID AND TRAYSET.ASSM_DT > TRAYSET.CREAT_DT GROUP BY TRAY_LIST.TL_NO