Skip to content
Rodgers Notes
Rodger Lepinsky, Database Expert, Data Analyst, Data Scientist.
  • Data Modeling
    • testpage_4
  • Database Tuning
  • Database Administration
  • Blog
  • Contact
    • About Rodger Lepinsky

Author: Rodgers Notes Writer

Circular or Cyclical References

September 21, 2010 Rodgers Notes Writer Leave a comment

There were circular references in the foreign keys. You couldn’t insert into first table, because it needed to find the row (via the foreign key) in the second table. But when you went to insert into the second table, you couldn’t insert there, because it needed to find a row in the first table.

Continue Reading →

Posted in: Database Design Mistakes to Avoid

Using the Wrong Object

September 20, 2010 Rodgers Notes Writer 1 Comment

Don’t create the wrong object. I’ve seen some strange “designs”. Ie. Another database was created instead of a schema. A table was created instead of a simple function. A series of five tables and views was created when a single field would have sufficed!

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Learning Technology, Oracle DBA Subjects

Defining Recursive Relationships In Lookup Tables!

Rodgers Notes Writer Leave a comment

Another Database Design Mistake to Avoid Recursive programming is used in a few places in computer science. Most notably in…

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Learning Technology

Simple Rule Of Thumb To Determine the Number of Tables In A Relationship

September 19, 2010 Rodgers Notes Writer Leave a comment

The rule of thumb for the number of tables:
Many to Many (M:N) 3 tables
One to Many (1:M) 2 tables
One to One (1:1) 1 table

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Learning Technology, Oracle DBA Subjects

Combining Identifying Data, Transaction Data, and LOBs in a Single Table

Rodgers Notes Writer Leave a comment

Creating a LOB for every customer record, whether it was used or not, caused some serious problems.

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Oracle DBA, Tuning

Too Many Tables For a 1:1 Relationship

Rodgers Notes Writer 3 Comments

A 1:1 relationship was split into two tables. Now a table join was required for almost every query. Querying on a single table would take 10 to 15 seconds. After joining to the second table to get a few more fields, the response time slowed down to about 45 to 60 seconds! About 4 times as long.

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Oracle DBA

Script to List Tables With No Foreign Keys

Rodgers Notes Writer Leave a comment

Here is an Oracle script to find the tables that don’t have any foreign keys.
Tables that are neither a parent table, or a child table.

Continue Reading →

Posted in: Oracle DBA Subjects Filed under: Database Design Mistakes to Avoid, Oracle DBA, Scripts

Redundant Foreign Key

September 18, 2010 Rodgers Notes Writer Leave a comment

Another Database Design Mistake to Avoid is the Redundant Foreign Key.

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Oracle DBA

Referential Integrity and Performance

Rodgers Notes Writer Leave a comment

There are three ways to implement Referential Integrity in a database system. Primary and Foreign Keys, Triggers, Application code. And each method results in different database performance.

Continue Reading →

Posted in: Database Design Mistakes to Avoid Filed under: Oracle DBA, Tuning

Oracle Script To Find Tables With No Primary Key

Rodgers Notes Writer 2 Comments

After discovering so many tables that no primary key, at so many shops, I finally wrote an Oracle script to list all the tables that did not have a PK.

Continue Reading →

Posted in: Power Scripts Filed under: Database Design Mistakes to Avoid, Oracle DBA, Scripts

Post navigation

Page 12 of 13
← Previous 1 … 11 12 13 Next →
  • Architecture
  • Cartesian Products
  • Data Science
  • Database Design Mistakes to Avoid
  • Design
  • Graph Database
  • Humour
  • Oracle Applications
  • Oracle DBA Subjects
  • Power Scripts
  • Quality
  • R
  • Reviews
  • Science
  • Security
  • SQL
  • SQL Server
  • Tuning
  • Uncategorized
  • Uniface
  • Unix and Linux
  • Windows
Copyright © 2026 Rodgers Notes — Velux WordPress theme by GoDaddy