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 7910 *, 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
|
 |
 |
 |
 |
 |
|
| 203 |
|
|
2026-01-03 |
12 |
|
| 202 |
|
|
2026-01-03 |
10 |
|
| 201 |
|
|
2026-01-02 |
10 |
|
| 200 |
|
|
2026-01-02 |
11 |
|
| 199 |
|
|
2026-01-02 |
11 |
|
| 198 |
|
|
2026-01-02 |
12 |
|
| 197 |
|
|
2026-01-02 |
13 |
|
| 196 |
|
|
2026-01-01 |
12 |
|
| 195 |
|
|
2026-01-01 |
11 |
|
| 194 |
|
|
2026-01-01 |
12 |
|
|
|
|
|
|
|