With As Clause Not recognized MySQL
I am trying to use a with as clause in a query. WITH NAME AS ( SELECT col1, col2 FROM TABLE1 ) SELECT col2, col3 FROM TABLE2 WHERE col2 in (NAME.col1) The query placed in the with as clause works on it’s own but I get this error: Unknown column NAME.’col1′ in ‘where clause’ I… Read More With As Clause Not recognized MySQL