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 190 *, 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
|
 |
 |
 |
 |
 |
|
| 7923 |
|
|
2026-09-19 |
9 |
|
| 7922 |
|
|
2026-09-19 |
10 |
|
| 7921 |
|
|
2026-09-18 |
8 |
|
| 7920 |
|
|
2026-09-18 |
10 |
|
| 7919 |
|
|
2026-09-18 |
9 |
|
| 7918 |
|
|
2026-09-17 |
10 |
|
| 7917 |
|
|
2026-09-17 |
10 |
|
| 7916 |
|
|
2026-09-17 |
9 |
|
| 7915 |
|
|
2026-09-16 |
9 |
|
| 7914 |
|
|
2026-09-16 |
7 |
|
|
|
|
|
|
|