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 7180 *, 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
|
 |
 |
 |
 |
 |
|
| 933 |
|
|
2026-05-06 |
9 |
|
| 932 |
|
|
2026-05-06 |
6 |
|
| 931 |
|
|
2026-05-06 |
7 |
|
| 930 |
|
|
2026-05-06 |
7 |
|
| 929 |
|
|
2026-05-06 |
8 |
|
| 928 |
|
|
2026-05-06 |
9 |
|
| 927 |
|
|
2026-05-06 |
8 |
|
| 926 |
|
|
2026-05-06 |
7 |
|
| 925 |
|
|
2026-05-05 |
8 |
|
| 924 |
|
|
2026-05-05 |
11 |
|
|
|
|
|
|
|