Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A student wants to enroll in Math 170 Discrete Mathematics. If the student has already taken the course and passed (grade of 2.0 or better),
- A student wants to enroll in Math 170 Discrete Mathematics. If the student has already taken the course and passed (grade of 2.0 or better), or taken and failed the course 2 times, they cannot enroll again.
- Use your query to determine if student 3729 can enroll in the course.
- Can student 5430 enroll in the course?
- Include the sql statement you used in your answer here.
schema:
drop schema if exists ex1 ;
create schema ex1;
use ex1;
create table student( studentid int primary key, lastname char(25), firstname char(25), gpa double, major char(25), totalcredits int); create table course( courseid int primary key, name char(25), section char(4), department char(25), instructor char(25)); create table enrollment( studentid int, courseid int, semester char(25), grade char(5), units int);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started