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 7040 *, 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
|
 |
 |
 |
 |
 |
|
| 1073 |
|
|
2026-06-30 |
7 |
|
| 1072 |
|
|
2026-06-29 |
7 |
|
| 1071 |
|
|
2026-06-26 |
6 |
|
| 1070 |
|
|
2026-06-26 |
7 |
|
| 1069 |
|
|
2026-06-25 |
6 |
|
| 1068 |
|
|
2026-06-25 |
8 |
|
| 1067 |
|
|
2026-06-25 |
7 |
|
| 1066 |
|
|
2026-06-24 |
7 |
|
| 1065 |
|
|
2026-06-22 |
8 |
|
| 1064 |
|
|
2026-06-20 |
7 |
|
|
|
|
|
|
|