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 7830 *, 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
|
 |
 |
 |
 |
 |
|
| 283 |
|
|
2026-01-16 |
10 |
|
| 282 |
|
|
2026-01-16 |
10 |
|
| 281 |
|
|
2026-01-16 |
9 |
|
| 280 |
|
|
2026-01-16 |
11 |
|
| 279 |
|
|
2026-01-16 |
11 |
|
| 278 |
|
|
2026-01-16 |
11 |
|
| 277 |
|
|
2026-01-16 |
11 |
|
| 276 |
|
|
2026-01-16 |
12 |
|
| 275 |
|
|
2026-01-15 |
11 |
|
| 274 |
|
|
2026-01-15 |
11 |
|
|
|
|
|
|
|