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 7950 *, 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
|
 |
 |
 |
 |
 |
|
| 163 |
|
|
2025-12-26 |
9 |
|
| 162 |
|
|
2025-12-26 |
9 |
|
| 161 |
|
|
2025-12-26 |
10 |
|
| 160 |
|
|
2025-12-26 |
10 |
|
| 159 |
|
|
2025-12-26 |
10 |
|
| 158 |
|
|
2025-12-25 |
10 |
|
| 157 |
|
|
2025-12-25 |
10 |
|
| 156 |
|
|
2025-12-25 |
10 |
|
| 155 |
|
|
2025-12-25 |
10 |
|
| 154 |
|
|
2025-12-25 |
10 |
|
|
|
|
|
|
|