Tutorial 1 Database Practice:: Data Type Format Description
Tutorial 1 Database Practice:: Data Type Format Description
• Data type selection is usually dictated by the nature of the data and by the
intended use.
VARCHAR(L) VARCHAR(5)
If ‘Ali’, database keeps 3 space
only.
• Data Entry
INSERT INTO <table name> VALUES (attribute 1 value, attribute 2 value, … etc.);
E-R DIAGRAM
1 M
PROFESSOR MANAG STUDENT
E
Query:
1. Show all the Professor Information.
3. Display student last name and first name those are from Kedah.
Select STU_LNAME, STU_FNAME from STUDENT where STU_CONTACT =
‘Kedah’;
4. Display professor last name and first name those skills is Java
Select PROF_LNAME, PROF_FNAME, from PROFESSOR where PROF_SKILL =
‘JAVA’