SQL Tutorial: 3

By alexxk5111

SQL database table

The foundation of every Relational Database Management System is a database object called table. Every database consists of one or more tables, which store the database’s data/information. Each table has its own unique name and consists of columns and rows.

The database table columns (called also table fields) have their own unique names and have a pre-defined data types. Table columns can have various attributes defining the column functionality (the column is a primary key, there is an index defined on the column, the column has certain default value, etc.).

While table columns describe the data types, the table rows contain the actual data for the columns.

Here is an example of a simple database table, containing customers data. The first row, listed in bold, contains the names of the table columns:

Table: Customers

FirstNameLastNameEmailDOBPhone
JohnSmith[email protected]2/4/1968626 222-2222
StevenGoldfish[email protected]4/4/1974323 455-4545
PaulaBrown[email protected]5/24/1978416 323-3232
JamesSmith[email protected]20/10/1980416 323-8888

Now that we’ve learned what is a database table, we can continue with our sql tutorial and learn how to manipulate the data within the database tables.