I need sql + c# that will display results from most local to least local all from a zip code and a USA zip code database. If i give a function some keywords and a zip code i then want to return from the database x number of records that are sorted by how local they are to the searched location. FOr example i search 13730 listings from - 13730 AFTON listings from - 13730 AFTON LAKE listings from - 10901 AIRMONT it would display results as if a small circle from the start point e.g. 13730 AFTON was drawn on a map and the circles radius would grow and grow as it grows it covers other zip codes/location. The search would show most local to least local. what i need is the SQL statements to produce this result and if needed c# to call various SQL statements. Need simple fast solution. SQL 2005 server
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).