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 440 *, 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
|
 |
 |
 |
 |
 |
|
| 7673 |
|
|
2026-08-28 |
9 |
|
| 7672 |
|
|
2026-08-28 |
11 |
|
| 7671 |
|
|
2026-08-28 |
10 |
|
| 7670 |
|
|
2026-08-28 |
11 |
|
| 7669 |
|
|
2026-08-28 |
11 |
|
| 7668 |
|
|
2026-08-28 |
10 |
|
| 7667 |
|
|
2026-08-28 |
9 |
|
| 7666 |
|
|
2026-08-28 |
9 |
|
| 7665 |
|
|
2026-08-28 |
8 |
|
| 7664 |
|
|
2026-08-28 |
7 |
|
|
|
|
|
|
|