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 6670 *, 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
|
 |
 |
 |
 |
 |
|
| 1443 |
|
|
2026-08-07 |
7 |
|
| 1442 |
|
|
2026-08-07 |
9 |
|
| 1441 |
|
|
2026-08-07 |
8 |
|
| 1440 |
|
|
2026-08-06 |
7 |
|
| 1439 |
|
|
2026-08-06 |
7 |
|
| 1438 |
|
|
2026-08-06 |
6 |
|
| 1437 |
|
|
2026-08-06 |
7 |
|
| 1436 |
|
|
2026-08-06 |
8 |
|
| 1435 |
|
|
2026-08-06 |
7 |
|
| 1434 |
|
|
2026-08-06 |
7 |
|
|
|
|
|
|
|