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 7940 *, 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
|
 |
 |
 |
 |
 |
|
| 173 |
|
|
2025-12-28 |
13 |
|
| 172 |
|
|
2025-12-28 |
16 |
|
| 171 |
|
|
2025-12-28 |
13 |
|
| 170 |
|
|
2025-12-27 |
13 |
|
| 169 |
|
|
2025-12-27 |
15 |
|
| 168 |
|
|
2025-12-27 |
15 |
|
| 167 |
|
|
2025-12-27 |
12 |
|
| 166 |
|
|
2025-12-27 |
11 |
|
| 165 |
|
|
2025-12-27 |
11 |
|
| 164 |
|
|
2025-12-26 |
9 |
|
|
|
|
|
|
|