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 350 *, 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
|
 |
 |
 |
 |
 |
|
| 7763 |
|
|
2026-09-01 |
12 |
|
| 7762 |
|
|
2026-09-01 |
11 |
|
| 7761 |
|
|
2026-09-01 |
12 |
|
| 7760 |
|
|
2026-09-01 |
10 |
|
| 7759 |
|
|
2026-09-01 |
10 |
|
| 7758 |
|
|
2026-09-01 |
10 |
|
| 7757 |
|
|
2026-09-01 |
13 |
|
| 7756 |
|
|
2026-09-01 |
12 |
|
| 7755 |
|
|
2026-09-01 |
11 |
|
| 7754 |
|
|
2026-09-01 |
10 |
|
|
|
|
|
|
|