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 7110 *, 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
|
 |
 |
 |
 |
 |
|
| 1003 |
|
|
2026-05-25 |
9 |
|
| 1002 |
|
|
2026-05-25 |
8 |
|
| 1001 |
|
|
2026-05-25 |
6 |
|
| 1000 |
|
|
2026-05-25 |
8 |
|
| 999 |
|
|
2026-05-25 |
7 |
|
| 998 |
|
|
2026-05-25 |
7 |
|
| 997 |
|
|
2026-05-25 |
7 |
|
| 996 |
|
|
2026-05-24 |
7 |
|
| 995 |
|
|
2026-05-24 |
6 |
|
| 994 |
|
|
2026-05-24 |
7 |
|
|
|
|
|
|
|