 |
|
รบกวนพี่ๆ ช่วยดู Query ให้หน่อยครับ (ผมจะหาผลรวมของ score=1 ครับ) |
|
 |
|
|
 |
 |
|
<%
sqlstring = "select Aname,year(Actiondate) as y, month(Actiondate) as m,sum(score) as score1 from Assessment where score is not null and score = 1 group by Aname,year(Actiondate),month(Actiondate) order by Aname,year(Actiondate),month(Actiondate)"
SET RS1 = CONN.EXECUTE(sqlstring)
do until rs1.eof
%>
<%
rs1.movenext
loop
%>
ลองดูครับ
|
 |
 |
 |
 |
Date :
2012-02-23 13:36:48 |
By :
Thep |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ได้แล้วครับ
ขอบคุณมากสำหรับคำแนะนำครับ
ผมกำหนดชนิดของฐานข้อมูลผิดเองครับ
ตรง score ผมไม่ได้กำหนดเป็น Number คับ มันก็เลยเอามาคำนวณไม่ได้ครับ
|
 |
 |
 |
 |
Date :
2012-02-23 16:14:02 |
By :
sununrak |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|