I am trying to create a query to take integer street address numbers and get the hundred block number for the address. E.g. any value from 300 to 399 yields 300 etc.
Is this possible in a single query or should I write a script?
you can use floor like this :
SELECT FLOOR(399/100)*100;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With