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 6810 *, 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
|
 |
 |
 |
 |
 |
|
| 1303 |
|
|
2026-07-21 |
9 |
|
| 1302 |
|
|
2026-07-21 |
10 |
|
| 1301 |
|
|
2026-07-21 |
9 |
|
| 1300 |
|
|
2026-07-20 |
10 |
|
| 1299 |
|
|
2026-07-20 |
10 |
|
| 1298 |
|
|
2026-07-20 |
7 |
|
| 1297 |
|
|
2026-07-20 |
6 |
|
| 1296 |
|
|
2026-07-20 |
6 |
|
| 1295 |
|
|
2026-07-20 |
8 |
|
| 1294 |
|
|
2026-07-20 |
7 |
|
|
|
|
|
|
|