我有 2 张桌子
1)表位置
pos_id, pos_description, pos_total(maximum # of employees for that position)
1 c++ Developer 3
2 Java Developer 2
3 DBA 3
2)表员工
emp_id, emp_pos_id
1 1
2 1
3 2
4 3
5 3
6 3
我想在 SQL Server 或 Sybase 中创建以下报告:
Position Pos. Description Serial No of Position ID of Employee
1 C++ Developer 1 1
1 C++ Developer 2 2
1 C++ Developer 3 ------------------
2 Java Developer 1 3
2 Java Developer 2 ------------------
3 DBA 1 4
3 DBA 2 5
3 DBA 3 6
如何实现这样的查询?