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 7750 *, 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
|
 |
 |
 |
 |
 |
|
| 363 |
|
|
2026-02-01 |
7 |
|
| 362 |
|
|
2026-02-01 |
8 |
|
| 361 |
|
|
2026-02-01 |
9 |
|
| 360 |
|
|
2026-02-01 |
9 |
|
| 359 |
|
|
2026-02-01 |
10 |
|
| 358 |
|
|
2026-02-01 |
10 |
|
| 357 |
|
|
2026-01-31 |
10 |
|
| 356 |
|
|
2026-01-31 |
8 |
|
| 355 |
|
|
2026-01-31 |
8 |
|
| 354 |
|
|
2026-01-31 |
8 |
|
|
|
|
|
|
|