Skip to content
Advertisement

SQL not using ALIAS column for calculation

Question Statement – From the given trips and users tables for a taxi service, write a query to return the cancellation rate in the first two days in October, rounded to two decimal places, for trips not involving banned riders or drivers.

Question code on Oracle SQL.

My Solution Code is below. However, I get the following error. Can someone pleas help?

SOLUTION CODE:

Advertisement

Answer

ORA-00904: “TOTAL_TRIPS”: invalid identifier

just means what is written “total_trips” is invalid

Just use total_trips (without quote)

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement