I've built a web application that has a small search facility. As part of my search, I offer the users the option to search by dollar amounts. I did some searching around and didn't find any solid examples or advice other than the "LIKE" clause doesn't operate on numbers in SQL, so my question is:
Can someone provide an example of an correct SQL statement to search against numbers with decimals in a database. For example, if some inputs 5234.32 as a currency search, I'd want the results to return any records whose "amount" column is 5xxx.xx. If the user entered 64.58, I'd want to return any records whose "amount" column is 6x.xx
Thanks in advance