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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:45:23+00:00 2026-06-13T18:45:23+00:00

I want to run update query to update PercentAvailability column value 0 to 100

  • 0

I want to run update query to update PercentAvailability column value 0 to 100 between specified date period in my case 2012-10-28 03:31:01 to 2012-10-28 08:31:01. see following picture.

enter image description here

How do i run query to update above data between specified date?

Note: I have many ApplicationID which has this issue so how could i run query against all ApplicationID, I believe we need to run JOIN syntax but it would be good if you give some short of hint.

  • 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-13T18:45:24+00:00Added an answer on June 13, 2026 at 6:45 pm

    Use this query

    update your_table
    set PercentAvailability = 100
    where PercentAvailability = 0
    and [DateTime] between '2012-10-28 03:31:01' and '2012-10-28 08:31:01'
    

    or if you want to update the same thing only for a specific ApplicationID then do

    update your_table
    set PercentAvailability = 100
    where PercentAvailability = 0
    and [DateTime] between '2012-10-28 03:31:01' and '2012-10-28 08:31:01'
    and ApplicationID = 1235
    

    or for multiple ApplicationID do

    update your_table
    set PercentAvailability = 100
    where PercentAvailability = 0
    and [DateTime] between '2012-10-28 03:31:01' and '2012-10-28 08:31:01'
    and ApplicationID in (1235, 1236, 1237)
    

    or for a big number or ApplicationID you could do a subquery

    update your_table
    set PercentAvailability = 100
    where PercentAvailability = 0
    and [DateTime] between '2012-10-28 03:31:01' and '2012-10-28 08:31:01'
    and ApplicationID in (select ApplicationID from another_table where somecondition)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run an update query. The query will be run against multiple
I want to run an update query against a production database and as good
I have to run a query after every update and I want to know
I have this query: UPDATE table_name SET field_1 = field_1 +100, field_2 = field_2
Can I run an update query and in one single field run multiple updates
I want to run a query like this: SELECT * FROM Studio WHERE Id
Often I want to add a value to a table or update the value
I see there are two ways to create update query in Hibernate. First you
I'm trying to run a very quick update query to record that a user's
I want to create an android application that can run SQL Query to my

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.