This action might not be possible to undo. Are you sure you want to continue?
Tutorial 1 Discussion: 1. What is a file-based system? What are the limitations of file-based systems? 2. What is database management system? 3. What are the components of Database Environment? 4. Who are played the roles in Database Environment? 5. List out 10 advantages of DMBS. 6. List out 5 disadvantages of DBMS. Please answer all these questions and pass up to your respective tutor into the following tutorial class. Database Practical: Practical: Operations on a single table Objective: this tutorial lets you learn how to create your own tables using SQL. Start up the Command Centre and make sure that it is set up to use semicolon as the statement termination character (just like Tutorial 2) and create a new script that does the following: 1. Create a new database named tut3. 2. Create the PERSON table the attributes are P_IC BIGINT, P_NAME VARCHAR (50), P_HOMETOWN VARCHAR (50), P_STATE VARCHAR (50), P_RELIGION VARCHAR (50), P_BIRTHDAY DATE and the primary key is P_IC. create table person ( p_ic bigint not null, p_name varchar(50), p_hometown varchar(50), p_state varchar(50), p_religion varchar(50), p_birthday date, primary key (p_ic) ); Enter yourself and 10 other people into the database. If you can't find out information about 10 other real people it's OK to make up imaginary people. Give yourself the P_IC 0
and the other people P_IC 1 to 10. Remember that P_IC should be NOT NULL. The default year format is YYYY-MM-DD. 3. Make sure that there are some people in your database who have the same state as you and have the same religion as you and are younger than you. (This is so that question 7 will have some visible results.) Example of data: p_ic p_name p_hometown p_state p_religion p_birthday 0 Jessie Shah Alam Selangor Christian 1980-0602 1 Bala Krishnan Ipoh Perak Hindu 1982-0101 2 Munir Mohd Amin Taiping Perak Muslim 1981-09-07 3 Chua Ah Kow Sungai Petani Kedah Buddhist 1980-01-02 4 P. Pandian Dengkil Selangor Hindu 1979-12-25 5 Dadala Ratnam Petaling Jaya Selangor Christian 1982-0105 6 Faruq Tariq Simpang Tiga Kedah Muslim 1981-09-30 7 Marina Matthew Kelang Selangor Christian 1982-0722 8 Phua Chu Kang Katong Singapore Christian 1966-0820 9 Gurmit Singh Sepang Selangor Sikh 1980-0820 10 Ng Faye Faye Cheras Selangor Buddhist 1982-0203 Useful query: 1. Type in the command to show the birthdays, names, and hometowns of all the people in your database who are were born before 1 January 1981.