Created 01-20-2017 02:28 AM
Encountered "Error while compiling statement FAILED: SemanticException [Error 10002]: Line 2:29 Invalid column reference 'total_hours' [ERROR_STATUS]
,I encountered the Error while compiling statement: FAILED: SemanticException [Error 10002]: Line 2:29 Invalid column reference 'total_hours' [ERROR_STATUS]
Created 01-20-2017 06:41 AM
Hi @Hak Tiong Ong,
Can you post the entire script you are running? I'm not seeing where you are referencing total_hours in what you have posted.
Thanks!
John
Created 01-20-2017 06:49 AM
Hi @jwhitmore
Found my mistake miss out the total_hours for the line below, thank you very much.
JOIN (SELECT driverId, sum(hours_logged)total_hours, sum(miles_logged)total_miles FROM timesheet GROUP BY driverId ) t
Created 01-20-2017 06:54 AM
Excellent! Glad to hear it.