Lab Assignment ITEC 211 G 563
Lab Assignment ITEC 211 G 563
LAB ASSIGNMENT
Term:( First / □Second) Academic Year: 2024- 2025
Student Name: Elaf Student ID: 20416241
Section Number: Serial Number: Start Date: 19/10/2024
Course Name: Database Concepts & Design End Date: 10/10/2024
Course Code: ITEC-211 Format: .doc, .docx, .pdf
Course Level: 4 Maximum Marks: 10 Duration: 3 weeks
Marks Summary
Questions # Q.1 Q.2 Q.3 Q.4 Q5
CLO#
Aligned Performance
Indicator (PI)
Aligned Student
Outcome (SO)
Marks Allocated 2 3 2 1 2
Marks
Obtained
Student Outcomes (SOs) – Marks Summary
Student
SO1 SO2 SO3 SO4 SO5 SO6
Outcomes
Marks
Allocated
Marks
Obtained
Include a title page with assignment number, Jazan University logo, student name, student Jazan University ID,
teacher name, course name, course code, program name, department and college name.
Use the required naming convention, typically including your name, course code.
Use font Times New Roman, and font size 14 for title page text and make it bold.
Use font Times New Roman, and font size 12 for rest of the pages. Make headings bold.
Use 1.5 spacing with 1-inch margins on all sides.
Attach the OUTPUT below the steps/program.
Include page numbers on each page except the title page.
Mention answers number in each page.
Correct all common spelling, and typographical errors (use spell-check).
Submit the Assignment (in this format)to correct section number on Blackboard in .doc, .docx, or .pdf format.
Q.1: Create table with your name(Student Name) with following attributes & ADD
Primary key to S_id.
Note: When you create table EDIT attribute according to your table name.
above table.
S_Contact_no) Q2b. Write a sql query to alter the table to ADD new
Q2c.Write a sql query to alter MODIFIES any column in the above table.
Q3a.Write a sql query to display anyone column from the above table by using
SELECT command.
Q3b. Write a sql query to display anyone ROW from the above table by using
SELECT command.
SQL
Output
SELECT * FROM Student_Info;
1 Elaf 21 25 0501691327
2 Ali 22 30 0502345678
3 Sara 20 28 0509876543
4 Omar 23 32 0501234567
5 Fatima 21 27 0508765432
SQL
ALTER TABLE Student_Info
ADD COLUMN S_email VARCHAR(50);
Output: A new column named S_email of type VARCHAR(50) is added to the Student_Info table.
SQL
Output: The S_marks column is modified to store decimal values with 5 digits and 2 decimal places.
SQL
Output:
S_name
------
Elaf
Ali
Sara
Omar
Fatima
SQL
Output:
S_id | S_name | S_age | S_marks | S_phone_no | S_email
-----+--------+-------+---------+-----------+--------
1 | Elaf | 21 | 25 | 0501691327 | NULL
SQL
UPDATE Student_Info
SET S_marks = 30
WHERE S_id = 2;
Output: The S_marks value for the student with S_id 2 is updated to 30.
SQL
SELECT 20 + 5 AS Addition,
20 - 5 AS Subtraction,
20 * 5 AS Multiplication,
20 / 5 AS Division;
Output:
SQL