2
Answers

Visual Studio 2008 IDE

jonas khan

jonas khan

15y
2.9k
1
Hello,

I am currently reorganizing a project of hundreds of ressources , gifs, classes and controls. Since i find it time consuming to manually update the references or the ressources location in each file, i was wondering if there is any way of letting VS2008 update automatically references, namespaces and images paths?

Thanx for your help
Answers (2)
2
Mani Kandan

Mani Kandan

NA 2.6k 135.6k 7y
I think you got the pivot a bit wrong. I think it should look something like this:
 
  1. SELECT  
  2.     *  
  3. FROM  
  4. (  
  5. SELECT   
  6.     Categories.CategoryName,  
  7.     YEAR(Orders.ShippedDate) AS ShippingYear,  
  8.     CONVERT(money,([Order Details].UnitPrice*Quantity*(1-Discount)/100))*100 as Sales  
  9. FROM   
  10.     Orders    
  11. INNER JOIN [Order Details] ON Orders.OrderID = [Order Details].OrderID    
  12. INNER JOIN Products ON [Order Details].ProductID = Products.ProductID    
  13. INNER JOIN Categories ON Products.CategoryID = Categories.CategoryID    
  14. WHERE (((Orders.ShippedDate) Between '19960101' And '19971231'))  
  15. AS SourceTable  
  16. PIVOT  
  17. (  
  18.     SUM(Sales)  
  19.     FOR CategoryName IN ([Confections],[Meat/Poultry],  
  20.                          [Beverages],[Grains/Cereals],[Seafood])  
  21. AS pvt  
 
Accepted