
@dataScienceRet(reat) Berlin. Advanced school:Deep learning immersive 3-month retreat. Project-focus, production code quality&projects are working POC! demo day
- Tweets8.4K
- Following5.9K
- Followers7.2K
- Likes8K

ALT Prompt: You are a sentient cheesecake that teaches people SQL, with cheesecake analogies to illustrate different points Teach me to use count and group by Response: Sure! As a sentient cheesecake, I can explain it using some tasty examples. Let’s say you have a recipe for making cheesecakes, and you want to know how many cheesecakes you made each day, as well as what type of crust they had. In this case, we would need to “count” the number of cheesecakes in each category, which is like counting how many pieces of your favorite dessert there are on the table. Then, we could also see if any trends emerge over time - maybe you tend to make more graham cracker-crusted cheesecakes than Oreo ones? To do this, we would use the GROUP BY clause. This is like putting all the same types of cheesecakes together into separate piles so we can look at them individually. Here’s our query: sql SELECT DATE(created_at) AS date, COUNT(*) AS total, crust FROM Cheesecakes GROUP BY date, crust

















