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 6460 *, 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
|
 |
 |
 |
 |
 |
|
| 1653 |
|
|
2026-08-26 |
8 |
|
| 1652 |
|
|
2026-08-26 |
8 |
|
| 1651 |
|
|
2026-08-26 |
10 |
|
| 1650 |
|
|
2026-08-26 |
8 |
|
| 1649 |
|
|
2026-08-26 |
8 |
|
| 1648 |
|
|
2026-08-26 |
8 |
|
| 1647 |
|
|
2026-08-26 |
8 |
|
| 1646 |
|
|
2026-08-26 |
9 |
|
| 1645 |
|
|
2026-08-26 |
8 |
|
| 1644 |
|
|
2026-08-26 |
8 |
|
|
|
|
|
|
|