Top "Database-design" questions

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

Why use multiple columns as primary keys (composite primary key)

This example is taken from w3schools. CREATE TABLE Persons ( P_Id int NOT NULL, LastName varchar(255) NOT NULL, FirstName …

database-design relational-database primary-key ddl database-table
A beginner's guide to SQL database design

Do you know a good source to learn how to design SQL solutions? Beyond the basic language syntax, I'm looking …

sql database database-design scalability
Max length for client ip address

Possible Duplicate: Maximum length of the textual representation of an IPv6 address? What would you recommend as the maximum size …

sql database database-design
Inserting values into tables Oracle SQL

I'm trying to insert values into an 'Employee' table in Oracle SQL. I have a question regarding inputting values determined …

sql oracle database-design insert-into
Database Structure for Tree Data Structure

What would be the best way to implement a customizable tree data structure (meaning, a tree structure with an unknown …

sql database-design tree
Primary key or Unique index?

At work we have a big database with unique indexes instead of primary keys and all works fine. I'm designing …

sql database database-design
What's the longest possible worldwide phone number I should consider in SQL varchar(length) for phone

What's the longest possible worldwide phone number I should consider in SQL varchar(length) for phone. considerations: + for country code () …

sql-server validation database-design data-modeling phone-number
Grant all on a specific schema in the db to a group role in PostgreSQL

Using PostgreSQL 9.0, I have a group role called "staff" and would like to grant all (or certain) privileges to this …

postgresql database-design roles privileges grant
Calendar Recurring/Repeating Events - Best Storage Method

I am building a custom events system, and if you have a repeating event that looks like this: Event A …

database-design calendar