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 250 *, 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
|
 |
 |
 |
 |
 |
|
| 7863 |
|
|
2026-09-14 |
8 |
|
| 7862 |
|
|
2026-09-14 |
8 |
|
| 7861 |
|
|
2026-09-14 |
7 |
|
| 7860 |
|
|
2026-09-14 |
8 |
|
| 7859 |
|
|
2026-09-14 |
8 |
|
| 7858 |
|
|
2026-09-14 |
10 |
|
| 7857 |
|
|
2026-09-14 |
11 |
|
| 7856 |
|
|
2026-09-14 |
12 |
|
| 7855 |
|
|
2026-09-14 |
11 |
|
| 7854 |
|
|
2026-09-14 |
11 |
|
|
|
|
|
|
|