DBMS (22bce3875)
DBMS (22bce3875)
Q1. Table 1: Students • Create a table named "Students" with the following
columns: Student_ID (primary key) , Name, Email, Phone • Insert the following
data into the "Students" table.
Q2. Table 2: Grades • Create a table named "Grades" with the following columns:
Grade_ID (primary key), Student_ID (foreign key referencing the Students table),
Subject, Grade • Insert the data into
the "Grades" table.
Queries:
1. Write a SELECT statement to retrieve all columns from the "Students" table.
Write a SELECT statement to retrieve all columns from the "Grades" table.
2. Write SELECT statement to retrieve the StudentID who have ‘A’ grade.