The questions can come in any order, so make sure you are selecting right option for all questions.
1. Write a query to display the number of travel cards having balance less than 45 from travel_card table. Give an alias name as min_balance_count.select count(id) as min_balance_count from travel_card where balance<45;
select count(id) as max_balance_count from travel_card where balance >= 45;
select variance(balance) as balance_variance from travel_card;
select sum(amount) as total_payment from travel_payment;