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 6770 *, 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
|
 |
 |
 |
 |
 |
|
| 1343 |
|
|
2026-07-24 |
9 |
|
| 1342 |
|
|
2026-07-24 |
8 |
|
| 1341 |
|
|
2026-07-23 |
8 |
|
| 1340 |
|
|
2026-07-23 |
10 |
|
| 1339 |
|
|
2026-07-23 |
11 |
|
| 1338 |
|
|
2026-07-23 |
9 |
|
| 1337 |
|
|
2026-07-23 |
11 |
|
| 1336 |
|
|
2026-07-23 |
9 |
|
| 1335 |
|
|
2026-07-23 |
9 |
|
| 1334 |
|
|
2026-07-23 |
8 |
|
|
|
|
|
|
|