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 6750 *, 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
|
 |
 |
 |
 |
 |
|
| 1363 |
|
|
2026-07-27 |
9 |
|
| 1362 |
|
|
2026-07-27 |
9 |
|
| 1361 |
|
|
2026-07-27 |
11 |
|
| 1360 |
|
|
2026-07-27 |
9 |
|
| 1359 |
|
|
2026-07-26 |
10 |
|
| 1358 |
|
|
2026-07-25 |
9 |
|
| 1357 |
|
|
2026-07-25 |
9 |
|
| 1356 |
|
|
2026-07-25 |
6 |
|
| 1355 |
|
|
2026-07-25 |
7 |
|
| 1354 |
|
|
2026-07-25 |
8 |
|
|
|
|
|
|
|