pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Orr <james@lrgmail.com>
To: Gonzo Rock <GonzoRock@Excite.com>
To: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: Database Design Question
Date: Fri, 27 Jul 2001 16:51:00 -0400
Message-ID: <00ce01c116dd$d83f5fe0$1600000a@lrg.office> (raw)
References: <3.0.5.32.20010727110215.00c9bac0@postoffice.pacbell.net>
	<3.0.5.32.20010727132144.009eae90@postoffice.pacbell.net>


----- Original Message -----
From: "Gonzo Rock" <GonzoRock@Excite.com>
To: <pgsql-general@postgresql.org>
Cc: <pgsql-sql@postgresql.org>
Sent: Friday, July 27, 2001 4:21 PM
Subject: RE: [SQL] Database Design Question


> 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.

Search conditions don't HAVE to be indexes.  And you can have more than one
index.  So you could have your primary index on PartID, which would be used
by your applications and another index on PartNum and PartRev if those are
frequently searched fields for crystal reports etc.




view thread (10+ messages)  latest in thread

Message-ID: <00ce01c116dd$d83f5fe0$1600000a@lrg.office>
Permalink:  ../00ce01c116dd$d83f5fe0$1600000a@lrg.office/
Also on:    postgresql.org/message-id/00ce01c116dd$d83f5fe0$1600000a@lrg.office

 · 

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: james@lrgmail.com, GonzoRock@Excite.com, pgsql-general@postgresql.org
  Subject: Re: Database Design Question
  In-Reply-To: <00ce01c116dd$d83f5fe0$1600000a@lrg.office>

* 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