sql server 2005 - Rows to Columns using Sql Query -


Hello I have a table with column

  Cost rate repair 12 repair 223 Wear 1000 Wear 666 Fuel 500 Repair 600 Fuel 450 Wear 400  

Now I Need This Data

  Wear Repair Fuel 825 2066 950   

Using SQL Query

Thanks in advance

  Choose the amount in the form of repair (case when cost = 'wear', then rate and tap end), wear, zodiac (in case when cost = Fuel Cost Ratet  
as Fuel 'Rate and Null end)

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -