Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9067693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:00:30+00:00 2026-06-16T17:00:30+00:00

i am using ADO.NET Data Provider for SQLite: 1.0.82.0 Aggregate function returns wrong result:

  • 0

i am using ADO.NET Data Provider for SQLite: 1.0.82.0

Aggregate function returns wrong result:

###Table structure###
CREATE TABLE ta85 (id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, date INTEGER, _90 REAL, _100 REAL)

###Rows: ###
select * from ta85

id, date, _90, _100

"1","1355480577920","4,4","2"

"2","1355480877929","15","5,2"

"3","1355481177937","26,4","9,4"

------------------

Now if i want to select the max, min values for each column:

SELECT date,MIN(_90), MAX(_90),MIN(_100), MAX(_100) FROM ta85 WHERE date between 1355480296794 and 1355481366266

returns:

"1355481177937","15","4,4","2","9,4" 

which for column _100 is correct but for column _90 is wrong.

Solution

Thanks for all your answers. you were both right.

cmd.Parameters.AddWithValue(columname,"");

to

cmd.Parameters.AddWithValue(columname,0.0d);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T17:00:31+00:00Added an answer on June 16, 2026 at 5:00 pm

    It appears you are comparing strings instead of numbers. Perhaps format your number as ‘4.4’ instead of the ‘4,4’

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the official System.Data.SQLite ADO.NET provider for my application, and I am
Just some background, sorry so long winded. I'm using the System.Data.SQLite ADO.net adapter to
I am using Sqlite ADO.NET provider 2.0 in my c# application .net framework 4.0.
I am working on custom data provider using ADO .NET Entity Framework. In the
My application is a client/server solution using an ADO.NET Data Service. The Data Service
I'm building a data model using ADO.NET Entity Framework 3.5 in Visual Studio 2008
in our current project we are using ADO.NET Entity Framework as data layer for
I am using Oracle 11.1.0.6.0 and ADO.NET (System.Data.OracleClient) to run a query that works
how can I by using Ado.net rename existing column in a table and changing
using ado.net tipically we need to define a connectionstring to create a sqlconnection object,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.