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 2260 *, 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
|
 |
 |
 |
 |
 |
|
| 5853 |
|
|
2026-08-27 |
3 |
|
| 5852 |
|
|
2026-08-27 |
3 |
|
| 5851 |
|
|
2026-08-27 |
3 |
|
| 5850 |
|
|
2026-08-27 |
3 |
|
| 5849 |
|
|
2026-08-27 |
4 |
|
| 5848 |
|
|
2026-08-27 |
3 |
|
| 5847 |
|
|
2026-08-27 |
3 |
|
| 5846 |
|
|
2026-08-27 |
3 |
|
| 5845 |
|
|
2026-08-27 |
3 |
|
| 5844 |
|
|
2026-08-27 |
3 |
|
|
|
|
|
|
|