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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:59:35+00:00 2026-05-15T08:59:35+00:00

Hey guys, first off all sorry, i can’t login using my yahoo provider. anyways

  • 0

Hey guys, first off all sorry, i can’t login using my yahoo provider.
anyways I have this problem. Let me explain it to you, and then I’ll show you a picture.

I have a access db table. It has ‘report id’, ‘recpient id’, and ‘recipient name’ and ‘report req’. What the table “means” is that do the user using that report still require it or can we decommission it.

Here is how the data looks like (blocked out company userids and usernames):
*check the link below, I cant post pictures cuz yahoo open id provider isnt working.

So basically I need to have 3 select queries:

1) Select all the reports where for each report, ALL the users have said no to ‘reportreq’. In plain English, i want a listing of all the reports that we have to decommission because no user wants it.

2) Select all the reports where the report is required, and the batchprintcopy is more then 0. This way we can see which report needs to be printed and save paper instead of printing all the reports.

3)A listing of all the reports where the reportreq field is empty. I think i can figure this one out myself.

This is using Access/VBA and the data will be exported to an excel spreadsheet. I just a simple query if it exists, OR an alogorithm to do it quickly. I just tried making a “matrix” and it took about 2 hours to populate.

https://docs.google.com/uc?id=0B2EMqbpeBpQkMTIyMzA5ZjMtMGQ3Zi00NzRmLWEyMDAtODcxYWM0ZTFmMDFk&hl=en_US

  • 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-15T08:59:35+00:00Added an answer on May 15, 2026 at 8:59 am

    1) This query works by taking each report ID and looking for a row where someone has not marked it as “not required” (with the assumption that ‘n’, and ‘N’ are the only ways to indicate that). If it finds any rows for that report ID that are still required.

    SELECT DISTINCT report_id FROM table_name AS outer
      WHERE NOT EXISTS
        (SELECT report_id FROM table_name
        WHERE report_req NOT IN ("n","N")
          AND report_id=outer.report_id);
    

    2) This query just adds up the values of batchprintcopy on a per-report_id basis (where the report is required, same assumption as above).

    SELECT report_id, SUM(batchprintcopy) FROM table_name
      WHERE report_req NOT IN ("n","N")
        AND batchprintcopy > 0
      GROUP BY report_id;
    

    3)

    SELECT report_id FROM table_name
      WHERE report_req IS NULL OR report_req = "";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey guys! First of all, I know this kind of stuff is quite shitty,
Hey guys, first time using stackoverflow. can you guys help me debug? Heres the
hey guys having this really simple problem but cant seem to figure out have
Hey guys am having a bit of problems with my jQuery, I have all
Hey guys, this is my first time actually posting at stackflow but i've used
Hey guys, I want to make a function loop over all elements that have
Hey guys, first off I played around with shortcodes, but they aren't working. I
Hey guys. I've just published my first Android application to show this guy who
Hey guys... I'm working on creating one of my first websites and currently have
Hey guys, I have this query. SELECT COUNT(purchase_log.id), purchase_log.date_purchased, purchase_log.total_cost, purchase_log.payment_status, cart_contents.product_name, members.first_name, members.last_name,

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.