I have a table with latitude and longitude stored as a float. I am needing a SELECT statement to match each latitude and longitude directly as I will be 'looking up' and inserting a postcode against each record. The table looks like the below
+-----------+-----------+------------------+--------------------+
|   Name    | LocatorID |     Latitude     |     Longitude      |
+-----------+-----------+------------------+--------------------+
| THE ALLEY |         1 | 52.2007179260254 | 0.39888408780098   |
| THE ALLEY |         2 | 52.5201377868652 | -2.13742804527283  |
| THE ALLEY |         3 | 51.0303649902344 | -1.90383625030518  |
| THE ALLEY |         4 | 50.9091453552246 | -0.537165105342865 |
+-----------+-----------+------------------+--------------------+
I would have thought the select statement would be something like:
SELECT TOP 1000 [Name]
      ,[LocatorID]
      ,[Latitude]
      ,[Longitude]
  FROM [UKStreetsAndPlaces].[dbo].[OS_Locator]
  WHERE [Latitude] = 52.2007179260254
  AND [Longitude] = 0.39888408780098
However this returns NO results and I see many articles suggesting this approach is not appropriate.
The thing is, as you can see, I really do need an accurate match to ensure I insert the right postcode against the right record.
 
     
     
     
     
    