Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

help with sql query

$
0
0

 

Lets assume i  have  ' employee_Id '  column in table employeesIBM , and 'employee_Id' column in employeesSUN.

Now,

Lets once again assume,that  there are 4 records in employeesIBM.

and 10 records in employeesSUN.

 

 

*******What i want to achieve*****

i want to write a query which will display one column 'ALLemployees'

displaying 4 records of employeesIBM and 2 records in employeesSUN.

something like this >>>

 

 

employee_Id  ******from employeesIBM table

1

2

3

4

 

employee_Id  ******from employeesSUN table

10

11

 

want to write a query which will display something like this

 

ALLemployees

1

2

3

4

10

11

 

Please help me out with this.

Kris

 

 


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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