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 7070 *, 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
|
 |
 |
 |
 |
 |
|
| 1043 |
|
|
2026-06-09 |
6 |
|
| 1042 |
|
|
2026-06-09 |
7 |
|
| 1041 |
|
|
2026-06-08 |
7 |
|
| 1040 |
|
|
2026-06-08 |
8 |
|
| 1039 |
|
|
2026-06-08 |
7 |
|
| 1038 |
|
|
2026-06-07 |
9 |
|
| 1037 |
|
|
2026-06-07 |
8 |
|
| 1036 |
|
|
2026-06-07 |
10 |
|
| 1035 |
|
|
2026-06-07 |
8 |
|
| 1034 |
|
|
2026-06-07 |
9 |
|
|
|
|
|
|
|