Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

how to display data from 2 tables, like below

$
0
0

Hi, I've 2 tables like below

Table1 

FirstName           LastName            Role

John                     due                        Manager

Kris                       wen                       CEO       

Veda                     jen                         HR         

Table2  (only 1 row)

Company             Location

Goodcomp         Cityville

I’d like to display output like below

FirstName           LastName            Role                       Company             Location

John                   due                        Manager                 Goodcomp         Cityville

Kris                     wen                       CEO                        Goodcomp         Cityville

Veda                   jen                         HR                          Goodcomp         Cityville

There is no common filed in both tables

Please advise 


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>