Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

MSSQL Pivot to be used in a View

Language: Layout:
View schema
Execution time: 0,03 sec, rows selected: 16, rows affected: 15, absolute service time: 0,22 sec 
edit mode |  history
   RefNumber TBlast TWheel TPainter TMask TDMask TRHand TPHand TAWheel TMetal WorkType1 Product1 Qty1 WorkType2 Product2 Qty2 WorkType3 Product3 Qty3
1 114204 3 NULL 7 NULL NULL 1 3 NULL NULL Primer 11 3 Painting 134HG 2 Painting 890 2
   RefNumber WorkType ProductID Hours PQty rn
1 114204 Painting NULL 132 NULL 1
2 114204 Painting NULL 204 NULL 2
3 114204 Painting NULL 120 NULL 3
4 114204 Handling: Raw NULL 60 NULL 4
5 114204 Handling: Raw NULL 30 NULL 5
6 114204 Handling: Raw NULL 30 NULL 6
7 114204 Handling: Product NULL 120 NULL 7
8 114204 Handling: Product NULL 90 NULL 8
9 114204 Handling: Product NULL 15 NULL 9
10 114204 Blast NULL 150 NULL 10
11 114204 Blast NULL 66 NULL 11
12 114204 Blast NULL 30 NULL 12
13 114204 Primer 11 NULL 3 1
14 114204 Finish 134HG NULL 2 2
15 114204 Intermediate 890 NULL 2 3

    
                
λ
.NET NoSQL database for rapid development