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 220 *, 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
|
 |
 |
 |
 |
 |
|
| 7893 |
|
|
2026-09-15 |
10 |
|
| 7892 |
|
|
2026-09-15 |
9 |
|
| 7891 |
|
|
2026-09-15 |
8 |
|
| 7890 |
|
|
2026-09-15 |
8 |
|
| 7889 |
|
|
2026-09-15 |
7 |
|
| 7888 |
|
|
2026-09-15 |
10 |
|
| 7887 |
|
|
2026-09-15 |
9 |
|
| 7886 |
|
|
2026-09-15 |
8 |
|
| 7885 |
|
|
2026-09-15 |
9 |
|
| 7884 |
|
|
2026-09-15 |
9 |
|
|
|
|
|
|
|