Re: How Postgresql Compares For Some Query Types - Mailing list pgsql-sql

From
Subject Re: How Postgresql Compares For Some Query Types
Date
Msg-id 200107182302.f6IN2Ha23201@postgresql.org
Whole thread Raw
In response to How Postgresql Compares For Some Query Types  (Mark kirkwood <markir@slingshot.co.nz>)
List pgsql-sql
> 
>     I'm a little unclear on what a "fact table" is.  Can you explain?

Good question... The idea comes from data warehousing where a typical data 
construction involves two "types" of table :

dimensions : time, location, ethicity....( essentially denormalized lookups )
facts      : observations, accidents, sales ....

facts have a composite primary key , each componant of which is a foreign key 
for one of the dimensions.

If drawn with the fact table(s) in the center and dimensions around about, then 
the ERD looks like a "star". Hence the names "star schema" and "star query"

A quick search located a vaguely helpful page : ( apologies about the source )

http://www.oradoc.com/ora816/server.816/a76994/schemas.htm

A much better source is Kimball's book "The Data Warehousing Toolkit".

regards

Mark








pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: pl/pgsql - code review + question
Next
From: "Josh Berkus"
Date:
Subject: Re: pl/pgsql - code review + question