2.
Create the table and insert the records inside the StudentDB:
Table name: tblStudent
Studno
Int(9) Primary
Key
200511231
200566712
200733428
200855545
200988182
3.
Studname
Varchar (30)
Amor, Paloma
Villa, Godfrey
Monde, Carmen
Reyes, Eliza
Luna, Francis
Year
Int (1)
4
4
2
2
1
Course
Varchar (30)
Computer Science
Information Technology
Computer Science
Computer Engineering
Information Technology
Entrydate
Date
06/01/05
06/08/05
05/25/07
05/30/08
06/08/09
Change the students whose course is Computer Engineering to Information Technology. Write the
codes below:
_____________________________________________________________________________________
4.
Add new columns named gender [char (1)] and tuition [double]. Write the codes below:
_____________________________________________________________________________________
5.
Change the gender values of all female students to F while M for males. Write the codes below:
_____________________________________________________________________________________
6.
Change the tuition values of all Computer Science students to 35,700.50 and 35, 600.50 for
Information Technology students. Write your codes below:
_____________________________________________________________________________________
7.
Display records only for name, course and tuition. Write your codes below:
_____________________________________________________________________________________
8.
Change the column name of the course to program. Write your codes below:
_____________________________________________________________________________________
9.
Delete the record of the studno 200566712. Write your codes below:
_____________________________________________________________________________________
10. Display all the remaining records in the table. Write your codes below.
_____________________________________________________________________________________
Much more than documents.
Discover everything Scribd has to offer, including books and audiobooks from major publishers.
Cancel anytime.