Quantcast
Channel: MySQL Case statement in a View with Union All - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Nick for MySQL Case statement in a View with Union All

You can't use an alias in the SELECT, so you can't refer to records_waiting_count, you need to use the expression that it refers to. Also you already have a column called status, so you can't call the...

View Article



MySQL Case statement in a View with Union All

I want to add a "Status" column to my view "v_file_details", which will have a value, depending on the data from "v_file_details.records_waiting_count" and "v_file_details.records_correct_count"...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images