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.
Author |
Topic |
silvestersymon
Starting Member
2 Posts |
Posted - 2013-11-08 : 02:05:46
|
Hi All,Hi have 'Privious' table as ***Metrics Count***AccessibilityFilter 1679Archives 80Corel 90DateFilter 1680and 'Current' table as ***Metrics Count***AccessibilityFilter 1679Archives 85Corel 100DateFilter 1680I want to fetch only the mis matched records as below.***Metrics PreviousCount CurrentCount***Archives 80 85Corel 90 100Thanks In Advance...Regards,Simon.L |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-08 : 04:00:19
|
[code]SELECT c.TextField,c.NumberField,p.NumberField FROM Current cINNER JOIN Previous pON p.TextField = c.TextFieldWHERE p.NumberField <> c.NumberField [/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
silvestersymon
Starting Member
2 Posts |
Posted - 2013-11-11 : 04:16:24
|
Hi Visakh Its working really fine thank you.Regards,Simon.L |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-11 : 04:33:45
|
you're welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|