Dina_J

project

Dec 3rd, 2024
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT title, user_id, score,
  2. ROUND(AVG(score) OVER (PARTITION BY user_id), 0) as average
  3.  
  4. FROM stackoverflow.posts AS p
  5. WHERE title IS NOT NULL AND score > 0
Advertisement
Add Comment
Please, Sign In to add comment