Hi everyone,
instead of executing several queries like
and
I would like to combine the queries. I tried already using subqueries like
but without success. Can anyone give me a hint as to how to combine two or more queries on the same table but with different conditions for each field?
instead of executing several queries like
Code:
SELECT a FROM table WHERE id=1
Code:
SELECT b FROM table WHERE id=2
Code:
SELECT (SELECT a FROM table WHERE id=1), (SELECT b FROM table WHERE id=2)