Short Quiz 01
It is collection of data that contains information relevant to an enterprise.
Database
It is the collection of information stored in the database at a particular moment is called
instance of the database
This describes the database design at the logical level.
logical schema
It is a unit of data – is a symbol or a set of symbols which is used to represent something.
Datum
It is an interpreted data – data supplied with semantics.
information
Is the underlying the structure of a database.
data model
It is a bundle of actions which are done within a database to bring it from one consistent state to a
new consistent state.
Transaction
It is the collection of basic objects.
Entities
The overall logical structure schema of a database can be expressed graphically by an
Entity relationship diagram
This is a characteristic of database that includes also the protection of the database from
unauthorized access confidentiality and unauthorized changes.
data integrity
Short Quiz 03
Which of the following datatype is not being used in oracle?
INT
A statement that is use to rename the table or change the existing name of the table.
Rename
Basic unit of storage composed of rows and columns
Table
Which of the following is not true about ALTER statement?
Insert new row in a table
It logically represents subsets of data from one or more table.
View
An alter statement that is used to update an existing column datatype or datatype size.
MODIFY
Suppose that a user wanted to add a new column name as CITY datatype set to char size 10. Which
of the following is the correct sql statement?
ALTER TABLE STUDENTS
ADD CITY VARCHAR(10);
An alter statement that is used to delete an existing column in the table.
DROP
An alter statement that is used to add new column to the table.
ADD
Suppose that a user wanted to change the datatype of column ADDRESS from Varchar to Char
which of the following is the correct example.
ALTER TABLE STUDENTS
MODIFY ADDRESS VARCHAR(20);
Assignment 01
Which of the following is the correct example of removing a column FIRSTNAME from EMPLOYEES
table?
ALTER TABLE EMPLOYEES
DROP COLUMN FIRSTNAME;
Which of the following is the correct example of modifying the column JOB_ID? Change the datatype
size to 10.
ALTER TABLE EMPLOYEES
MODIFY JOB_ID CHAR(10);
Which of the following is the correct example of adding a new column ADDRESS datatypevarchar
size 20 to EMPLOYEES table?
ALTER TABLE EMPLOYEES
ADD ADDRESS VARCHAR(20);
Which of the following is the correct example of dropping the table EMPLOYEES?
DROP TABLE EMPLOYEES;
Which of the following is the correct example of removing a column SALARY from EMPLOYEES
table?
ALTER TABLE EMPLOYEES
DROP COLUMN SALARY;
Which of the following is the correct example of renaming the table EMPLOYEES to WORKERS?
RENAME EMPLOYEES TO WORKERS;
Which of the following is the correct example of modifying the column lastname? Change the
datatype size to 20.
ALTER TABLE EMPLOYEES
MODIFY LASTNAME VARCHAR(20);
Which of the following is the correct example of creating a new table STUDENTS? The column
STUD_ID is set to primary key.
CREATE TABLE STUDENTS( STUD_ID NUMBER(3) PRIMARY KEY);
Which of the following is the correct example of truncating the table EMPLOYEES?
TRUNCATE TABLE EMPLOYEES;
Which of the following is the correct example of adding a new column
CONTACT_NOdatatypeNUMBER size 11 to EMPLOYEES table?
ALTER TABLE EMPLOYEES
ADD CONTACT_NO NUMBER(11);
Short Quiz 04
Suppose that a user wanted to insert a new value using the implicit method which of the following is
the correct example.
INSERT INTO STUDENST(USN_ID, FIRSTNAME)
VALUES(10,’ELENA’)
A type of DML statement that is use to remove existing rows in a table.
DELETE
Suppose that a user uses the DELETE statement as shown below: what is/are the possible output.
DELETE from STUDENT;
All rows are deleted but the table is still intact.
A type of insert statement that specify the NULL keyword in the VALUES clause.
Explicit
Suppose that a user wanted to insert a new value using the explicit method which of the following is
the correct example.
INSERT INTO STUDENTS VALUES (10, NULL,’ELENA’,NULL);
A type of DML statement that is use to update existing rows in a table.
UPDATE
A type of DML statement that is use to add new rows in a table.
INSERT
Consists of a collection of DML statements that form a logical unit of work.
Transaction
Suppose that a user wanted to update the lastname of student to ‘Santos’ and YR_LVL to ‘Irreg’
whose USN_ID is equal to 50, in one select statement which of the following is the correct sql
statement to use.
UPDATE STUDENTS
SET LASTNAME = ‘SANTOS’, YR_LVL = ‘IRREG’
WHERE USN_ID = 50;
A type of insert statement that omit the column from the column list.v
Implicit
Assignment 02
Which of the following is the correct example inserting a new value to STUDENTS table that will only
add new data to STUD_ID and LASTNAME? The stud_id is 10 and lastname is ‘CRUZ’
INSERT INTO STUDENTS(STUD_ID,LASTNAME)
VALUES(10,’CRUZ’);
Which of the following is the correct example of inserting new values to STUDENTS table?
INSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO','BSIT');
Which of the following is the correct example of updating the LASTNAME to ‘REYES’ of all students
from STUDENTS table whose STUD_ID is equal to 01020564?
UPDATE STUDENTS
SET LASTNAME = ‘REYES’
WHERE STUD_ID = 01020564;
Which of the following is the correct example of updating the COURSE to ‘N/A’ of all students from
STUDENTS table whose course IS NULL;
UPDATE STUDENTS
SET COURSE = ‘N/A’
WHERE COURSE = NULL;
Which of the following is the correct example inserting a new value to STUDENTS table that will only
add new data to STUD_ID and LASTNAME? The stud_id is 10 and lastname is 'CRUZ' and the rest
of the column is set to NULL.
INSERT INTO STUDENTS VALUES (10,'CRUZ',NULL,NULL);
Which of the following is the correct example of deleting all records in STUDENTS table;
DELETE FROM STUDENTS;
Which of the following is the correct example of deleting a student record from STUDENTS table
whose COURSE is equal to NULL;
DELETE FROM STUDENTS
WHERE COURSE IS =NULL;
Which of the following is the correct example updating all student COURSE to ‘BSIT’ from
STUDENTS table?
UPDATE STUDENTS
SET COURSE = ‘BSIT’;
Which of the following is the correct example updating the student LASTNAME TO ‘SANTOS’ and
course to ‘BSCS’ whose STUD_ID is equal to 109?
UPDATE EMPLOYEES
SET LASTNAME = ‘SANTOS’, COURSE = ‘BSCS’
WHERE STUD_ID = 109;
Which of the following is the correct example of inserting new values to STUDENTS table where the
course is set to NULL;
NSERT INTO STUDENTS VALUES(1,'DELA CRUZ','JUANITO',NULL);
It is a bundle of actions which are done within a database to bring it from one consistent
state to a new consistent state
Transaction
It is design to manage large bodies of information
Database management system
Which of the following is not part of transaction contr
CREATE
It is the term generally used to describe what was done by large mainframe computers from
the late 1940's until the early 1980's.
data processing
This describes the database design at the physical level.
logical schema
This describes the database design at the logical level.
physical schema
It is collection of data that contains information relevant to an enterpris
Database
The overall design of the database is called the
database schema
Are applied to the table and form the logical schema.
Contraints
This is formed by one or more than one attributes
identifier