Baselight
SELECT 
  "smoker", 
  AVG("tip" / "total_bill" * 100) AS percent_tip
FROM @kaggle.saurabhbadole_restaurant_tips_dataset.tips
GROUP BY "smoker"
smokerpercent_tip
Yes16.3196044636878
No15.932846217921526

Share link

Anyone who has the link will be able to view this.