Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        
            
                
                    
                        
                            
                                | Author | 
                                
                                 Topic  | 
                             
                            
                                    | 
                                         nhaas 
                                        Yak Posting Veteran 
                                         
                                        
                                        90 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2011-10-19 : 23:25:18
                                            
  | 
                                             
                                            
                                            | I have a query that is a join. in this query I sum, I noticed that I dont get a when I have a negative and a positive, just two columns.select    	a.bnumber,sum(b.monthcharge) as chargefrom 	Tesisdev.dbo.BillBudget a    inner join Tesisdev.dbo.Billingcharges b on b.bnumber = a.bnumberWHERE b.setvenderid='199'group by    	b.monthcharge,a.bnumberactually any negative it just puts it in:559935302539	-1.16559935302539	-.01559935302539	14.29Thnak you | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     visakh16 
                                    Very Important crosS Applying yaK Herder 
                                     
                                    
                                    52326 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2011-10-20 : 00:40:08
                                          
  | 
                                         
                                        
                                          | sorry didnt get you. whats output you're expecting?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |