我需要对同一项目编号的数据透视表项目数据中的日期进行排序
该项目如下所示:
"Project nr" "Task" "Task deadline" "Task Type Production"
123 pack 1 april 2013 Pack
123 Leave production 3 april 2013 Leave Production
123 Flight date 9 april 2013 Flight Date
“任务类型生产”是为了确保字段的内容始终一致我只能在数据透视表中创建一列。有没有办法在 3 列中显示这些信息,它看起来像这样:
Project nr ; Pack ; leave production ; flightdate
SELECT [TaskDeadline] AS Packed
FROM MSP_EpmTask_UserView where [Task Type Production] = 'Packed'
SELECT [TaskDeadline] AS LeaveProduction
FROM MSP_EpmTask_UserView where [Task Type Production] = 'Leave Production'
SELECT [TaskDeadline] AS FlightDate
FROM MSP_EpmTask_UserView where [Task Type Production] = 'Flight Date'
谢谢安妮