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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:09:42+00:00 2026-05-28T03:09:42+00:00

I currently creating a database the purpose of which is log the number of

  • 0

I currently creating a database the purpose of which is log the number of times a person does a certain procedure. They are marked on these procedures with either an N B or C.

I have created the database and the following query which will count the amount of times they receive either and N B or C.

TRANSFORM Count(ed.[Entry ID]) AS [CountOfEntry ID]
SELECT ap.AdultProcedureName, ap.Target, Count(ed.[Entry ID]) AS [Total Of Entry ID]
FROM tblAdultProcedures AS ap LEFT JOIN tblEntryData AS ed ON ap.AdultProcedureName = ed.[Adult Procedure]
GROUP BY ap.AdultProcedureName, ap.Target
PIVOT ed.Grade;

I have then created a report which will display the results of this query and work out the % of the score for N B and C.

The problem I am having is that if there is not data for any of the grade scores (N B or C)
which are column headings in my report there will be a error the report will not display. Is there any way I can write into the query or report to create the columns N B and C even if there is not data to display.

Here are screen shots of my database.
http://www.flickr.com/photos/mattcripps/6684779281/

Thanks in advance

  • 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-28T03:09:43+00:00Added an answer on May 28, 2026 at 3:09 am

    As far as I recall, just adding IN should fix it:

    <...>
    PIVOT ed.Grade IN ("N","B","C");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently creating an iOS app, which connects to a database and asynchronously
Im currently creating a webportal with ASP.NET which relies heavily on database usage. Basically,
i'm currently creating a database program in java and i am a bit stuck
I'm currently creating an EJB3 Data Access Class to handle all database operations in
I'm currently creating blog system, which I hope to turn into a full CMS
I'm currently creating a lot of classes that will access database using a connection
I am currently creating a site(php,css,html,ajax,MySql) which will have heavy user usage of space(regarding
I am creating an web application which is replacing the outdated one I currently
I'm currently creating a WinForm in VB.NET bound to an access database. Basically what
I am currently creating a class to handle all my form data which will

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.