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 6510 *, 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
|
 |
 |
 |
 |
 |
|
| 1603 |
|
|
2026-08-26 |
6 |
|
| 1602 |
|
|
2026-08-26 |
6 |
|
| 1601 |
|
|
2026-08-26 |
6 |
|
| 1600 |
|
|
2026-08-26 |
6 |
|
| 1599 |
|
|
2026-08-26 |
8 |
|
| 1598 |
|
|
2026-08-26 |
8 |
|
| 1597 |
|
|
2026-08-26 |
8 |
|
| 1596 |
|
|
2026-08-25 |
8 |
|
| 1595 |
|
|
2026-08-25 |
8 |
|
| 1594 |
|
|
2026-08-25 |
8 |
|
|
|
|
|
|
|