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 6960 *, 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
|
 |
 |
 |
 |
 |
|
| 1153 |
|
|
2026-07-09 |
8 |
|
| 1152 |
|
|
2026-07-09 |
7 |
|
| 1151 |
|
|
2026-07-09 |
8 |
|
| 1150 |
|
|
2026-07-08 |
8 |
|
| 1149 |
|
|
2026-07-06 |
8 |
|
| 1148 |
|
|
2026-07-05 |
8 |
|
| 1147 |
|
|
2026-07-05 |
8 |
|
| 1146 |
|
|
2026-07-05 |
8 |
|
| 1145 |
|
|
2026-07-05 |
8 |
|
| 1144 |
|
|
2026-07-05 |
7 |
|
|
|
|
|
|
|