title: Create a package in sql statment
body: <p>i need to create a package on the Part_id. for each package P1,P2,P3,... 
  if there is a true in P1 then i need to include the code in the package_code as shown and the same for the Description i need to do this in a sql statement. </p>
  
  <pre><code>Part_id code    Code_description    P1      P2      P3      P4      P5      P6      P7      P8      P9      P10     P11     P12     P13     P14     P15
  85      19      D1                  TRUE    TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      34      D2                  TRUE    TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      CS      D3                  TRUE    FALSE   TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      EP      D4                  TRUE    FALSE   TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      MS      D5                  TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      XR      D6                  TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  85      BU      D7                  TRUE    TRUE    TRUE    FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE   FALSE
  
  
  
  
  
  
  
   Packages   Part_id     Package_code                    Package_description 
   P1         85          19| 34| CS | EP | MS |XR |BU    D1 |  D2 | D3| D4 |D5|D6 |D7 
   P2         85          19|34|BU                        D1| D2 | D7 
   P3         85          CS|EP                           D3 |  D4
  </code></pre>