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 7990 *, 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
|
 |
 |
 |
 |
 |
|
| 123 |
|
|
2025-12-18 |
9 |
|
| 122 |
|
|
2025-12-18 |
10 |
|
| 121 |
|
|
2025-12-17 |
10 |
|
| 120 |
|
|
2025-12-16 |
11 |
|
| 119 |
|
|
2025-12-16 |
11 |
|
| 118 |
|
|
2025-12-16 |
9 |
|
| 117 |
|
|
2025-12-16 |
9 |
|
| 116 |
|
|
2025-12-16 |
9 |
|
| 115 |
|
|
2025-12-16 |
10 |
|
| 114 |
|
|
2025-12-16 |
10 |
|
|
|
|
|
|
|