473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Query Confusion

Im confusing myself and need a little bit of direction,
I am trying to design a query with 3 fields, “Type” “Assigned Document Team”, and “Date Submitted”

There are only 6 different “type”’s and 5 different “Assigned document team”’s

I want the report to show me how many of each “type” was submitted for each “assigned document team” but I don’t want the detail for each record in the report.

This is an example of what i want the report to look like.


Assigned Document Team 1

Type ----- Total
Type 1 ----- 5
Type 2 ----- 7


Assigned Document Team 2

Type ----- Total
Type 1 ----- 5
Type 2 ----- 12
Type 3 ----- 2


Would I need to have the query do the counting,
Would I need another query to count of the results of the previous query,
Or could the report do the counting and leave each individual records detail?

Does this make sense?
Mar 4 '09 #1
4 1297
ChipR
1,287 Expert 1GB
You should be able to do this in one query like
Expand|Select|Wrap|Line Numbers
  1. SELECT Type, Count(Type) FROM MyTable GROUP BY [Assigned Document Team], Type
Mar 4 '09 #2
NeoPa
32,556 Expert Mod 16PB
Trixx,

The query for the report needs to be something like :
Expand|Select|Wrap|Line Numbers
  1. SELECT [Assigned Document Team],
  2.        [Type],
  3.        Count(*) AS Total
  4.  
  5. FROM [YourTable]
  6.  
  7. GROUP BY [Assigned Document Team],
  8.          [Type]
The report would need a detail section and a group section with a header for displaying the value of [Assigned Document Team].

Does that clarify the problem a bit for you?
Apr 4 '09 #3
sorry i havent been on the board in a while to reply,

yes this does clarify, i was able to create the report i needed.
Apr 27 '09 #4
NeoPa
32,556 Expert Mod 16PB
Good news :)

It's quite understandable that members are away from the site for a while. No worries.
Apr 27 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: David McManus | last post by:
I am trying to use a query to filter SQL Server 2000 records by a date value. Here is relevant columns in my database table (tblContent): title starting .... and here is my query: Query...
0
by: Dave | last post by:
Hi all, I have a problem with a query. (well, I actually have a few problems...) Here is my query. select FOCUS.SiteName, FOCUS.URL, OTWAdCars.* , REGION.SiteName as RegionSite, REGION.URL...
2
by: Pete | last post by:
Before I get started with the question, does anyone have a (single) good book recommendation for database design? Not an Access-specific book, but something geared toward helping me figure out...
12
by: Joe Stanton | last post by:
Hello Group I have a query that works in Oracle and SQL Server, but fails in Microsoft Access. The query is: SELECT data fromTABLE1 WHERE data>='A&' AND data<'A''' Here is my sample data:
4
by: Shahzad | last post by:
dear respected gurus, I would like to knew how to apply append,insert query for a self table where no primary keys issues. i do have problem say there are 5 rows of single record, this is data...
5
by: Lyn | last post by:
This one is difficult to explain, so I will cut it down to the basics. I have a major table 'tblA' which has an autonum field 'ID-A' as primary key (of no significance to users). 'tblA' contains...
3
by: c tom | last post by:
id name location 1 tom new york 2 jeny sicago 3 tom new york 4 luca sidney 5 luca sidney i want to make below table using query. id name location
5
by: elitecodex | last post by:
Hey everyone. I have this query select * from `TableName` where `SomeIDField` 0 I can open a mysql command prompt and execute this command with no issues. However, Im trying to issue the...
3
by: Thorben Grosser | last post by:
Hello Newsgroup, I am doing some archive database and therefore got one table indexing every folder and one table storing which rack belongs to which department, eg: table folders :...
3
by: pbd22 | last post by:
Hi. I need some help with structuring my query strings. I have a form with a search bar and some links. Each link is a search type (such as "community"). The HREF for the link's anchor looks...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.