달력

62020  이전 다음

  •  
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  •  
  •  
  •  
  •  

Ranking 쿼리

일 얘기 2005. 1. 12. 19:32
CREATE VIEW vw_Test
AS
SELECT user_id, score, (SELECT Count(*) FROM Test WHERE score >= T.score) AS rank
FROM Test T
GO
Posted by 맛사탕

댓글을 달아 주세요