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 110 *, 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
|
 |
 |
 |
 |
 |
|
| 8003 |
|
|
2026-10-18 |
4 |
|
| 8002 |
|
|
2026-10-18 |
4 |
|
| 8001 |
|
|
2026-10-18 |
6 |
|
| 8000 |
|
|
2026-10-17 |
5 |
|
| 7999 |
|
|
2026-10-16 |
7 |
|
| 7998 |
|
|
2026-10-13 |
7 |
|
| 7997 |
|
|
2026-10-13 |
7 |
|
| 7996 |
|
|
2026-10-11 |
7 |
|
| 7995 |
|
|
2026-10-11 |
7 |
|
| 7994 |
|
|
2026-10-10 |
7 |
|
|
|
|
|
|
|