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 7100 *, 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
|
 |
 |
 |
 |
 |
|
| 1013 |
|
|
2026-05-27 |
8 |
|
| 1012 |
|
|
2026-05-27 |
8 |
|
| 1011 |
|
|
2026-05-26 |
10 |
|
| 1010 |
|
|
2026-05-26 |
9 |
|
| 1009 |
|
|
2026-05-26 |
8 |
|
| 1008 |
|
|
2026-05-26 |
9 |
|
| 1007 |
|
|
2026-05-26 |
10 |
|
| 1006 |
|
|
2026-05-26 |
11 |
|
| 1005 |
|
|
2026-05-26 |
9 |
|
| 1004 |
|
|
2026-05-25 |
8 |
|
|
|
|
|
|
|