SlideServe
Menu
Préférences
© SlideServe · v2026

Comprehensive SQL Exercises for Animal Speed Database Creation and Management

tobit avatar
9 diapositives · 259 Views · Jul 15, 2014

This document outlines a series of engaging SQL exercises centered around creating a relational database for animal information, including types, speeds, and speed types. The exercises involve designing a database schema, creating essential tables, inserting records for various animal speeds, and performing updates and deletions. Additionally, users will learn how to execute SQL queries to retrieve specific data from the database. This resource is designed to enhance understanding of SQL and relational databases through practical application.

Comprehensive SQL Exercises for Animal Speed Database Creation and Management - slide 1
01 / 9Comprehensive SQL Exercises for Animal Speed Database Creation and Management
1 / 17

Télécharger la présentation

Comprehensive SQL Exercises for Animal Speed Database Creation and Management
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Introduction to SQLExercises

  2. Exercise 1 • Suppose we have data on: • Animal name • Type (eg: bird, fish, mammal) • Speed (kph/mph) • Speed types(eg running, swimming, flying, diving etc) • Give a relational database schema for a database with this information

  3. Exercise 2 • Write the SQL to create tables for: • animalType(typeID, description) • speedType(typeID, description) • animal(name, animalType) • animalSpeed(animalName, speedType, topSpeed)

  4. Exercise 3 • Write the SQL to: • Insert a speedType with typeID of 1 and description running • Insert aspeedTypewith a typeID of 2 and description diving • Insert an animalSpeedfor a running cheetahof 112kph • Insert an animalSpeed for a diving peregrine falcon of 387.2kph

  5. Exercise 4 • Write the SQL to: • Update the animalSpeed of the cheetah to 113kph • Delete the animalSpeed entry for the peregrinefalcon

  6. Exercise 5 • Write the SQL to: • Select all records and fields from the speedType table • Select all animalNames from the animal table • Select all entries for peregrine falcons from the animalSpeed table • Select all entries for diving peregrine falcons from the animalSpeed table