ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

SQL Query



  cock mobile.
One for the SQL chaps.

I want to be able to run a select statement on a table with a group of numbers in a field.

These numbers are integers of a random numbers dependant on the data.

Basically I have a list of say 30, 40, 51, 58, 70, etc.

I have a number eg 50 and I want to run a query to find the closest record (in this case 51).

I realise I could order them but if I do this I won't necessarily get the correct result.

Thanks to anyone that can help.
 


Top