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 7890 *, 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
|
 |
 |
 |
 |
 |
|
| 223 |
|
|
2026-01-06 |
10 |
|
| 222 |
|
|
2026-01-06 |
9 |
|
| 221 |
|
|
2026-01-06 |
9 |
|
| 220 |
|
|
2026-01-06 |
10 |
|
| 219 |
|
|
2026-01-06 |
8 |
|
| 218 |
|
|
2026-01-06 |
8 |
|
| 217 |
|
|
2026-01-06 |
11 |
|
| 216 |
|
|
2026-01-06 |
9 |
|
| 215 |
|
|
2026-01-05 |
7 |
|
| 214 |
|
|
2026-01-05 |
10 |
|
|
|
|
|
|
|