I am trying to get the union of a query and a view or a view and a view. But doing this in MySql gives back an ER_PARSE_ERROR
.
So say I have a view called B_SAL
for the state of a particular data set before a particular operation.
CREATE OR REPLACE VIEW B_SAL AS
SELECT * FROM EMP ORDER BY EMP.COMM;
After that operation I want to get the UNION ALL
of B_SAL
and the current state of the data set, in this case EMP
.
(SELECT * FROM EMP ORDER BY EMP.COMM)
UNION ALL
B_SAL