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 6730 *, 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
|
 |
 |
 |
 |
 |
|
| 1383 |
|
|
2026-07-31 |
9 |
|
| 1382 |
|
|
2026-07-31 |
10 |
|
| 1381 |
|
|
2026-07-30 |
10 |
|
| 1380 |
|
|
2026-07-30 |
10 |
|
| 1379 |
|
|
2026-07-30 |
10 |
|
| 1378 |
|
|
2026-07-29 |
9 |
|
| 1377 |
|
|
2026-07-29 |
9 |
|
| 1376 |
|
|
2026-07-29 |
10 |
|
| 1375 |
|
|
2026-07-29 |
10 |
|
| 1374 |
|
|
2026-07-29 |
8 |
|
|
|
|
|
|
|