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 6690 *, 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
|
 |
 |
 |
 |
 |
|
| 1423 |
|
|
2026-08-06 |
8 |
|
| 1422 |
|
|
2026-08-06 |
8 |
|
| 1421 |
|
|
2026-08-06 |
7 |
|
| 1420 |
|
|
2026-08-05 |
8 |
|
| 1419 |
|
|
2026-08-05 |
8 |
|
| 1418 |
|
|
2026-08-05 |
7 |
|
| 1417 |
|
|
2026-08-02 |
8 |
|
| 1416 |
|
|
2026-08-02 |
8 |
|
| 1415 |
|
|
2026-08-02 |
8 |
|
| 1414 |
|
|
2026-08-02 |
9 |
|
|
|
|
|
|
|