Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) Write the DDL commands needed to create a relational database for the schema for the horse racing example shown in Figure 4.8. (b) Make

(a) Write the DDL commands needed to create a relational database for the schema for the horse racing example shown in Figure 4.8.

(b) Make up data and enter records for at least five horses (name one of them "Lucky"), six people (including owners, trainers, and jockeys), and at least one race, with at least five entries.

(c)Write SQL queries for each of the following and execute them:

(i) What are the name and telephone number of the person who trained Lucky?

(ii) What was Lucky's final position in a given race?

(iii) What are the name and address of the jockey who rode the winning horse in a particular race?

Provide your responses in a DDL file (*-schema.sql) and DML file (*-data.sql).

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_2

Step: 3

blur-text-image_3

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

Why is broaching particularly well suited for mass production?

Answered: 1 week ago

Question

1. Define the goals of persuasive speaking

Answered: 1 week ago

Question

=+j Enabling a productive global workforce.

Answered: 1 week ago

Question

=+ Are you interested in creating or

Answered: 1 week ago