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 4310 *, 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
|
 |
 |
 |
 |
 |
|
| 3805 |
|
|
2026-08-26 |
4 |
|
| 3804 |
|
|
2026-08-26 |
5 |
|
| 3803 |
|
|
2026-08-26 |
4 |
|
| 3802 |
|
|
2026-08-26 |
4 |
|
| 3801 |
|
|
2026-08-26 |
4 |
|
| 3800 |
|
|
2026-08-26 |
4 |
|
| 3799 |
|
|
2026-08-26 |
4 |
|
| 3798 |
|
|
2026-08-26 |
4 |
|
| 3797 |
|
|
2026-08-26 |
4 |
|
| 3796 |
|
|
2026-08-26 |
4 |
|
|
|
|
|
|
|