Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. select *, count(id_osoby)
  2. from konta
  3. INNER JOIN osoby USING(id_osoby)
  4. where ProductID = (
  5. select min(id_osoby), max(id_osoby)
  6. from konta
  7. where mod(id_osoby, 2) = 1)
  8. group by id_osoby;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement