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 7930 *, 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
|
 |
 |
 |
 |
 |
|
| 183 |
|
|
2025-12-30 |
11 |
|
| 182 |
|
|
2025-12-30 |
12 |
|
| 181 |
|
|
2025-12-30 |
11 |
|
| 180 |
|
|
2025-12-30 |
12 |
|
| 179 |
|
|
2025-12-30 |
11 |
|
| 178 |
|
|
2025-12-30 |
11 |
|
| 177 |
|
|
2025-12-29 |
11 |
|
| 176 |
|
|
2025-12-29 |
13 |
|
| 175 |
|
|
2025-12-29 |
14 |
|
| 174 |
|
|
2025-12-28 |
13 |
|
|
|
|
|
|
|