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 140 *, 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
|
 |
 |
 |
 |
 |
|
| 7973 |
|
|
2026-10-08 |
3 |
|
| 7972 |
|
|
2026-10-08 |
3 |
|
| 7971 |
|
|
2026-10-08 |
3 |
|
| 7970 |
|
|
2026-10-08 |
3 |
|
| 7969 |
|
|
2026-10-08 |
3 |
|
| 7968 |
|
|
2026-10-08 |
3 |
|
| 7967 |
|
|
2026-10-08 |
4 |
|
| 7966 |
|
|
2026-10-08 |
3 |
|
| 7965 |
|
|
2026-10-08 |
3 |
|
| 7964 |
|
|
2026-10-07 |
3 |
|
|
|
|
|
|
|