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 180 *, 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
|
 |
 |
 |
 |
 |
|
| 7933 |
|
|
2026-09-23 |
4 |
|
| 7932 |
|
|
2026-09-23 |
2 |
|
| 7931 |
|
|
2026-09-23 |
3 |
|
| 7930 |
|
|
2026-09-23 |
3 |
|
| 7929 |
|
|
2026-09-22 |
3 |
|
| 7928 |
|
|
2026-09-21 |
3 |
|
| 7927 |
|
|
2026-09-21 |
5 |
|
| 7926 |
|
|
2026-09-21 |
4 |
|
| 7925 |
|
|
2026-09-21 |
4 |
|
| 7924 |
|
|
2026-09-19 |
8 |
|
|
|
|
|
|
|