POV-Ray : Newsgroups : povray.off-topic : Database question (for Gail? :-) : Re: Database question (for Gail? :-) Server Time
6 Sep 2024 21:21:52 EDT (-0400)
  Re: Database question (for Gail? :-)  
From: Kyle
Date: 9 Oct 2008 06:57:34
Message: <blore4tu23l41kcp4imii5fm7njm416j92@4ax.com>
I think you're really asking for trouble splitting this info up into separate tables,
since it is all account id specific.  You WILL get inconsistent data at some point. 
I'd suggest to just suck it
up and put all of the columns into one table, like this...

create table account (
   id autoinc integer,
   acctnumber varchar(50),
   accttype enum (savings, checking, ...),
   owner integer,
// start of account type specific columns
   interestrate decimal,
   exxpirationdate date,
// end of account type specific columns
   primary key id
   owner foreign key customers.id
);


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.