-
simplifying code using multiple fby possible?
I want to simplify the code below into single line using two fbys but it doesn’t working.
Is there any possible way to do it? or should I just keep using separate queries?
tip_stat : select avg tip by payment_type from jan09 where fare > (avg;fare) fby vendor
select payment_type, tip from tip_stat where tip = max tip
Log in to reply.