Making the following assumptions, since schema is not provided:
- math_majors table has columns named math_credits and sci_credits
- sci_majors has columns named math_credits and sci_credits
If these assumptions are not valid, please share further details via comments so answers can be fine-tuned if necessary. Here are the views:
CREATE VIEW math_view AS
SELECT *, sci_credits / math_credits AS sci_ratio FROM math_majors
CREATE VIEW sci_view AS
SELECT *, math_credits / sci_credits AS math_ratio FROM sci_majors
Get Answers For Free
Most questions answered within 1 hours.