Hi!
I have two tables. I want compare two table and show difference columns name.
CREATE TABLE [dbo].[tblOne](
[id] [int] IDENTITY(1,1) NOT NULL,
[name] [nchar](10) NULL,
[address] [nchar](10) NULL,
[dob] [date] NULL
)
CREATE TABLE [dbo].[tblTwo](
[id] [int] IDENTITY(1,1) NOT NULL,
[lname] [nchar](10) NULL,
[name] [nchar](10) NULL,
[dob] [date] NULL,
[address] [nchar](10) NULL,
[phone] [int] NULL,
[age] [int] NULL
)
select * from tblOne
minus
select * from tblTwo
I want show in result lname, phone and age because in three columns haven't on tblOne.