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 240 *, 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
|
 |
 |
 |
 |
 |
|
| 7873 |
|
|
2026-09-15 |
9 |
|
| 7872 |
|
|
2026-09-15 |
9 |
|
| 7871 |
|
|
2026-09-15 |
9 |
|
| 7870 |
|
|
2026-09-15 |
8 |
|
| 7869 |
|
|
2026-09-14 |
8 |
|
| 7868 |
|
|
2026-09-14 |
8 |
|
| 7867 |
|
|
2026-09-14 |
7 |
|
| 7866 |
|
|
2026-09-14 |
8 |
|
| 7865 |
|
|
2026-09-14 |
7 |
|
| 7864 |
|
|
2026-09-14 |
7 |
|
|
|
|
|
|
|