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 7150 *, 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
|
 |
 |
 |
 |
 |
|
| 963 |
|
|
2026-05-12 |
7 |
|
| 962 |
|
|
2026-05-12 |
6 |
|
| 961 |
|
|
2026-05-12 |
9 |
|
| 960 |
|
|
2026-05-11 |
8 |
|
| 959 |
|
|
2026-05-11 |
6 |
|
| 958 |
|
|
2026-05-11 |
10 |
|
| 957 |
|
|
2026-05-11 |
11 |
|
| 956 |
|
|
2026-05-10 |
10 |
|
| 955 |
|
|
2026-05-09 |
8 |
|
| 954 |
|
|
2026-05-09 |
9 |
|
|
|
|
|
|
|