Select Count(*), CEILING(CAST(Count(*) AS FLOAT)/10) from Board as a left outer join Answer as b on a.idx=b.BoardID where a.inUse = 1 and a.kind = 'counsel' and a.UserID = '' Select Top 20 *, a.idx as idx, b.idx as idx1, a.inDate as inDate, b.inDate as AnswerDate from Board as a left outer join Answer as b on a.idx=b.BoardID where a.inUse = 1 and a.kind = 'counsel' and a.UserID = '' order by a.StepNo desc, a.Step, a.inDate desc
text
|
 |
 |
 |
 |
 |
|
| 8093 |
|
|
2026-11-29 |
2 |
|
| 8092 |
|
|
2026-11-29 |
2 |
|
| 8091 |
|
|
2026-11-29 |
2 |
|
| 8090 |
|
|
2026-11-28 |
1 |
|
| 8089 |
|
|
2026-11-28 |
2 |
|
| 8088 |
|
|
2026-11-28 |
2 |
|
| 8087 |
|
|
2026-11-28 |
2 |
|
| 8086 |
|
|
2026-11-27 |
2 |
|
| 8085 |
|
|
2026-11-26 |
3 |
|
| 8084 |
|
|
2026-11-26 |
2 |
|
|
|
|
|
|
|