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 6740 *, 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
|
 |
 |
 |
 |
 |
|
| 1373 |
|
|
2026-07-29 |
8 |
|
| 1372 |
|
|
2026-07-28 |
8 |
|
| 1371 |
|
|
2026-07-28 |
8 |
|
| 1370 |
|
|
2026-07-28 |
8 |
|
| 1369 |
|
|
2026-07-28 |
9 |
|
| 1368 |
|
|
2026-07-28 |
10 |
|
| 1367 |
|
|
2026-07-28 |
9 |
|
| 1366 |
|
|
2026-07-28 |
11 |
|
| 1365 |
|
|
2026-07-27 |
9 |
|
| 1364 |
|
|
2026-07-27 |
11 |
|
|
|
|
|
|
|