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 6830 *, 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
|
 |
 |
 |
 |
 |
|
| 1283 |
|
|
2026-07-19 |
9 |
|
| 1282 |
|
|
2026-07-19 |
9 |
|
| 1281 |
|
|
2026-07-19 |
9 |
|
| 1280 |
|
|
2026-07-19 |
10 |
|
| 1279 |
|
|
2026-07-19 |
8 |
|
| 1278 |
|
|
2026-07-19 |
10 |
|
| 1277 |
|
|
2026-07-19 |
9 |
|
| 1276 |
|
|
2026-07-19 |
9 |
|
| 1275 |
|
|
2026-07-19 |
9 |
|
| 1274 |
|
|
2026-07-19 |
9 |
|
|
|
|
|
|
|