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 4370 *, 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
|
 |
 |
 |
 |
 |
|
| 3745 |
|
|
2026-08-26 |
4 |
|
| 3744 |
|
|
2026-08-26 |
4 |
|
| 3743 |
|
|
2026-08-26 |
4 |
|
| 3742 |
|
|
2026-08-26 |
4 |
|
| 3741 |
|
|
2026-08-26 |
4 |
|
| 3740 |
|
|
2026-08-26 |
4 |
|
| 3739 |
|
|
2026-08-26 |
4 |
|
| 3738 |
|
|
2026-08-26 |
4 |
|
| 3737 |
|
|
2026-08-26 |
4 |
|
| 3736 |
|
|
2026-08-26 |
4 |
|
|
|
|
|
|
|