SELECT Ordered FROM Tbl1 UNIONSELECT Ordered FROM Tbl2 where ID = 1
Now, this will return the records for ID=1. However, this will also return records for 2, 3, 4, 5, and so on. However, this code lacks one thing: it does not specify where Tbl1 should get its records.
To retrieve the records for each Query, we need to ensure that a WHERE Clause Is Present at every level.