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 7770 *, 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
|
 |
 |
 |
 |
 |
|
| 343 |
|
|
2026-01-29 |
5 |
|
| 342 |
|
|
2026-01-29 |
6 |
|
| 341 |
|
|
2026-01-29 |
4 |
|
| 340 |
|
|
2026-01-29 |
7 |
|
| 339 |
|
|
2026-01-29 |
7 |
|
| 338 |
|
|
2026-01-29 |
6 |
|
| 337 |
|
|
2026-01-29 |
6 |
|
| 336 |
|
|
2026-01-29 |
7 |
|
| 335 |
|
|
2026-01-29 |
6 |
|
| 334 |
|
|
2026-01-29 |
6 |
|
|
|
|
|
|
|