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 1950 *, 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
|
 |
 |
 |
 |
 |
|
| 6163 |
|
|
2026-08-27 |
4 |
|
| 6162 |
|
|
2026-08-27 |
4 |
|
| 6161 |
|
|
2026-08-27 |
4 |
|
| 6160 |
|
|
2026-08-27 |
4 |
|
| 6159 |
|
|
2026-08-27 |
4 |
|
| 6158 |
|
|
2026-08-27 |
4 |
|
| 6157 |
|
|
2026-08-27 |
4 |
|
| 6156 |
|
|
2026-08-27 |
4 |
|
| 6155 |
|
|
2026-08-27 |
4 |
|
| 6154 |
|
|
2026-08-27 |
4 |
|
|
|
|
|
|
|