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 230 *, 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
|
 |
 |
 |
 |
 |
|
| 7883 |
|
|
2026-09-15 |
6 |
|
| 7882 |
|
|
2026-09-15 |
7 |
|
| 7881 |
|
|
2026-09-15 |
6 |
|
| 7880 |
|
|
2026-09-15 |
7 |
|
| 7879 |
|
|
2026-09-15 |
8 |
|
| 7878 |
|
|
2026-09-15 |
6 |
|
| 7877 |
|
|
2026-09-15 |
6 |
|
| 7876 |
|
|
2026-09-15 |
8 |
|
| 7875 |
|
|
2026-09-15 |
8 |
|
| 7874 |
|
|
2026-09-15 |
9 |
|
|
|
|
|
|
|