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 50 *, 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
|
 |
 |
 |
 |
 |
|
| 8063 |
|
|
2026-11-15 |
2 |
|
| 8062 |
|
|
2026-11-14 |
3 |
|
| 8061 |
|
|
2026-11-11 |
4 |
|
| 8060 |
|
|
2026-11-11 |
2 |
|
| 8059 |
|
|
2026-11-10 |
2 |
|
| 8058 |
|
|
2026-11-09 |
1 |
|
| 8057 |
|
|
2026-11-09 |
2 |
|
| 8056 |
|
|
2026-11-08 |
1 |
|
| 8055 |
|
|
2026-11-07 |
2 |
|
| 8054 |
|
|
2026-11-07 |
1 |
|
|
|
|
|
|
|