|
|
|
|
²ÀÁö / 2002-01-02 / ¿ÀÈÄ 1:10:12 / 147.6.140.128
Á¶È¸¼ö : 132
|
[Áú¹®] ¿ÀÌ ¾Æ´Ñ Çà¿¡¼ °ªÀÇ ÇÕ ±¸Çϱâ..6 |
> mon tue wed
> ------------------ <= Å×À̺í À̸§: table
> a 1 2 3
> b 3 6 1
> c 3 5 5
>
> À§¿Í °°Àº Å×ÀÌºí¿¡¼ a,b,cÀÇ mon,tue,wed ÀÇ ÇÕÀ» ±¸ÇÏ·Á¸é sql¹®À» ¾î¶»°Ô ½á¾ßÇÏÁÒ?(ÇÕÀº °¢°¢ a,b,c µû·Î ±¸ÇÏ·Á°í ÇÕ´Ï´Ù.)
>
>
-----------------------------------------------------------
select Col, (mon+tue+wed) as 'ÇÕ°è'
from table
|
|
|