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 3100 *, 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
|
 |
 |
 |
 |
 |
|
| 5015 |
|
|
2026-08-27 |
4 |
|
| 5014 |
|
|
2026-08-27 |
4 |
|
| 5013 |
|
|
2026-08-27 |
4 |
|
| 5012 |
|
|
2026-08-27 |
4 |
|
| 5011 |
|
|
2026-08-27 |
4 |
|
| 5010 |
|
|
2026-08-27 |
4 |
|
| 5009 |
|
|
2026-08-27 |
4 |
|
| 5008 |
|
|
2026-08-27 |
4 |
|
| 5007 |
|
|
2026-08-27 |
4 |
|
| 5006 |
|
|
2026-08-27 |
4 |
|
|
|
|
|
|
|