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 7190 *, 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
|
 |
 |
 |
 |
 |
|
| 923 |
|
|
2026-05-05 |
9 |
|
| 922 |
|
|
2026-05-05 |
8 |
|
| 921 |
|
|
2026-05-05 |
9 |
|
| 920 |
|
|
2026-05-05 |
8 |
|
| 919 |
|
|
2026-04-26 |
8 |
|
| 918 |
|
|
2026-04-25 |
7 |
|
| 917 |
|
|
2026-04-25 |
8 |
|
| 916 |
|
|
2026-04-24 |
8 |
|
| 915 |
|
|
2026-04-22 |
7 |
|
| 914 |
|
|
2026-04-02 |
9 |
|
|
|
|
|
|
|