dbTalk Databases Forums  

Information about a column

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Information about a column in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
C G
 
Posts: n/a

Default Information about a column - 03-04-2004 , 08:46 AM






Dear All,

I have column that contains couple of million rows of information and I was
wondering what is the standard way of keeping 'summary information' about
the column.

For instance, say each row has a number between 1 - 10 and a regular query
is "How many of the rows have numbers about 5.

I can see three ways of doing this:

1. Just query the table every time you want the information
2. Create a view for the information required
3. Create another table with a counter column, i.e. every time a number goes
in that is above 5, the counter increates by 1.

Thanks

Colin

__________________________________________________ _______________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.