Re: [SQL] Inheritance or no inheritance, there is a question

2003-08-18 Thread Josh Berkus
Vernon, > What is the best solution for this DB scheme problem? Have you considered not using inheritance? As a relational-SQL geek myself, I'm not keen on inheritance -- I feel it mucks up the relational model. Not everyone agrees with me, of course. Personally, I'd suggest the following s

[SQL] Inheritance or no inheritance, there is a question

2003-08-18 Thread Vernon Smith
I am working on an application system refinement. There is a user profile table in the current system. After the refinement, there are new separated roles, A and B, of the users. The role A only has a few valid fields of the original profile table while the role B still has the whole profile t

Re: [SQL] Reverse pattern match.

2003-08-18 Thread Josh Berkus
Moonstruck, > I want to create a table of regular expression patterns (for assessing > phone numbers), something like: > CREATE TABLE CallType ( pattern varchar primary key, > typevarchar, > rateint4); > INSERT INTO CallType VALUES ('0[3-9]_

Re: [SQL] Reverse pattern match.

2003-08-18 Thread Rod Taylor
On Mon, 2003-08-18 at 03:05, Moonstruck wrote: > I want to create a table of regular expression patterns (for assessing > phone numbers), something like: > CREATE TABLE CallType ( pattern varchar primary key, > typevarchar, > rateint4); > INS

[SQL] Reverse pattern match.

2003-08-18 Thread Moonstruck
I want to create a table of regular expression patterns (for assessing phone numbers), something like: CREATE TABLE CallType ( pattern varchar primary key, typevarchar, rateint4); INSERT INTO CallType VALUES ('0[3-9]','Interstate Call