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 7960 *, 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
|
 |
 |
 |
 |
 |
|
| 153 |
|
|
2025-12-25 |
10 |
|
| 152 |
|
|
2025-12-24 |
11 |
|
| 151 |
|
|
2025-12-24 |
9 |
|
| 150 |
|
|
2025-12-24 |
10 |
|
| 149 |
|
|
2025-12-24 |
10 |
|
| 148 |
|
|
2025-12-24 |
11 |
|
| 147 |
|
|
2025-12-24 |
11 |
|
| 146 |
|
|
2025-12-23 |
11 |
|
| 145 |
|
|
2025-12-23 |
11 |
|
| 144 |
|
|
2025-12-23 |
11 |
|
|
|
|
|
|
|