Advertisement
yatahaze

PavloSheichenko

Feb 7th, 2023
913
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.20 KB | None | 0 0
  1. SELECT CustomerName, OrderDate, Customers.CustomerID, Count(*) as "Number Of Orders"
  2. FROM Customers
  3. JOIN Orders
  4. USING (CustomerID)
  5. Group by CustomerName, CustomerID, OrderDate
  6. HAVING Count(*)> 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement