Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a table StudentInfo with following fields: ID First Name Last Name SSN Date of Birth Create a table ClassInfo table: ID Class Name Class

  1. Create a table StudentInfo with following fields:
    1. ID
    2. First Name
    3. Last Name
    4. SSN
    5. Date of Birth
  2. Create a table ClassInfo table:
    1. ID
    2. Class Name
    3. Class Description
  3. Create a table RegisteredClasses table:
    1. StudentID
    2. ClassID

The RegisteredClasses table should have a foreign key relationship to StudentInfo and ClassInfo tables for the respective IDs. Also the IDs in StudentInfo and ClassInfo need to be primary keys.

When you submit the file your email should also contain the following SQL Queries:

  1. Query to show all records from StudentInfo whose first name is John
  2. Query to show all records from StudentInfo whose last name is Doe
  3. Query to delete all records from from ClassInfo where class name starts with ISAM'

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

equency 17 5 8 5 4 2 1 UT 10 17 10

Answered: 1 week ago