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 150 *, 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
|
 |
 |
 |
 |
 |
|
| 7963 |
|
|
2026-10-06 |
2 |
|
| 7962 |
|
|
2026-10-04 |
3 |
|
| 7961 |
|
|
2026-10-04 |
6 |
|
| 7960 |
|
|
2026-10-03 |
4 |
|
| 7959 |
|
|
2026-10-02 |
5 |
|
| 7958 |
|
|
2026-09-30 |
6 |
|
| 7957 |
|
|
2026-09-30 |
6 |
|
| 7956 |
|
|
2026-09-28 |
7 |
|
| 7955 |
|
|
2026-09-27 |
7 |
|
| 7954 |
|
|
2026-09-27 |
7 |
|
|
|
|
|
|
|