merge tables in sql using union

merge tables in sql using union

How to create a new table in database by merging two tables using union function in SQL?

View Answers

February 15, 2012 at 5:42 PM

REATE TABLE new_table
  SELECT * FROM table1
    UNION
  SELECT * FROM table2;

Ads









Related Tutorials/Questions & Answers:
merge tables in sql using union
merge tables in sql using union  How to create a new table in database by merging two tables using union function in SQL?   REATE TABLE new_table SELECT * FROM table1 UNION SELECT * FROM table2;   
SQL UNION Operator
SQL UNION Operator      ... The Tutorial helps you to understand SQL UNION Operator .In this Tutorial, we... 5 Santosh 12 SQL UNION Syntax The Syntax
Advertisements
SQL Union
SQL Union       SQL Union is used to combine the query of two or more Select Statement... 'SQL Union'. To understand and grasp the example we create a table 'stu
SQL Server row comparison using two tables
SQL Server row comparison using two tables  insertion process are completed in table1.string comparison using table2 to table1 if any changes in these tables and then upadated
Mysql Merge
; Mysql Merge Statement is used to merge the two sql statement using UNION clause. The UNION clause is used to combine the result set of any two sql queries... should be same in both the tables to merge them. The UNION clause will not work
Mysql Merge
; Mysql Merge Statement is used to merge the two sql statement using UNION clause.The UNION clause is used to combine the result set of any two sql... Value should be same in both the tables to merge them. The UNION clause
Mysql Merge Statement
,The Engine Value should be same in both the tables to merge them.The UNION...;  Mysql Merge Statement is used to merge the two sql statement using UNION clause.The UNION clause is used to combine the result set of any
Mysql Merge Statement
;  Mysql Merge Statement is used to merge the two sql statement using..., The Engine Value should be same in both the tables to merge them. The UNION...=MERGE UNION=(employee01,employee02) ; Query OK, 0 rows affected (0.03 sec) Query
select result from three tables using sql.
select result from three tables using sql.  I want to get a result from three tables. i dont how to write the sql query. Please help me. "I want to display Name,Username and Product_Name where Id=007" table "register" Name
SQL UNION ALL Operator
two different tables. The UNION ALL combine two table using select... SQL UNION ALL Operator       The SQL UNION ALL Operator is used to list all records
Join the two tables in sql
Join the two tables in sql  How to join the two tables in SQL ..and return the value from common column in SQL Database
SQL UNION Operator
SQL UNION Operator      ... The Tutorial helps you to understand SQL UNION Operator .In this Tutorial, we... 5 Santosh 12 SQL UNION Syntax The Syntax
Merge databases in SQL SErver 2005
Merge databases in SQL SErver 2005  Please help me to merge databases in SQL server 2005
SQL All Tables
SQL All Tables       SQL All Tables is used to show all the tables in database. Understand with Example The Tutorial illustrate an example from 'SQL All Tables'. To understand
Using criteria for multiple tables
Using criteria for multiple tables  How to join more than three tables,those tables must be maintain primary key relation ship using Hql criteria & projections
Using criteria for multiple tables
Using criteria for multiple tables  How to join more than three tables,those tables must be maintain primary key relation ship using Hql criteria & projections
Joining tables using criteria
Joining tables using criteria  How do i join more than three tables and retrieve one column from parent table and count of unique values in a single column from child table,the joined tables must be maintain primary key
create the SQL tables from an XML schema
create the SQL tables from an XML schema  I'm using Eclipse, Please let me know if anyone developped an application that would automatically create the SQL tables from an XML schema
union
union  how to declare union function define in single line in java(eg:like c=a+b
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
Merge multiple jasper file to one word Doc using java
Merge multiple jasper file to one word Doc using java   how to Merge multiple jasper file to one word Doc using java
sql query to get name,age,phone,address from tables t1,t2,t3,t4,t5 ..
sql query to get name,age,phone,address from tables t1,t2,t3,t4,t5 ..  ... , address FROM t1 order by name"; this is for 2 tables : query ="SELECT t.name... by name"; i want for 12 tables : i want to fetch name age pwd phone address from 12
output using SQL
output using SQL  how to get ( 15 march 2011) and (15/03/2011) output using SQL   Use the following queries to get the data from database in the given format. For (15 march 2011) format: SELECT DATE_FORMAT(dob, '%d
how to get values for same column name from two different tables in SQL
how to get values for same column name from two different tables in SQL  how to get values for same column name from two different tables in SQL???? column name is emp_id loacated in these two tables company,employee
mysql select from multiple tables
mysql select from multiple tables   how can i select the date field from multiple tables in mysql?   "UNION" can be used to select data from multiple tables in my sql... for example (SELECT * from name where `name
Composable Pointcut - Union
ComposablePointcut- Union Operation A composable pointcuts can be composed using the static methods in the org.springframework.aop.support.Pointcuts class or using composable pointcut class in the same package. MainClaz.java
connect sql server 2005 using php
connect sql server 2005 using php  how to connect sql server 2005 using php program. how mssql_connect will work
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   hey friends.... plz me to solve this question... I have used the following code for retrieving data fromm two tables : first table having fields: bookid,name

Ads