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 7090 *, 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
|
 |
 |
 |
 |
 |
|
| 1023 |
|
|
2026-06-03 |
11 |
|
| 1022 |
|
|
2026-06-03 |
10 |
|
| 1021 |
|
|
2026-06-02 |
10 |
|
| 1020 |
|
|
2026-06-02 |
9 |
|
| 1019 |
|
|
2026-06-01 |
9 |
|
| 1018 |
|
|
2026-05-31 |
9 |
|
| 1017 |
|
|
2026-05-28 |
9 |
|
| 1016 |
|
|
2026-05-28 |
8 |
|
| 1015 |
|
|
2026-05-27 |
9 |
|
| 1014 |
|
|
2026-05-27 |
9 |
|
|
|
|
|
|
|