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 7730 *, 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
|
 |
 |
 |
 |
 |
|
| 383 |
|
|
2026-02-04 |
9 |
|
| 382 |
|
|
2026-02-04 |
9 |
|
| 381 |
|
|
2026-02-04 |
10 |
|
| 380 |
|
|
2026-02-04 |
8 |
|
| 379 |
|
|
2026-02-04 |
8 |
|
| 378 |
|
|
2026-02-04 |
10 |
|
| 377 |
|
|
2026-02-04 |
9 |
|
| 376 |
|
|
2026-02-04 |
9 |
|
| 375 |
|
|
2026-02-04 |
10 |
|
| 374 |
|
|
2026-02-03 |
9 |
|
|
|
|
|
|
|