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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:13:37+00:00 2026-05-23T23:13:37+00:00

This query is supposed to run with ms access 2003 using SQL. the function

  • 0

This query is supposed to run with ms access 2003 using SQL. the function JOIN is NOT supported explicitly. implicitly in the WHERE clause is fine…implicity anywhere is fine as long as the word JOIN INNER JOIN Etc is not used.

     DayNumnber   PastTime
               .
               .
               .

       333           Homework
       333           TV
       334           Date
       620           Chores
       620           Date
       620           Homework
       725           Chores
       725           Date
       888           Internet
       888           TV
                  .
                  .
                  .

Hey I would like a query that can Show the most important past time done for each day (TV and internet do not count!) .So importance would be Homework > Chores > Date.So:

       DayNumber     PastTime
         333           Homework
         334           Date
         620           Homework
         725           Chores

Something that might change this problem. Altho all the different past times are listen in a table together. but that was because i appended the table. originally the homework entries. chore entries and date entriess . internet entriess. tv entries. came from different tables.

 eg     homework 333
        homework 620

Is it easier to do it without appending these tables first? I would hopefully like it to be done with the appended table but ya

I was thinking of a mixture of insert. delete… but the hardest part is checking that there is something there for a date a few things and how to put the more important thing done that day . Thank you

  • 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-23T23:13:39+00:00Added an answer on May 23, 2026 at 11:13 pm

    Create another table with:

    Pri | PastTime
    --------------
      1 | Homework
      2 | Chores
      3 | Date
    

    This is a priority list for the items.

    Next do:

      SELECT MIN(Pri), DayNumber
        FROM PastTime_table, Priority_table
       WHERE PastTime_table.PastTime = Priority_table.PastTime
    GROUP BY DayNumber
    

    This will give you the most important past time for each day. And because TV and Internet are not listed they will not show up.

    But it will give you a number, and not the name.

    If you had a better SQL you could then join this back to the Priority_table and lookup the name. But I guess you will have to do that part manually.

    If you are willing to change the name and call them:

    A_Homework
    B_Chores
    C_Date
    

    instead then you could do (without any extra table):

      SELECT MIN(PastTime), DayNumber
        FROM PastTime_table
    GROUP BY DayNumber
    

    Since it sorts the name alphabetically it will always give you the best one.

    You can add a WHERE to remove TV and Internet.

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

Sidebar

Related Questions

I have a Query that's supposed to run like this - If(var = xyz)
This query works great: var pageObject = (from op in db.ObjectPermissions join pg in
In this query: SELECT COUNT(*) AS UserCount, Company.* FROM Company LEFT JOIN User ON
I'm using PHP to create a CSV file from a database query. I run
I have query that I run on Oracle that is supposed to allow hyphen
My access query act so strange, the query is supposed to select the record
This script is supposed to run a jQuery Ajax script every second, it is
Suppose that I have the model Foo in GAE and this query: query =
This query is related to this one I asked yesterday. I have a radio
this query will just one row as a result myDataContext db = new myDataContext();

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.