Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

ST.

VINCENT COLLEGE OF CABUYAO


College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

Instruction: Write SQL query statements using the sample table (tblStudents) and
requirements given below.

1. Create a Database named MidtermActivity (3 points)

INPUT

OUTPUT

2. Create a table named tblStudents. (3 points)


3. Create a datafield with the following: StudentID, FirstName, LastName, Course,
Section, Grade (3 points)
INPUT

i
ST. VINCENT COLLEGE OF CABUYAO
College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

OUTPUT

4. Rename the table as tblSVCCStudents (3 points)


INPUT

OUTPUT

ii
ST. VINCENT COLLEGE OF CABUYAO
College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

5. Delete the table and turn it back as tblStudent (5 points)

INPUT

OUTPUT

6. Create an additional datafield named contactNumber (3 points)


INPUT

OUTPUT

iii
ST. VINCENT COLLEGE OF CABUYAO
College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

7. Rename the contactNumber as parentNumber (3 points)


INPUT

OUTPUT

8. Delete Section in the datafield. (2 points)


INPUT

OUTPUT

iv
ST. VINCENT COLLEGE OF CABUYAO
College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

9. Insert 5 values. (5 points) It must be a name of your friend or member (take note
it must not be the same as other students or else ZERO)
INPUT

OUTPUT

v
ST. VINCENT COLLEGE OF CABUYAO
College of Information Technology
SVCC Complex Mamatid, City of Cabuyao, Laguna

Bachelor of Science in Information Technology

10. Update ID number 3 as FirstName Cardo and LastName Dalisay (5 points)


INPUT

OUTPUT

11. Delete ID number 1 .(5 points)


INPUT

OUTPUT

vi

You might also like