Professional Documents
Culture Documents
Database
Table
Relational database
Database Management System (DBMS) is used by the users to access the data
stored in database files. A DBMS is also used to perform administrative tasks on
the databases and objects contained within the database.
Database Server
The first normal form means the data is in an entity format, which means the
following conditions have been met:
The second normal form ensures each attribute describes the entity:
Records should not depend on anything other than a table’s primary key,
including a compound key if necessary.
Values that are not part of the record’s key do not belong in the table. In
general if the contents of a group of fields apply to more than a single record,
put those fields in a separate table.
The fourth normal form is also called the Boyce Codd Normal Form (BCNF), and
fifth normal form exists, but is rarely considered in practical design.
Disregarding these two additional normalization rules may result in a less than
perfect database design but shouldn’t affect functionality.
Referential Integrity
Triggers can also be used to enforce referential integrity; however they require
code they don’t execute as quickly as table properties such as a primary key
constraint.
A foreign key does not have to reference a primary key; it can be defined to
reference a unique constraint in either the same table or in another table.
A column that participates in the foreign key constraint can accept null values,
but if it contains a null value the verification process is skipped.
Data Type
A data type is an attribute that specifies the type of data that an object can
hold as well as the number of bytes of information can be stored in the object.
If you have similar data types to choose from but they only differ in byte size,
use the data type that has a larger range of values and/or increased precision.
View
Stored Procedure
User-Defined Functions
User-defined functions (udf) are routines that take zero or more parameters,
complete an operation, and return the result of the operation as a value. There
are three types of functions: scalar returns a single data value. Table-valued
returns a table data type. And system.
PascalCase – The first letter of the identifier and the first letter of each
subsequent concatenated word is capitalized. Example: EmployeeTable
camelCase – The first letter of the identifier is lowercase and the first letter of
each subsequent concatenated word is capitalized. Example: employeeTable
Tip: Pick a naming convention and use it consistently throughout your databse
enviroment.