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 8080 *, 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
|
 |
 |
 |
 |
 |
|
| 33 |
|
|
2025-11-20 |
12 |
|
| 32 |
|
|
2025-11-20 |
12 |
|
| 31 |
|
|
2025-04-17 |
29 |
|
| 30 |
|
|
2025-04-17 |
30 |
|
| 29 |
|
|
2025-04-15 |
31 |
|
| 28 |
|
|
2025-04-13 |
29 |
|
| 27 |
|
|
2025-04-10 |
29 |
|
| 26 |
|
|
2025-04-08 |
30 |
|
| 25 |
|
|
2025-04-05 |
23 |
|
| 24 |
|
|
2025-04-03 |
35 |
|
|
|
|
|
|
|