Top "Database-design" questions

Database design is the process of specifying the structure and thus the logical aspects of a database.

Storing money in a decimal column - what precision and scale?

I'm using a decimal column to store money values on a database, and today I was wondering what precision and …

sql database database-design currency
How can you represent inheritance in a database?

I'm thinking about how to represent a complex structure in a SQL Server database. Consider an application that needs to …

sql-server inheritance database-design class-table-inheritance
How to store phone numbers on MySQL databases?

Possible Duplicate: mysql datatype for telephne number and address Any suggestions on best practice to store telephone numbers in a …

mysql string database-design formatting int
What is cardinality in Databases?

I have been searching all over the internet but I couldn't seem to find an answer that I can understand. …

database oracle database-design cardinality
Best design for a changelog / auditing database table?

I need to create a database table to store different changelog/auditing (when something was added, deleted, modified, etc). I …

database database-design audit
When to use a View instead of a Table?

When should a View actually be used over an actual Table? What gains should I expect this to produce? Overall, …

sql database-design view
Making a DateTime field in a database automatic?

I'm putting together a simple test database to learn MVC with. I want to add a DateTime field to show …

database database-design datetime sql-server-express field
Create unique constraint with null columns

I have a table with this layout: CREATE TABLE Favorites ( FavoriteId uuid NOT NULL PRIMARY KEY, UserId uuid NOT NULL, …

sql postgresql database-design null referential-integrity
Recommended SQL database design for tags or tagging

I've heard of a few ways to implement tagging; using a mapping table between TagID and ItemID (makes sense to …

sql database-design tags data-modeling tagging
Relational vs. Dimensional Databases, what's the difference?

I'm trying to learn about OLAP and data warehousing, and I'm confused about the difference between relational and dimensional modeling. …

database-design database relational-database non-relational-database