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 7550 *, 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
|
 |
 |
 |
 |
 |
|
| 563 |
|
|
2026-03-12 |
9 |
|
| 562 |
|
|
2026-03-12 |
9 |
|
| 561 |
|
|
2026-03-12 |
9 |
|
| 560 |
|
|
2026-03-12 |
10 |
|
| 559 |
|
|
2026-03-12 |
9 |
|
| 558 |
|
|
2026-03-12 |
9 |
|
| 557 |
|
|
2026-03-12 |
9 |
|
| 556 |
|
|
2026-03-11 |
10 |
|
| 555 |
|
|
2026-03-11 |
6 |
|
| 554 |
|
|
2026-03-11 |
6 |
|
|
|
|
|
|
|