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 40 *, 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
|
 |
 |
 |
 |
 |
|
| 8073 |
|
|
2026-11-20 |
3 |
|
| 8072 |
|
|
2026-11-20 |
2 |
|
| 8071 |
|
|
2026-11-20 |
2 |
|
| 8070 |
|
|
2026-11-20 |
1 |
|
| 8069 |
|
|
2026-11-19 |
1 |
|
| 8068 |
|
|
2026-11-18 |
3 |
|
| 8067 |
|
|
2026-11-17 |
2 |
|
| 8066 |
|
|
2026-11-17 |
2 |
|
| 8065 |
|
|
2026-11-16 |
2 |
|
| 8064 |
|
|
2026-11-15 |
2 |
|
|
|
|
|
|
|