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 7810 *, 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
|
 |
 |
 |
 |
 |
|
| 303 |
|
|
2026-01-18 |
11 |
|
| 302 |
|
|
2026-01-18 |
11 |
|
| 301 |
|
|
2026-01-18 |
11 |
|
| 300 |
|
|
2026-01-18 |
12 |
|
| 299 |
|
|
2026-01-18 |
11 |
|
| 298 |
|
|
2026-01-18 |
10 |
|
| 297 |
|
|
2026-01-18 |
10 |
|
| 296 |
|
|
2026-01-18 |
10 |
|
| 295 |
|
|
2026-01-18 |
10 |
|
| 294 |
|
|
2026-01-18 |
10 |
|
|
|
|
|
|
|