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 300 *, 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
|
 |
 |
 |
 |
 |
|
| 7813 |
|
|
2026-09-04 |
11 |
|
| 7812 |
|
|
2026-09-04 |
13 |
|
| 7811 |
|
|
2026-09-03 |
11 |
|
| 7810 |
|
|
2026-09-02 |
10 |
|
| 7809 |
|
|
2026-09-02 |
10 |
|
| 7808 |
|
|
2026-09-02 |
11 |
|
| 7807 |
|
|
2026-09-02 |
11 |
|
| 7806 |
|
|
2026-09-02 |
10 |
|
| 7805 |
|
|
2026-09-02 |
10 |
|
| 7804 |
|
|
2026-09-02 |
10 |
|
|
|
|
|
|
|