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 950 *, 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
|
 |
 |
 |
 |
 |
|
| 7163 |
|
|
2026-08-27 |
7 |
|
| 7162 |
|
|
2026-08-27 |
7 |
|
| 7161 |
|
|
2026-08-27 |
7 |
|
| 7160 |
|
|
2026-08-27 |
8 |
|
| 7159 |
|
|
2026-08-27 |
8 |
|
| 7158 |
|
|
2026-08-27 |
8 |
|
| 7157 |
|
|
2026-08-27 |
8 |
|
| 7156 |
|
|
2026-08-27 |
8 |
|
| 7155 |
|
|
2026-08-27 |
8 |
|
| 7154 |
|
|
2026-08-27 |
8 |
|
|
|
|
|
|
|