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 5450 *, 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
|
 |
 |
 |
 |
 |
|
| 2665 |
|
|
2026-08-26 |
6 |
|
| 2664 |
|
|
2026-08-26 |
6 |
|
| 2663 |
|
|
2026-08-26 |
6 |
|
| 2662 |
|
|
2026-08-26 |
6 |
|
| 2661 |
|
|
2026-08-26 |
6 |
|
| 2660 |
|
|
2026-08-26 |
6 |
|
| 2659 |
|
|
2026-08-26 |
6 |
|
| 2658 |
|
|
2026-08-26 |
6 |
|
| 2657 |
|
|
2026-08-26 |
6 |
|
| 2656 |
|
|
2026-08-26 |
6 |
|
|
|
|
|
|
|