Click here to Skip to main content
15,909,602 members

Comments by Member 10267912 (Top 12 by date)

Member 10267912 16-Nov-13 19:01pm View    
MySql
Member 10267912 16-Nov-13 19:01pm View    
I am not using MS Access database.I was using MS SQL SERVER , but now, for some reasons, I am using MYSQL database through OLE DB Driver.
So what the solution now having a real Sql server ? thanks for your answer :)
Member 10267912 16-Nov-13 15:37pm View    
Hi RedDK. I think it requires the use of SQL SERVER witch I am not going to use.
Member 10267912 19-Sep-13 20:24pm View    
I will not have his email and password , there will be fields in witch he insert them , So none could control his account. My question was about the technical side of the problem, say I would make it for myself. Privacy would be managed later.
Thanks for you reply : )
Member 10267912 18-Sep-13 22:07pm View    
Hi Maciej Los ,
The result you presented is exactly What I need . I just need some comments in your code if you will, especially in this part

//////////

SET @ft = 'INSERT INTO #tmp(OperationId, ProviderId, Date, Purchase, Payment) ' +
'SELECT ROW_NUMBER() OVER(PARTITION BY ProviderId ORDER BY Date) AS OperationID, ProviderId, Date, COALESCE(Purchase*-1,0) AS Purchase, COALESCE(Payment,0) AS Payment ' +
'FROM (' + @pt + ') AS T'
/////////////
I never used COALESCE and OVER let me know about it please.
Thanks for the answer and for your time :)