Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Multiple tables

Author  Topic 

noblemfd
Starting Member

38 Posts

Posted - 2012-02-20 : 16:12:44
Am developing an application with mssql 2000, with multiple tables, the same column names, but different data. Please how do I merge these tables. See below

TABLE1
Name | Age | Sex
Ade | 20 | male
Femi | 15 | male

TABLE2
Name | Age | Sex
kola | 22 | female
jide | 41 | male

TABLE3
Name | Age | Sex
TAde | 22 | male
DEJI | 15 | female

RESULT
Name | Age | Sex
Ade | 20 | male
Femi | 15 | male
kola | 22 | female
jide | 41 | male
TAde | 22 | male
DEJI | 15 | female

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2012-02-20 : 16:30:19
use UNION ALL or UNION

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -