¾È±Ô °øºÎ¹æ

MS-SQL > Á¶ÀÎÀ» ÀÌ¿ëÇÑ ·©Å·(¼øÀ§) ±¸Çϱâ

µî·ÏÀÏ : 2017-07-03 19:01 Á¶È¸¼ö : 52,534

¾È³çÇϼ¼¿ä!

¼øÀ§ ±¸Çϱâ Äõ¸® ÀÔ´Ï´Ù.

member ¶ó´Â Å×ÀÌºí¿¡ point Çʵ尡 ÀÖ½À´Ï´Ù.
ȸ¿øµéÀÌ °¡Áö°í ÀÖ´Â point ¸¦ ±âÁØÀ¸·Î ¼øÀ§¸¦ ³ªÅ¸³»°íÀÚ ÇÒ¶§ »ç¿ëÇÒ¼ö
ÀÖ´Â Äõ¸® ÀÔ´Ï´Ù.

select id, (Select Count(*) + 1 as Ranking From Member B Where B.Point > A.Point) Ranking, Point From Member A Order By point desc

ÀÀ¿ëÇؼ­ »ç¿ëÇØ º¸¼¼¿ä.

°¨»çÇÕ´Ï´Ù.
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.