hey! So what's problem you are facing you can use appropriate clause to fetch out the result.
use given syntax
SELECT column_name(s)
FROM table_name
WHERE column_name operator value
or If I am getting any thing wrong so please fell free to revert back with your table structure and your requirement in details.