Hello friends
I'm in trouble I'd like someone to help me. I'm running a sql query with select sum () and select total () in the sqlite database and the result is rounding to a smaller one.
code:
conect.db.BeginTransaction
rs = conect.db.ExecQuery("Select total(Valor) as TotalTitulos, " & _
"(Select total(Valor) from Titulos where DataRel < 20181016) as TotalVencidos, " & _
"(Select total(Valor) from Titulos where DataRel >= 20181016) as TotalAVencer " & _
"From Titulos")
result:
TotalVencidos: 133540
TotalAVencer: 4849.67
TotalTitulos : 138390
I ran the same query in the database manager and returned it like this:
	
	
	
		
		
		
			
		
		
	
	
		 
	
TotalVencidos: 133540.35
TotalAVencer: 4849.67
TotalTitulos : 138390.02
Can someone tell me why this difference?
			
			I'm in trouble I'd like someone to help me. I'm running a sql query with select sum () and select total () in the sqlite database and the result is rounding to a smaller one.
code:
conect.db.BeginTransaction
rs = conect.db.ExecQuery("Select total(Valor) as TotalTitulos, " & _
"(Select total(Valor) from Titulos where DataRel < 20181016) as TotalVencidos, " & _
"(Select total(Valor) from Titulos where DataRel >= 20181016) as TotalAVencer " & _
"From Titulos")
result:
TotalVencidos: 133540
TotalAVencer: 4849.67
TotalTitulos : 138390
I ran the same query in the database manager and returned it like this:
TotalVencidos: 133540.35
TotalAVencer: 4849.67
TotalTitulos : 138390.02
Can someone tell me why this difference?
Attachments
			
				Last edited: 
			
		
	
								
								
									
	
								
							
							 
				 
 
		 
			 
 
		 
 
		 
 
		 
 
		 
 
		