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 70 *, 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
|
 |
 |
 |
 |
 |
|
| 8043 |
|
|
2026-11-05 |
1 |
|
| 8042 |
|
|
2026-11-04 |
2 |
|
| 8041 |
|
|
2026-10-30 |
1 |
|
| 8040 |
|
|
2026-10-30 |
4 |
|
| 8039 |
|
|
2026-10-30 |
3 |
|
| 8038 |
|
|
2026-10-30 |
1 |
|
| 8037 |
|
|
2026-10-28 |
3 |
|
| 8036 |
|
|
2026-10-27 |
2 |
|
| 8035 |
|
|
2026-10-27 |
2 |
|
| 8034 |
|
|
2026-10-27 |
2 |
|
|
|
|
|
|
|