![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2009
Posts: 1
OS: XP
|
I need help with Access 2007
I'm trying to make 2 different counts in one single query.
I'm not too familiar with SQL, I've actually just been using the design view to make past queries. Here is what I have atm - Code:
SELECT Teacher.TeacherName, Count(Assignments.AssignmentNum) AS CountOfAssignmentNum, Count(Assignments.AssignmentNum) AS CountOfAssignmentNum1 FROM (Teacher INNER JOIN Tests ON Teacher.[TeacherNum] = Tests.[TeacherNum]) INNER JOIN Assignments ON Teacher.[TeacherNum] = Assignments.[TeacherNum] GROUP BY Teacher.TeacherName ORDER BY Teacher.TeacherName; What happens is that when I run the query, it counts up every assignment AND test for every teacher and lists them (together) in both the assignment count and test count columns. I want it to be separate, and while I've googled this problem and found solutions, I can't make out what I need to change in the SQL to fix my issue. Thanks. Last edited by Souperfro; 03-12-2009 at 01:24 PM. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|