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 7610 *, 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
|
 |
 |
 |
 |
 |
|
| 503 |
|
|
2026-03-11 |
8 |
|
| 502 |
|
|
2026-03-11 |
8 |
|
| 501 |
|
|
2026-03-11 |
9 |
|
| 500 |
|
|
2026-03-11 |
9 |
|
| 499 |
|
|
2026-03-11 |
8 |
|
| 498 |
|
|
2026-03-11 |
8 |
|
| 497 |
|
|
2026-03-11 |
9 |
|
| 496 |
|
|
2026-03-11 |
10 |
|
| 495 |
|
|
2026-03-11 |
8 |
|
| 494 |
|
|
2026-03-11 |
8 |
|
|
|
|
|
|
|