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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:03:48+00:00 2026-06-09T13:03:48+00:00

i have a report which i’m doing for work which i need some help

  • 0

i have a report which i’m doing for work which i need some help with. The below query i shows what i’ve done so far, what i need now is to be able to get the info for each student that dropped on a day to day basis rather than give me a total at once, in other words take start one for example which is between 04-23 and 05-23 rather than getting the total at once i want it to provide results for each day at the time meaning today the results will show from 04-23 to 04-26 and tomorrow it updates to show results from 04-23 to 04-27 and so on and so forth. I would greatly appreciate if someone could please help. Thanks wise ones

SELECT
      COUNT (dbo.cst_AdCancelsQE_vw.priorqecounter) AS 'Prior to QE',
      COUNT (dbo.cst_AdCancelsQE_vw.duringqecounter) AS 'During QE',
      COUNT (dbo.cst_AdCancelsQE_vw.afterqecounter) AS 'After QE',
      dbo.cst_AdCancelsQE_vw.Division,
      dbo.cst_AdCancelsQE_vw.Campus,
      LEFT(CONVERT (VARCHAR,dbo.cst_AdCancelsQE_vw.Startdate  , 101), 10)AS 'Start Date'


FROM dbo.cst_AdCancelsQE_vw
      --JOIN dbo.cst_AdStatusChanges_vw
            --ON dbo.cst_AdCancelsQE_vw.NewStatDescrip = dbo.cst_AdStatusChanges_vw.NewStatDescrip
WHERE StartDate IN ('2012-04-23', '2012-05-07', '2012-03-12')


GROUP BY dbo.cst_AdCancelsQE_vw.division, dbo.cst_AdCancelsQE_vw.campus, dbo.cst_AdCancelsQE_vw.startdate
ORDER BY dbo.cst_AdCancelsQE_vw.division, dbo.cst_AdCancelsQE_vw.campus ASC
  • 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-09T13:03:50+00:00Added an answer on June 9, 2026 at 1:03 pm

    Instead of WHERE today-yesterday-and the day before, you should say Between TODAY and TODAY – 3 days.

    WHERE StartDate Between getdate() and getdate()-3
    

    There you have an example for the last 3 days. You should be able to make it fix your requirements.
    This way you have a query that works on a daily basis, if you run it today you get results for last 3 days, when it’s tomorrow and you run it again, you’ll get a new set of results.

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

Sidebar

Related Questions

I have a report which is composed of several subreports. I need to render
I have a report which I need to create with BIRT which is simply
I have a master report which contains a lot of information and I need
I have an access report which fetches data from an underlying access query. The
I have a report window which shows the results returned from a potentially long
i have report which is of an .rpt report. i need to set the
I have a main report which loop over query's data on detail1 band. In
I have a report which was built on MDX-query: SELECT {[Measures].[IssueOpened] } ON COLUMNS,
There're some problem. I have a report which is executed long time. When the
I have a report which worked perfectly. I inserted a subreport at the top

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.