I have a table 'book' with 2 columns: title and price:
title | price
--------------
'abc' | 567.99
'cdl' | 100.40
'ttt' | 300.99
'uio' | 200.90
How would I select all prices ending in .99? I have tried this so far:
select * from book where substring(price, 0, substring_index(length(price))) like '%.99'