Sqlassignment 03
Sqlassignment 03
Sqlassignment 03
1) What is SQL, and what are some common uses for it in database management?
2) What is a foreign key in SQL, and how is it used to establish relationships
between tables?
DATABASE CREATE:-
1. Create a database ‘classroom’
2. Create a table named ‘science_class’ with the following properties
3 columns(enrollment_no int, name varchar, science_marks int)
UPDATING TABLES:-
1. Update the marks of popeye to 45
2. Delete the row containing details of the student named ‘robb’
3. Rename column ‘name’ to ‘student_name’