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 |  
                                    | HaiderAliStarting Member
 
 
                                        1 Post | 
                                            
                                            |  Posted - 2014-11-08 : 01:32:39 
 |  
                                            | Hi Every One Im New Here..Firstly I Say .. If Im Post In Wrong Section Then Plz Move My Post. Its My First Post.Here Is My Question..I Have Two Tables.Please Tell Me How To Get Running Balance.Im Also Read Other Related Topic But Im Failed To Understand Plz Solve My Problem.Table Details Is Here !Table 1 : UsersFields Below.UIDNameDescriptionTable 2 : BalanceFields Below.BIDUIDDateDrCrDescription |  |  
                                    | Muj9Yak Posting Veteran
 
 
                                    75 Posts | 
                                        
                                          |  Posted - 2014-11-10 : 10:43:01 
 |  
                                          | Can you provide more details. what is your expected result? what do these fields contain? .....some example data would be more helpful |  
                                          |  |  |  
                                    | gbrittonMaster Smack Fu Yak Hacker
 
 
                                    2780 Posts | 
                                        
                                          |  Posted - 2014-11-10 : 14:13:21 
 |  
                                          | select sum(dr) over(partition by uid rows unbounded preceding),       sum(dr) over(partition by uid rows unbounded preceding),       Datefrom table1 t1join table2 t2 on t1.uid = t2.bidorder by date asc |  
                                          |  |  |  
                                |  |  |  |