POV-Ray : Newsgroups : povray.off-topic : Database question (for Gail? :-) : Re: Database question (for Gail? :-) Server Time
6 Sep 2024 21:21:09 EDT (-0400)
  Re: Database question (for Gail? :-)  
From: Gail
Date: 8 Oct 2008 03:40:24
Message: <48ec63e8@news.povray.org>
"Darren New" <dne### [at] sanrrcom> wrote in message 
news:48ec5d23$1@news.povray.org...
> Gail wrote:

>> Depending how many columns are only applicable to one account type, I 
>> might take a short cut and put everything in one table. It does depend 
>> though.
>
> That doesn't really solve the consistency problem, tho. You could still 
> wind up with an account where all the details are null, for example.

For that you could use check constraints.

ALTER TABLE Accounts ADD CONSTRAINT ck_AccountType CHECK (AccountType = 
'CreditCard' AND exxpirationdate IS NOT NULL)
etc


Post a reply to this message

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