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 6980 *, 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
|
 |
 |
 |
 |
 |
|
| 1133 |
|
|
2026-07-03 |
10 |
|
| 1132 |
|
|
2026-07-03 |
10 |
|
| 1131 |
|
|
2026-07-03 |
10 |
|
| 1130 |
|
|
2026-07-03 |
9 |
|
| 1129 |
|
|
2026-07-03 |
9 |
|
| 1128 |
|
|
2026-07-03 |
10 |
|
| 1127 |
|
|
2026-07-03 |
10 |
|
| 1126 |
|
|
2026-07-03 |
9 |
|
| 1125 |
|
|
2026-07-03 |
9 |
|
| 1124 |
|
|
2026-07-03 |
9 |
|
|
|
|
|
|
|