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 7670 *, 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
|
 |
 |
 |
 |
 |
|
| 443 |
|
|
2026-02-13 |
8 |
|
| 442 |
|
|
2026-02-13 |
9 |
|
| 441 |
|
|
2026-02-13 |
8 |
|
| 440 |
|
|
2026-02-13 |
10 |
|
| 439 |
|
|
2026-02-13 |
8 |
|
| 438 |
|
|
2026-02-13 |
8 |
|
| 437 |
|
|
2026-02-13 |
8 |
|
| 436 |
|
|
2026-02-13 |
8 |
|
| 435 |
|
|
2026-02-12 |
8 |
|
| 434 |
|
|
2026-02-11 |
8 |
|
|
|
|
|
|
|