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 270 *, 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
|
 |
 |
 |
 |
 |
|
| 7843 |
|
|
2026-09-14 |
10 |
|
| 7842 |
|
|
2026-09-14 |
9 |
|
| 7841 |
|
|
2026-09-13 |
11 |
|
| 7840 |
|
|
2026-09-13 |
8 |
|
| 7839 |
|
|
2026-09-13 |
8 |
|
| 7838 |
|
|
2026-09-13 |
10 |
|
| 7837 |
|
|
2026-09-13 |
9 |
|
| 7836 |
|
|
2026-09-13 |
10 |
|
| 7835 |
|
|
2026-09-13 |
10 |
|
| 7834 |
|
|
2026-09-13 |
9 |
|
|
|
|
|
|
|