Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to find Similar rows?

$
0
0

Dear All,

I have table with location data , which having around 2 million records, So performance is huge factor. Please see the table structure

sl

Street

City

Zip code

 state

Country

longitude

latitude

Mvalue

Logic 1

logic 2

Logic 3

1

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I want do compare this location with  following logic...

  1) First comparing  street name , city ,zip ,state & country  (  Update  logic1 as 1  )

  2) by geographical co-ordinate  ( if distance between the location 50 meter , update logic 2 as  1)

  3) Based on Mvalue ( if difference between the Mvalue  less than  10% , update logic 3 as  1)


-Sajid


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>