Answered step by step
Verified Expert Solution
Link Copied!

Question

00
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),

  1. 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.
    1. Use your query to determine if student 3729 can enroll in the course.
    2. Can student 5430 enroll in the course?
    3. 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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions