What are the account details with the largest value?
select account_details from accounts order by account_details desc limit 1
What about the account details with the value having the character '5' in it, please?
select account_details from accounts where account_details like "%5%"
What are the statement ids of those accounts, please?
select statement_id from accounts where account_details like "%5%"
What about the account details with the value having the character '9' in it, please?
select account_details from accounts where account_details like "%9%"
Could you tell me the account ids of those accounts too?
select account_id from accounts where account_details like "%9%"