Database:
Assignment 1:
1. Create a new database university.
2. Create a table student.
Std_id Std_Fname Std_Lname Std_batch Std_address
001 Ahmad sagheer 16160819 gujrat
002 Wajih ahamd 16170819 lahore
003 Shoaib ikram 17172150 gujrat
004 waleed ijaz 17172250 wazirabad
3. Create new column std_gpa and set datatype
int.
4. Alter the type of std_gpa float.
5. Drop the column std_Lname.
6. Display all data.
7. Create table teacher
Tchr_id Tchr_name Tchr_adress Tchr_salary
222 abdullah gujrat 30000.5
333 umer lahore 35000
444 anees gujrat 40000
8. Add new column tchr_course and set
datatype.
9. Insert new values.
10. Change the size of tchr_adress.
11. Show the table.
Note: submit your assignment before next lab class.