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 100 *, 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
|
 |
 |
 |
 |
 |
|
| 8013 |
|
|
2026-10-21 |
2 |
|
| 8012 |
|
|
2026-10-21 |
2 |
|
| 8011 |
|
|
2026-10-21 |
3 |
|
| 8010 |
|
|
2026-10-20 |
3 |
|
| 8009 |
|
|
2026-10-20 |
2 |
|
| 8008 |
|
|
2026-10-20 |
2 |
|
| 8007 |
|
|
2026-10-20 |
2 |
|
| 8006 |
|
|
2026-10-20 |
2 |
|
| 8005 |
|
|
2026-10-19 |
2 |
|
| 8004 |
|
|
2026-10-19 |
3 |
|
|
|
|
|
|
|