Introduction on a Database Table


In the previous article entitled Introduction to Database, discussed about the understanding of the database along with examples of the use of data bases in everyday life. In the article author said  that the database is:
A set of structured data consists of rows and columns stored on a storage medium where the data can be manipulated (added, modified, deleted) and can be viewed using certain techniques to produce more meaningful information.
In the article Introduction to Database explained that the database consists of a set of structured data. Structured data itself can be interpreted as a table in the database, so the table is the main object of a database. It has been mentioned that the table is part of a database consisting of rows and columns.
Well now let us discuss more about the table. We will discuss it by asking some questions. What is a table? How to create table in database? How to input data into table? How do I view the data in a table? Well, that's 4 questions that will be answered by doing a discussion about the table in this article.
What is a table?
As we mentioned earlier, the table is part of a database consisting of rows and columns. Below we see a data form.
ID
NAME
101
This is record number One
102
Here is the Second record
103
Three is after Two

Is the form above a table? Let us analyze based on the understanding of the database that the author has mentioned.
A set of structured data
è Yes, the form contains a set of data where the data is structured by the ID structure with the data type NUMBER and NAME with the VARCHAR data type. A discussion of data types will be discussed in separate articles.
It consists of rows and columns
è Yes, the shape consists of 4 rows and 2 columns where the first row is the header or description of the structure of the next row. A table will always have a header row, so the form consists of 3 rows and 2 columns.
Stored on a storage medium
è Yes, the form will be stored with a certain structure stored on a storage medium. There are 2 storage media on the computer, namely primary storage and secondary storage.
The data can be manipulated (add, modify, delete)
è Yes, the form can be manipulated. For example done the addition of rows of data so as to be as follows:
ID
NAME
101
This is record number One
102
Here is the Second record
103
Three is after Two
104
How about this record?

Visible addition of a row with ID = 104 and NAME = "How about this record?"
Can be seen using certain techniques to produce more meaningful information
è Yes, from that form we can generate an information about a particular NAME about 103 ID’s. In plain view we can immediately tell that "Three is after Two" is a NAME that belong to 103 ID’s, but in the database we have to use certain techniques to produce such information. SQL (Structured Query Language) is a particular technique that is meant to access data in a table that is in the database.
Okay, based on the above mentioned proof it is proven that the above form is a table.
How to Make a Table?
Once we know what the name of the table is like, then what should be asked is how to make it? Returning to the notion of a particular technique for accessing tables is by using SQL, the process of creating tables also uses the same technique. The SQL used to create a table called DDL (Data Definition Language) and the command used is CREATE. A detailed discussion of DDL will be described in another article.
How to Input Data to Table?
Tables that have been created with DDL-SQL via the CREATE command are empty or have no data. To fill the data into the table we use another SQL technique that is DML (Data Manipulation Language). The DML command used is INSERT. A detailed discussion about DML will be discussed in another article.
How to View Table Content?
After the table successfully created, then filled some data into it, then the existed data in the table should be able to be viewed. The technique for viewing the contents of the data in a table is the SELECT command that is part of the DML-SQL.
Okay, enough for introduction of tables in the database. We knew that table is created with the DDL command, tables that have been created can be filled in data which then the data can be viewed or read using the DML command. The next article will discuss about DDL and DML on SQL.
Thank You, Bobsis.

No comments

Powered by Blogger.