MarketLytics interview question

They asked mostly from SQL