Click here to Skip to main content
15,879,096 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to identify identical master-detail records. Pin
GuyThiebaut24-Jul-13 1:52
professionalGuyThiebaut24-Jul-13 1:52 
QuestionRank over () / row_number over in sqlite Pin
jojoba2022-Jul-13 20:14
jojoba2022-Jul-13 20:14 
AnswerRe: Rank over () / row_number over in sqlite Pin
Mycroft Holmes22-Jul-13 22:55
professionalMycroft Holmes22-Jul-13 22:55 
QuestionRe: Rank over () / row_number over in sqlite Pin
jojoba2022-Jul-13 23:57
jojoba2022-Jul-13 23:57 
QuestionProduct dataabase Pin
DeerBear20-Jul-13 5:59
DeerBear20-Jul-13 5:59 
AnswerRe: Product dataabase Pin
Mycroft Holmes20-Jul-13 13:37
professionalMycroft Holmes20-Jul-13 13:37 
AnswerRe: Product dataabase Pin
Eddy Vluggen20-Jul-13 23:24
professionalEddy Vluggen20-Jul-13 23:24 
GeneralRe: Product dataabase Pin
DeerBear21-Jul-13 2:27
DeerBear21-Jul-13 2:27 
Hi!

I am not new to databases, far from it, I was more
looking for speculative insight on how best to do
things. The reason for that is that this product
will also be doing quite a bit of OLAP and that
usually means your database has to be de-normalized.

The more I look into it, though, the more I realise
there is no way to get minimal de-normalization so
that I can use the same table for two purposes
without putting an overloaded burden on development.

The tracking will have to be done in AUDIT tables with
INSERT triggers. All of the solutions I could think of to
avoid this are, effectively, unusable.

HOWEVER, if you happen to have ideas on how to do
that, I would be interested to know Smile | :)

This is a sample of my structure(to give you an
idea of the path I am taking):

CREATE TABLE PRODUCTS (
    ID                    INTEGER NOT NULL,
    PRODUCT_NAME          VARCHAR(255) NOT NULL,
    PRODUCT_DESCRIPTION   BLOB SUB_TYPE 1 SEGMENT SIZE 80 NOT NULL,
    DOWNLOADABLE          INTEGER NOT NULL,
    PRODUCT_DISCONTINUED  INTEGER NOT NULL
);

CREATE TABLE PRODUCT_DETAILS (
    ID            INTEGER NOT NULL,
    PRODUCT_ID    INTEGER NOT NULL,
    HIGH_VERSION  INTEGER,
    LOW_VERSION   INTEGER,
    EDITION       VARCHAR(255),
    DOWNLOADABLE  INTEGER NOT NULL
);

CREATE TABLE PRODUCT_HISTORY (
    ID            INTEGER NOT NULL,
    PRODUCT_ID    INTEGER NOT NULL,
    VERSION_HIGH  INTEGER DEFAULT 1 NOT NULL,
    VERSION_LOW   INTEGER DEFAULT 1 NOT NULL,
    EDITION       VARCHAR(255) DEFAULT '' NOT NULL,
    DISCONTINUED  INTEGER DEFAULT 0 NOT NULL,
    DOWNLOADABLE  INTEGER DEFAULT 1 NOT NULL
);


Oh and before someone starts whining about the lack of
primary or foreign keys: this is Firebird, those
elements are part of ALTER TABLE statements.
They're there but unreported for brevity Smile | :)
GeneralRe: Product dataabase Pin
Mycroft Holmes21-Jul-13 3:36
professionalMycroft Holmes21-Jul-13 3:36 
GeneralRe: Product dataabase Pin
DeerBear21-Jul-13 4:00
DeerBear21-Jul-13 4:00 
AnswerRe: Product dataabase Pin
jschell21-Jul-13 10:00
jschell21-Jul-13 10:00 
GeneralRe: Product dataabase Pin
Mycroft Holmes21-Jul-13 12:57
professionalMycroft Holmes21-Jul-13 12:57 
QuestionHow to issue setup to the different users according to their membership with windows application? Pin
mehtabalikhan16-Jul-13 19:21
mehtabalikhan16-Jul-13 19:21 
AnswerRe: How to issue setup to the different users according to their membership with windows application? Pin
Mycroft Holmes16-Jul-13 20:20
professionalMycroft Holmes16-Jul-13 20:20 
QuestionSQL Server file locations. Pin
Septimus Hedgehog16-Jul-13 0:05
Septimus Hedgehog16-Jul-13 0:05 
AnswerRe: SQL Server file locations. Pin
Corporal Agarn16-Jul-13 1:49
professionalCorporal Agarn16-Jul-13 1:49 
GeneralRe: SQL Server file locations. Pin
Septimus Hedgehog16-Jul-13 3:18
Septimus Hedgehog16-Jul-13 3:18 
GeneralRe: SQL Server file locations. Pin
Corporal Agarn16-Jul-13 4:18
professionalCorporal Agarn16-Jul-13 4:18 
GeneralRe: SQL Server file locations. Pin
Septimus Hedgehog16-Jul-13 4:44
Septimus Hedgehog16-Jul-13 4:44 
QuestionHow to replace string with stuff ? Pin
caulsonchua15-Jul-13 23:03
caulsonchua15-Jul-13 23:03 
AnswerRe: How to replace string with stuff ? Pin
Richard Deeming16-Jul-13 1:37
mveRichard Deeming16-Jul-13 1:37 
GeneralRe: How to replace string with stuff ? Pin
caulsonchua16-Jul-13 1:39
caulsonchua16-Jul-13 1:39 
GeneralRe: How to replace string with stuff ? Pin
Richard Deeming16-Jul-13 1:50
mveRichard Deeming16-Jul-13 1:50 
AnswerRe: How to replace string with stuff ? Pin
Mycroft Holmes16-Jul-13 12:44
professionalMycroft Holmes16-Jul-13 12:44 
QuestionMounting .DBF files (Oracle Database 11g) Pin
prathameshpitale15-Jul-13 5:33
prathameshpitale15-Jul-13 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.