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 290 *, 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
|
 |
 |
 |
 |
 |
|
| 7823 |
|
|
2026-09-11 |
9 |
|
| 7822 |
|
|
2026-09-10 |
14 |
|
| 7821 |
|
|
2026-09-10 |
10 |
|
| 7820 |
|
|
2026-09-09 |
10 |
|
| 7819 |
|
|
2026-09-09 |
12 |
|
| 7818 |
|
|
2026-09-08 |
11 |
|
| 7817 |
|
|
2026-09-06 |
12 |
|
| 7816 |
|
|
2026-09-06 |
14 |
|
| 7815 |
|
|
2026-09-04 |
12 |
|
| 7814 |
|
|
2026-09-04 |
16 |
|
|
|
|
|
|
|