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 7750047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:11:21+00:00 2026-06-01T11:11:21+00:00

Maybe this is a simple problem, but I am just not seeing it :)

  • 0

Maybe this is a simple problem, but I am just not seeing it 🙂

In my database, I have two fields named NoRide and NoAttempt.

In one row I have NoRide = 40 and NoAttempt = 40.

I have no issues when I query directly in the database using:

SELECT * FROM MyTable WHERE NoRide = NoAttempt

However in Android, I wrap this exact line in a rawQuery statement, and I get no results. Similarly if I do things like

rawQuery(“SELECT * FROM MyTable WHERE NoRide – NoAttempt != ‘0’”, null);

I also get no data, when this query works fine in the database query.

Is there something different with rawQuery in android that I am missing?

  • 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-01T11:11:22+00:00Added an answer on June 1, 2026 at 11:11 am

    I don’t know what’s happening with the first part of your question (NoRide=NoAttempt), but I have an idea about the second issue.

    Try removing the single quote from the 0… the database probably thinks you’re trying to compare an int to a string. Lise so:

    rawQuery("SELECT * FROM MyTable WHERE NoRide - NoAttempt != 0", null); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe it is just a simple mistake but this thing is driving me crazy.
I'm just stuck with a problem (maybe Simple). But I can't figure out how
I'm rather new to WPF, so maybe this is a simple question. I have
Ok so this maybe a simple/silly question but I don't know so here goes:
Okay this may be a simple question but I have yet to come with
Maybe it's because it's Friday but I'm stuck on a simple problem. I'm building
The Code I have this problem, I am trying to create a simple rectangle
Alright, this maybe the simplest (or the stupidest) question, but I just got to
I am new at JavaScript so I think my problem may be simple. This
I was wondering which is the way to make this simple (and maybe stupid)

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.