Re: RE: [SQL] Database Design Question - Mailing list pgsql-general

From Mike Mascari
Subject Re: RE: [SQL] Database Design Question
Date
Msg-id 3B61D183.E65B27FE@mascari.com
Whole thread Raw
In response to Re: D308-E9AF-4C11 : CONFIRM from pgsql-sql (subscribe)  (Gonzo Rock <GonzoRock@Excite.com>)
List pgsql-general
Gonzo Rock wrote:
>
> OK... Fair Enough... Good Points indeed y'all.
>
> Well... What about the problem of users trying to Query the Database??
>
> You know... like when using Crystal Reports or something?.
>
> SELECT * from HistoryTable
> WHERE PartID = SomeInteger
>
> vs
>
> SELECT * from HistoryTable
> WHERE PartNum = 12345636 AND PartRev = C
>
> How are they supposed to know What the PartID is ??
>
> Anyway, that I why I was considering changing... current users always have trouble peering into the database... They
don'tquite get it. 

Depending upon the sophistication of your users, you might want to
consider constructing a number of views where the data is pre-joined
(totally denormalized). We essentially do the same thing for both the
reasons you provide as well as for security purposes (row security)
based upon the value of CURRENT_USER.

Hope that helps,

Mike Mascari
mascarm@mascari.com

pgsql-general by date:

Previous
From: "omid omoomi"
Date:
Subject: Re: Database Design Question
Next
From: Flemming Froekjaer
Date:
Subject: Problems linking with libpq