I need to use an alias in the WHERE clause, but It keeps telling me that its an unknown column. Is there any way to get around this issue? I need to select records that have
SELECT * FROM (SELECT customer_Id AS 'custId', gender, age FROM customer WHERE gender = 'F') AS c WHERE c.custId = 100;