๐ Step-by-Step SQL Assignment Execution (Oracle Live SQL)
In this post, I am sharing my DBMS SQL Assignment execution using Oracle Live SQL.
I have included explanations and screenshots for each step to make the process clear and easy to follow.
1๏ธโฃ. Create Faculty Table (DDL)
The first task was to create a Faculty table with the following fields:
FacultyID โ Primary Key
FacultyName โ Not Null
Dept โ Department name
Email โ Unique constraint
2๏ธโฃ. Insert Students Data (DML)
Next, I inserted three students into the Students table, each belonging to different departments.
3๏ธโฃ Alter Table โ Add Phone Number
I modified the Students table to add a new column PhoneNo.
This column ensures that phone numbers are 10 digits long.
๐ธ 

4๏ธโฃ Define Constraints on Courses Table
The Courses table was updated with a constraint to make sure that Credits cannot be less than 1 or more than 5.
5๏ธโฃ SELECT with Functions
I displayed the student names in uppercase and also calculated the length of their email IDs.
 
 
              




 
    
Top comments (0)