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 7130 *, 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
|
 |
 |
 |
 |
 |
|
| 983 |
|
|
2026-05-21 |
10 |
|
| 982 |
|
|
2026-05-21 |
10 |
|
| 981 |
|
|
2026-05-21 |
8 |
|
| 980 |
|
|
2026-05-21 |
9 |
|
| 979 |
|
|
2026-05-21 |
8 |
|
| 978 |
|
|
2026-05-21 |
8 |
|
| 977 |
|
|
2026-05-20 |
10 |
|
| 976 |
|
|
2026-05-20 |
8 |
|
| 975 |
|
|
2026-05-20 |
8 |
|
| 974 |
|
|
2026-05-20 |
9 |
|
|
|
|
|
|
|