I have the table tbl_Discount
with these columns:
- d_ID
- Discount
And the table tbl_Tarrif
with these columns:
- p_ID
- Price
I want to select Discount
and Price
in a single query and it's easy in SQL Server using a stored procedure but, in Access I don't know how to do it.
I tried this:
SELECT Discount
FROM tbl_Discount
WHERE (d_ID = ?)
UNION
SELECT Price
FROM tbl_Tariff
WHERE (p_ID = ?)
But it returns two rows with one column each:
Discount
0
75000
And I want two columns (discount, price) on a single row, like this:
Discount Price
0 75000