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 7800 *, 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
|
 |
 |
 |
 |
 |
|
| 313 |
|
|
2026-01-20 |
8 |
|
| 312 |
|
|
2026-01-20 |
8 |
|
| 311 |
|
|
2026-01-20 |
9 |
|
| 310 |
|
|
2026-01-20 |
9 |
|
| 309 |
|
|
2026-01-20 |
9 |
|
| 308 |
|
|
2026-01-20 |
9 |
|
| 307 |
|
|
2026-01-20 |
9 |
|
| 306 |
|
|
2026-01-19 |
10 |
|
| 305 |
|
|
2026-01-19 |
10 |
|
| 304 |
|
|
2026-01-19 |
9 |
|
|
|
|
|
|
|