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 2420 *, 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
|
 |
 |
 |
 |
 |
|
| 5694 |
|
|
2026-08-27 |
5 |
|
| 5693 |
|
|
2026-08-27 |
4 |
|
| 5692 |
|
|
2026-08-27 |
4 |
|
| 5691 |
|
|
2026-08-27 |
4 |
|
| 5690 |
|
|
2026-08-27 |
4 |
|
| 5689 |
|
|
2026-08-27 |
4 |
|
| 5688 |
|
|
2026-08-27 |
4 |
|
| 5687 |
|
|
2026-08-27 |
4 |
|
| 5686 |
|
|
2026-08-27 |
5 |
|
| 5685 |
|
|
2026-08-27 |
4 |
|
|
|
|
|
|
|