( SELECT * FROM table1
EXCEPT
SELECT * FROM table2)
UNION ALL
( SELECT * FROM table2
EXCEPT
SELECT * FROM table1)
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- Insert an image in a column of a table that already has 5 columns
- How to avoid the “divide by zero” error in SQL?
- SET versus SELECT when assigning variables?
- Querying data by joining two tables in two database on different servers
- Real life example, when to use OUTER / CROSS APPLY in SQL
- How to print VARCHAR(MAX) using Print Statement?
- Concatenate values based on ID
- Splitting delimited values in a SQL column into multiple rows
- How to find current transaction level?
- EXISTS vs JOIN and use of EXISTS clause
- Restrict an SQL Server connection to a specific IP address
- Cumulative Total in MS Sql server [duplicate]
- How do I find the data directory for a SQL Server instance?
- How to update two tables in one statement in SQL Server 2005?
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- Is the NOLOCK (Sql Server hint) bad practice?
- Is having an ‘OR’ in an INNER JOIN condition a bad idea?
- Where value in column containing comma delimited values
- How to find all connected subgraphs of an undirected graph
- How to use table variable in a dynamic sql statement?
- Create Trigger to log SQL that affected table?
- Selecting first row per group
- Using PIVOT in SQL Server 2008
- Function in SQL Server 2008 similar to GREATEST in mysql?
- Query times out from web app but runs fine from management studio
- SQL . The SP or function should calculate the next date for friday
- COALESCE Function in TSQL
- SQL Sort Order with Null values last
- When to use EXCEPT as opposed to NOT EXISTS in Transact SQL?