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 280 *, 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
|
 |
 |
 |
 |
 |
|
| 7833 |
|
|
2026-09-13 |
9 |
|
| 7832 |
|
|
2026-09-13 |
10 |
|
| 7831 |
|
|
2026-09-13 |
10 |
|
| 7830 |
|
|
2026-09-13 |
9 |
|
| 7829 |
|
|
2026-09-13 |
9 |
|
| 7828 |
|
|
2026-09-12 |
11 |
|
| 7827 |
|
|
2026-09-12 |
11 |
|
| 7826 |
|
|
2026-09-12 |
11 |
|
| 7825 |
|
|
2026-09-11 |
10 |
|
| 7824 |
|
|
2026-09-11 |
11 |
|
|
|
|
|
|
|