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 7140 *, 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
|
 |
 |
 |
 |
 |
|
| 973 |
|
|
2026-05-19 |
8 |
|
| 972 |
|
|
2026-05-19 |
8 |
|
| 971 |
|
|
2026-05-18 |
8 |
|
| 970 |
|
|
2026-05-15 |
9 |
|
| 969 |
|
|
2026-05-13 |
8 |
|
| 968 |
|
|
2026-05-12 |
10 |
|
| 967 |
|
|
2026-05-12 |
8 |
|
| 966 |
|
|
2026-05-12 |
7 |
|
| 965 |
|
|
2026-05-12 |
6 |
|
| 964 |
|
|
2026-05-12 |
6 |
|
|
|
|
|
|
|