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 7120 *, 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
|
 |
 |
 |
 |
 |
|
| 993 |
|
|
2026-05-23 |
7 |
|
| 992 |
|
|
2026-05-23 |
7 |
|
| 991 |
|
|
2026-05-23 |
7 |
|
| 990 |
|
|
2026-05-22 |
7 |
|
| 989 |
|
|
2026-05-22 |
7 |
|
| 988 |
|
|
2026-05-22 |
7 |
|
| 987 |
|
|
2026-05-22 |
10 |
|
| 986 |
|
|
2026-05-22 |
10 |
|
| 985 |
|
|
2026-05-22 |
10 |
|
| 984 |
|
|
2026-05-21 |
8 |
|
|
|
|
|
|
|