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

  • SEARCH
  • Home
  • 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 917385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:12:13+00:00 2026-05-15T18:12:13+00:00

I wanna make a query that fetches only the rows that has ‘cost’ value

  • 0

I wanna make a query that fetches only the rows that has ‘cost’ value grader than zero.The cost column has double data type.When i write a query like that,

select cost from xxx where cost>0;

it retrieves the rows only that has value grader than or equal to one.For example it doesnt take like 0.02 or 0.3 values.The query sees these type values as zero.How can i achieve my goal?
Thanks for advance…

  • 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-05-15T18:12:13+00:00Added an answer on May 15, 2026 at 6:12 pm

    I can’t replicate your problem using mysql 5.41.

    Show us the result of describe table xxx;

    What happens if you issue the query:

    select cost from xxx where cost > 0.0;
    

    Is your query actually:

     select ceil(cost) from xxx where cost > 0.0;
    

    If so, for values of cost > 0 but <= 1, you’d get a result set of 1.

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

Sidebar

Related Questions

I wanna make a page that contains more than one tables. Each table is
Hi guys i am going to make a android game. i wanna know that
I wanna make the Mel-Frequency Cepstrum Algorithm but there are some things that I
I wanna make a lineborder for a WHOLE ROW ! Not only for one
I have 2 question I wanna make Mysql table that have charset utf8 but
I'm inserting a value in table A, that has a serial type as primary
i wanna make really sure, that a user can upload large files to my
I wanna make a function that erases everything inside of a multiple select using
I wanna make use of the Ternary Operator with an object. if($msg == 'hello'){
How should I go about parsing a url in php? I wanna make it

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.