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 8030 *, 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
|
 |
 |
 |
 |
 |
|
| 83 |
|
|
2025-12-08 |
9 |
|
| 82 |
|
|
2025-12-07 |
10 |
|
| 81 |
|
|
2025-12-07 |
10 |
|
| 80 |
|
|
2025-12-07 |
10 |
|
| 79 |
|
|
2025-12-07 |
10 |
|
| 78 |
|
|
2025-12-07 |
10 |
|
| 77 |
|
|
2025-12-05 |
10 |
|
| 76 |
|
|
2025-12-05 |
12 |
|
| 75 |
|
|
2025-12-05 |
12 |
|
| 74 |
|
|
2025-12-05 |
12 |
|
|
|
|
|
|
|