I want to display the values of two different tables, and two different columns from that table, sorted in ascending order.
How can I do that?
I use this to display values of two tables, but stuck in sorting by ascending order:
select
distinct varWinePrice
from
tbl_wines
union
select
distinct varPrice
from
tbl_price
If column names are different then sorting should be done using the column of the first subselect: