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
 Old Forums
 CLOSED - General SQL Server
 Database records comparison

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-03-19 : 08:27:28
Sajid writes "Hi everyone

How can I write a select query that compares two database records such that the query returns the matched records and their percentages to which they are alike.

An example will help alot.

Regards

Sajid"

nr
SQLTeam MVY

12543 Posts

Posted - 2004-03-19 : 09:21:02
What do you mean by percentage alike?
Can you give an example.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

stephe40
Posting Yak Master

218 Posts

Posted - 2004-03-19 : 22:35:04
Maybe he means as a percentage of the matching columns. Like, both records have 10 fields, and 6 of them match, then the percentage would be 60%.

- Eric
Go to Top of Page
   

- Advertisement -