Can i have 2 results within a single query?
For example:
I have the following query.
SELECT *
FROM table1 JOIN table2 ON table1.id = table2.id
WHERE table1.user_id = $var;
I want the first result is WHERE table1.user_id = $var.
The second result is loop without WHERE table1.user_id = $var.
Do you want the result on which the
useridis equal to$varto be on top of the result on whichuseridis not equal to$var?