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 6140 *, 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
|
 |
 |
 |
 |
 |
|
| 1973 |
|
|
2026-08-26 |
5 |
|
| 1972 |
|
|
2026-08-26 |
8 |
|
| 1971 |
|
|
2026-08-26 |
6 |
|
| 1970 |
|
|
2026-08-26 |
6 |
|
| 1969 |
|
|
2026-08-26 |
6 |
|
| 1968 |
|
|
2026-08-26 |
6 |
|
| 1967 |
|
|
2026-08-26 |
6 |
|
| 1966 |
|
|
2026-08-26 |
6 |
|
| 1965 |
|
|
2026-08-26 |
6 |
|
| 1964 |
|
|
2026-08-26 |
5 |
|
|
|
|
|
|
|