donaciano2000 General User

Joined: 22 Oct 2007 Posts: 14
|
Posted: Mon Oct 22, 2007 1:23 pm Post subject: Count of values [SOLVED] |
|
|
Sorry for such a simple question, I've tried reading in the forum for hours but I just can't find quite what I'm looking for nor figure out how to adjust something to get what I want.
Basically I have a list of addresses and I need to make a list of the # in each zip code. I guess this is a report then.
So I'll end up with sort of :
Zip Count
98765 10
98764 21
etc...
Thanks for any help. 
Last edited by donaciano2000 on Mon Oct 22, 2007 2:54 pm; edited 1 time in total |
|
Sliderule Super User


Joined: 29 May 2004 Posts: 2477 Location: 3rd Rock From The Sun
|
Posted: Mon Oct 22, 2007 2:27 pm Post subject: |
|
|
donaciano2000:
I am assuming based on your question, that you are using HSQL as the embedded database ( you are asking this question in the Base forum, not in Calc ) . . . and . . . you have a 'table' that includes ZIP code information.
Therefore, you can create a Query to accomplish what you want. The steps I would follow to create this Query would be:- Open your database in OpenOffice
- On the left, under Database, click on Queries
- Under Tasks, click on Create Query in Design View...
- An Add Table or Query box will appear, click on your Table name, press the Add button
- In the row labeled Field, click on your field name . . . ZIP
- In the row labeled Function, click on Group
- In the next column in the row labeled Field, click on your field name . . . ZIP
- In the row labeled Alias, give the column a name of your choice, for example: Count by Zip
- In the row labeled Function, click on Count
- Run your query by pressing on the Run Query Icon, OR, from the Menu: Edit - Run Query, OR, press F5
- Save the Query, if you desire by pressing the Save Icon, OR, from the Menu: File - Save, OR, press Ctrl+S
Now, that you have this Query -- you can bring this data, into Calc and print it, OR, create a report with the database Report Writer.
I hope this helps, please be sure to let me / us know.
Sliderule
Thanks to add [Solved] in your first post title (edit button) if your issue has been fixed / resolved. |
|