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 8000 *, 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
|
 |
 |
 |
 |
 |
|
| 113 |
|
|
2025-12-16 |
11 |
|
| 112 |
|
|
2025-12-16 |
12 |
|
| 111 |
|
|
2025-12-16 |
11 |
|
| 110 |
|
|
2025-12-16 |
10 |
|
| 109 |
|
|
2025-12-16 |
10 |
|
| 108 |
|
|
2025-12-16 |
11 |
|
| 107 |
|
|
2025-12-16 |
12 |
|
| 106 |
|
|
2025-12-16 |
11 |
|
| 105 |
|
|
2025-12-15 |
10 |
|
| 104 |
|
|
2025-12-15 |
10 |
|
|
|
|
|
|
|