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 7720 *, 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
|
 |
 |
 |
 |
 |
|
| 393 |
|
|
2026-02-06 |
10 |
|
| 392 |
|
|
2026-02-06 |
10 |
|
| 391 |
|
|
2026-02-06 |
10 |
|
| 390 |
|
|
2026-02-05 |
9 |
|
| 389 |
|
|
2026-02-05 |
9 |
|
| 388 |
|
|
2026-02-04 |
9 |
|
| 387 |
|
|
2026-02-04 |
11 |
|
| 386 |
|
|
2026-02-04 |
9 |
|
| 385 |
|
|
2026-02-04 |
9 |
|
| 384 |
|
|
2026-02-04 |
9 |
|
|
|
|
|
|
|