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 3680 *, 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
|
 |
 |
 |
 |
 |
|
| 4435 |
|
|
2026-08-26 |
4 |
|
| 4434 |
|
|
2026-08-26 |
4 |
|
| 4433 |
|
|
2026-08-26 |
4 |
|
| 4432 |
|
|
2026-08-26 |
4 |
|
| 4431 |
|
|
2026-08-26 |
4 |
|
| 4430 |
|
|
2026-08-26 |
4 |
|
| 4429 |
|
|
2026-08-26 |
4 |
|
| 4428 |
|
|
2026-08-26 |
4 |
|
| 4427 |
|
|
2026-08-26 |
4 |
|
| 4426 |
|
|
2026-08-26 |
4 |
|
|
|
|
|
|
|