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 370 *, 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
|
 |
 |
 |
 |
 |
|
| 7743 |
|
|
2026-09-01 |
9 |
|
| 7742 |
|
|
2026-09-01 |
9 |
|
| 7741 |
|
|
2026-09-01 |
8 |
|
| 7740 |
|
|
2026-09-01 |
9 |
|
| 7739 |
|
|
2026-09-01 |
16 |
|
| 7738 |
|
|
2026-09-01 |
10 |
|
| 7737 |
|
|
2026-09-01 |
9 |
|
| 7736 |
|
|
2026-09-01 |
9 |
|
| 7735 |
|
|
2026-09-01 |
9 |
|
| 7734 |
|
|
2026-09-01 |
9 |
|
|
|
|
|
|
|