There is a table {id | date}. I want to select all rows where date > date from the given row.
Normally I would do it in two queries:
SELECT `date` FROM `mytable` WHERE `id`={id}; //get {date} from known {id} and
SELECT * FROM `mytable` WHERE `date`> {date} //get the desired result Is it possible to do it in one SQL query?
Thanks!
Is it possible to do it in one SQL query?Have you tried it?