pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Mascari <mascarm@mascari.com>
To: Gonzo Rock <GonzoRock@Excite.com>
Cc: pgsql-general@postgresql.org
Subject: Re: RE: [SQL] Database Design Question
Date: Fri, 27 Jul 2001 16:39:31 -0400
Message-ID: <3B61D183.E65B27FE@mascari.com> (raw)
References: <3.0.5.32.20010727110215.00c9bac0@postoffice.pacbell.net>
	<3.0.5.32.20010727132144.009eae90@postoffice.pacbell.net>

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't quite 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



view thread (10+ messages)  latest in thread

Message-ID: <3B61D183.E65B27FE@mascari.com>
Permalink:  ../3B61D183.E65B27FE@mascari.com/
Also on:    postgresql.org/message-id/3B61D183.E65B27FE@mascari.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mascarm@mascari.com, GonzoRock@Excite.com, pgsql-general@postgresql.org
  Subject: Re: RE: [SQL] Database Design Question
  In-Reply-To: <3B61D183.E65B27FE@mascari.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox