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 420 *, 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
|
 |
 |
 |
 |
 |
|
| 7693 |
|
|
2026-08-29 |
8 |
|
| 7692 |
|
|
2026-08-29 |
8 |
|
| 7691 |
|
|
2026-08-29 |
8 |
|
| 7690 |
|
|
2026-08-29 |
10 |
|
| 7689 |
|
|
2026-08-29 |
8 |
|
| 7688 |
|
|
2026-08-29 |
8 |
|
| 7687 |
|
|
2026-08-29 |
8 |
|
| 7686 |
|
|
2026-08-29 |
8 |
|
| 7685 |
|
|
2026-08-29 |
8 |
|
| 7684 |
|
|
2026-08-29 |
8 |
|
|
|
|
|
|
|