I have two tables, two differently name columns in these tables match up.
Table A:
a
b
c
d
e
Table B:
f
g
h
I need to display a grid view of e, g and h, Joining the tables together based on the f and b matching up. I know how to fill a grid view based on a query, its just the query itself I’m after.
Since all of your columns are uniquely named, and you are joining two different tables, no aliasing is necessary, and you don’t need to fully qualify the column names.
The SQL term you are looking for is a JOIN. In this case, it sounds like you want an inner join (there are many ways to write them).