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 6840 *, 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
|
 |
 |
 |
 |
 |
|
| 1273 |
|
|
2026-07-19 |
8 |
|
| 1272 |
|
|
2026-07-19 |
7 |
|
| 1271 |
|
|
2026-07-19 |
9 |
|
| 1270 |
|
|
2026-07-19 |
7 |
|
| 1269 |
|
|
2026-07-19 |
9 |
|
| 1268 |
|
|
2026-07-19 |
8 |
|
| 1267 |
|
|
2026-07-19 |
10 |
|
| 1266 |
|
|
2026-07-18 |
9 |
|
| 1265 |
|
|
2026-07-18 |
10 |
|
| 1264 |
|
|
2026-07-18 |
9 |
|
|
|
|
|
|
|