| 
                                         rajemessage 
                                        Starting Member 
                                         
                                        
                                        17 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2014-01-09 : 02:17:04
                                            
  | 
                                             
                                            
                                            | Dear all            Is it possible to formulate the query using pivote clause of sqlserver 2005.( Table name is) BridgeHawra--------ReportDate,                 , Pole, DiameterCost,Flag,OuterDiaCost01 jan 2014,               ,1     ,   4.5      ,yes,601 jan 2014,               ,2     ,   4.5        ,no,601 jan 2014,               ,3    ,  5.5         ,no,602 jan 2014,               ,4     ,  5.5        ,no,5.902 jan 2014,               ,5     ,  5.5        ,no,61)Pole Col will have unique value.o2)One pole will have one DiameterCost, but n number of DiameterCost can be there.I have to show a report which should show , count of poles and cost(DiameterCost* pole count of the day of each DiameterCost) for each date and DiameterCost.as followingDateOfReport            ,  PoleCountofDiameterCost4.5, DiameterCost4.5, PoleCountOfDiameterCost5.5,DiameterCost5.501 jan 2014              , 2                                             ,(2*4.5)                        ,1                                    ,(1*5.5)02 jan 2014              , 0/null                                      ,0/null                           ,2                                    ,(2*5.5)yours sincerely | 
                                             
                                         
                                     |