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 8010 *, 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
|
 |
 |
 |
 |
 |
|
| 103 |
|
|
2025-12-13 |
9 |
|
| 102 |
|
|
2025-12-13 |
10 |
|
| 101 |
|
|
2025-12-13 |
11 |
|
| 100 |
|
|
2025-12-13 |
10 |
|
| 99 |
|
|
2025-12-13 |
9 |
|
| 98 |
|
|
2025-12-12 |
11 |
|
| 97 |
|
|
2025-12-12 |
10 |
|
| 96 |
|
|
2025-12-12 |
12 |
|
| 95 |
|
|
2025-12-12 |
10 |
|
| 94 |
|
|
2025-12-10 |
12 |
|
|
|
|
|
|
|