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 80 *, 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
|
 |
 |
 |
 |
 |
|
| 8033 |
|
|
2026-10-26 |
2 |
|
| 8032 |
|
|
2026-10-26 |
2 |
|
| 8031 |
|
|
2026-10-26 |
2 |
|
| 8030 |
|
|
2026-10-26 |
2 |
|
| 8029 |
|
|
2026-10-25 |
2 |
|
| 8028 |
|
|
2026-10-24 |
2 |
|
| 8027 |
|
|
2026-10-24 |
2 |
|
| 8026 |
|
|
2026-10-24 |
2 |
|
| 8025 |
|
|
2026-10-23 |
2 |
|
| 8024 |
|
|
2026-10-23 |
3 |
|
|
|
|
|
|
|