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 5070 *, 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
|
 |
 |
 |
 |
 |
|
| 3045 |
|
|
2026-08-26 |
6 |
|
| 3044 |
|
|
2026-08-26 |
6 |
|
| 3043 |
|
|
2026-08-26 |
6 |
|
| 3042 |
|
|
2026-08-26 |
6 |
|
| 3041 |
|
|
2026-08-26 |
6 |
|
| 3040 |
|
|
2026-08-26 |
6 |
|
| 3039 |
|
|
2026-08-26 |
6 |
|
| 3038 |
|
|
2026-08-26 |
6 |
|
| 3037 |
|
|
2026-08-26 |
6 |
|
| 3036 |
|
|
2026-08-26 |
6 |
|
|
|
|
|
|
|