I have codes table with following data
_________
dbo.Codes
_________
AXV
VHT
VTY
and email table with the folowing data
_________
dbo.email
_________
x@gmail.com
y@gmail.com
z@gmail.com
and I am looking forward to join these two tables horizontally with the following output.
__________
dbo.output
__________
AXV x@gmail.com
VHT y@gmail.com
VTY z@gmail.com
Is there any way possible to get the desired output?
Edit #1 Both the tables contain unique codes and unique email addresses