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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:12:15+00:00 2026-06-10T11:12:15+00:00

I have got a query in sqlite String[] args = { Report_DATETIME,Report_DATETIME, EMSUnitCode };

  • 0

I have got a query in sqlite

String[] args = { Report_DATETIME,Report_DATETIME, EMSUnitCode };
            String sql = "Select * from TR_ReportingAll Where  (Report_DATETIME<? or ( Report_DATETIME=? and EMSUnitCode!=?)) order by Report_DATETIME,EMSUnitCode DESC Limit 10";
            mCursor = database.rawQuery(sql, args);

Why values of mCursor is ASC? When i get mCursor.moveToNext.

  • 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-10T11:12:16+00:00Added an answer on June 10, 2026 at 11:12 am

    Your sort criteria is Report_DATEIME ASC and then, all items with equal Report_DATEIME are sorted by EMSUnitCode DESC. DESC does not apply to all ORDER BY fields, but only those you set them for and ASC is default order if not specified otherwise. Therefore if you want to date to be descending change your order to order by Report_DATETIME DESC,EMSUnitCode DESC

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

Sidebar

Related Questions

i've got a SQL query which returns multiple rows, and i have : $data
I have a bytearray object in Python 2.7 that I got from a query
I have got choice for using either Entity SQL query inside my DAL or
I have got a native join sub query problem in MySQL Entity. SQL code
I have got quite slow query (actually this is data loading from mysql.dump). Now
I've got a rather lengthy query i have been working with that is throwing
I have the following code and got myself confused: I have a query that
Got a problem with a query I'm trying to write. I have a table
Well after much messing about I have finally got a query that gives sales
I have got a table which contains 5 column and query requirements: update row

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.