473,324 Members | 2,541 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,324 software developers and data experts.

Counting with and comparative list

Okay, I have a query that generates a list of ClientID's that I want
included in a count. Take a look at the following query and make any
changes that you see fit to make it operational.

SELECT [CR - tbl Client Record, More Information].MaritalStatusID,
Count([CR - tbl Client Record, More Information].MaritalStatusID) AS
CountOfMaritalStatusID
FROM [CR - tbl Client Record, More Information]
GROUP BY [CR - tbl Client Record, More Information].MaritalStatusID
HAVING MaritalStatusID <> null AND
([CR - tbl Client Record, More Information].ClientID IN
(SELECT [STS - ApplicableClients].ClientID FROM [STS - ApplicableClients])
);

Thanks!

Nov 12 '05 #1
1 1431
Chad Reid <te***@cyberdelia.homeunix.org> wrote in message news:<Pi************************************@cyber delia.homeunix.org>...
Okay, I have a query that generates a list of ClientID's that I want
included in a count. Take a look at the following query and make any
changes that you see fit to make it operational.

SELECT [CR - tbl Client Record, More Information].MaritalStatusID,
Count([CR - tbl Client Record, More Information].MaritalStatusID) AS
CountOfMaritalStatusID
FROM [CR - tbl Client Record, More Information]
GROUP BY [CR - tbl Client Record, More Information].MaritalStatusID
HAVING MaritalStatusID <> null AND
([CR - tbl Client Record, More Information].ClientID IN
(SELECT [STS - ApplicableClients].ClientID FROM [STS - ApplicableClients])
);

Thanks!


How about inner joining your list of clientIDs to this list and then
doing the count on that?
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: RickMuller | last post by:
I have to sort a list, but in addition to the sorting, I need to compute a phase factor that is +1 if there is an even number of interchanges in the sort, and -1 if there is an odd number of...
4
by: Alex Vinokur | last post by:
Copying files : input to output =============================== C/C++ Performance Tests ======================= Using C/C++ Program Perfometer http://sourceforge.net/projects/cpp-perfometer...
8
by: Alex Vinokur | last post by:
Various forms of argument passing ================================= C/C++ Performance Tests ======================= Using C/C++ Program Perfometer...
0
by: Alex Vinokur | last post by:
=================================== ------------- Sorting ------------- Comparative performance measurement =================================== Testsuite : Comparing Function Objects to...
1
by: Sonu Kapoor | last post by:
Hi guys, I know that counting of nodes is not a big deal. But I need to do something where I cant get any solution. Here is how my xml looks like. <?xml version="1.0" encoding="utf-8"?>...
6
by: FireHawkBr® | last post by:
Hi, My company uses Informix as corporative database. As experienced DBA of the company, I have that to make a study comparing Oracle, Informix and DB2 databases and suggesting new alternatives....
6
by: Alex Vinokur | last post by:
Here are results of comparative performance tests carried out using the same compiler (gcc 3.2) in different environments (CYGWIN, MINGW, DJGPP) on Windows 2000 Professional. The following...
6
by: toton | last post by:
Hi, Anyone have a link to comparative study of different C++ compilers and how much they conform to C++ language standard? Most of the big platforms I know have GCC which well supports C++...
2
by: josrom | last post by:
Someone knows where to obtain a comparative picture of Performance Between Pro*C Code and PL/SQL Code??? Tested Items ------------------------ Owner SQL Portability Structure...
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...
1
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...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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.