Preview

Chapter 4

Satisfactory Essays
Open Document
Open Document
784 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Chapter 4
Database System
SQL Practice

1. Write a database description for each of the relations shown, using SQL DDL.
Assume the following attribute data types:

2. Use SQL to define the following view: STU_ID STU_NAME
38214
54907
54907
66324
Letersky
Altvater
Altvater
Aiken

3. Before any row can be entered in the SECTION table, the COURSE_ID to be entered must already exist in the COURSE table. Write an SQL assertion that will enforce this constraint.

4. Write SQL definition commands for each of the following queries:
a. How would you add an attribute, CLASS, to the STUDENT table?

b. How would you remove the IS_REGISTERED table?

c. How would you change the field for FACULTY_NAME from 25 characters to 40 characters?

5. Create an SQL command that will modify the name of course ISM 4212 from
‘Database’ to ‘Introduction to Relational Database’.

6. Write SQL queries to answer which students have an ID number that is less than
50000?

7. Write SQL queries to answer which faculty members have qualified to teach a course since 1993? List the faculty ID, course, and date of qualification.

8. Write SQL queries to answer which students are enrolled in Database and
Networking?

9. Write SQL queries to list the courses available. Group them by course prefix.
1. Write a database description for each of the relations shown, using SQL DDL.
Assume the following attribute data types:

2. Use SQL to define the following view: STU_ID STU_NAME
38214
54907
54907
66324
Letersky
Altvater
Altvater
Aiken

3. Before any row can be entered in the SECTION table, the COURSE_ID to be entered must already exist in the COURSE table. Write an SQL assertion that will enforce this constraint.

4. Write SQL definition commands for each of the following queries:
a. How

You May Also Find These Documents Helpful

  • Good Essays

    There is a label attached to this page. Compare the course code on the label with the course…

    • 2468 Words
    • 10 Pages
    Good Essays
  • Powerful Essays

    Cis518 Assignment 2

    • 776 Words
    • 4 Pages

    In response of student register web page, a blank web form will be displayed for entering the record. All the fields must be filled correctly in order to save the record in web database.…

    • 776 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    chapter 4

    • 2050 Words
    • 9 Pages

    The wall of the alveolus (air sac) in the lung is composed of which type of epithelium? simple squamous epithelium Yes, this single layer of squamous cells is ideal for the diffusion of gases in the lungs.…

    • 2050 Words
    • 9 Pages
    Better Essays
  • Satisfactory Essays

    BU224 unit 1

    • 893 Words
    • 4 Pages

    2. At the top of the template, insert the appropriate information: Your Name, Course Number, Section Number and Date…

    • 893 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    !Save this file in your course folder, and name it with Assignment, the section number, and your first…

    • 309 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 2

    • 514 Words
    • 2 Pages

    I would recommend training and regulations in using the system. I would also address the importance of accurate information reported. The system is used to compile reports that are required by the federal government under various grant programs; therefore, every single employee needs to remember that this is a non-profit organization and in order to operate successfully, we need the funding and resources available to accomplish our mission and goals. I would address and reinforce administrators that their major responsibility is to maintain and monitor the accuracy of data entries. Managers typically are interested in structuring an organizational architecture that will work well and does not depend on specific people filling particular jobs. Individuals come and go and the manager wants an organization that will work well as these changes occur (p. 34). With this being…

    • 514 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 8 econ HW 1

    • 824 Words
    • 10 Pages

    2. At the top of the template, insert the appropriate information: Your Name, Course Number, Section Number and Date…

    • 824 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 4

    • 395 Words
    • 2 Pages

    2. What are the guidelines that must be followed by Web designers when creating a Web site that is intended to meet the specific needs of customers?…

    • 395 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Introduction to Oracle 9i: SQL Name: _______ Junel L Cofino Table of Contents Introduction: I-7 - Relational and Object Relational Database Management System I-10 - System Development Life Cycle I-12 - Relational Database Concept I-20 - Relational Database Properties I-24 - Tables used in the course Chapter 1: Writing Basic SELECT SQL Statements 1-4- Basic Select Statement 1-5- Selecting All Columns 1- 6- Selecting Specific Columns 1-7- Writing SQL Statements 1-8- Column Heading Defaults 1-9- Arithmetic Expressions 1-15- Null Values in Arithmetic Expressions 1-16- Defining A Column Alias 1-17- Using Column Alias 1-18- Concatenation Operator 1-19- Using Concatenation Operator 1-22- Duplicate Rows 1-23- Eliminating Duplicate Rows Chapter 2: Restricting and Sorting Data 2-4-Limiting the Rows Selected 2-5-Using WHERE Clause 2-6- Character Strings and Dates 2-7- Comparison Conditions 2-8- Using Comparison Conditions 2-9- Other Comparison Conditions 2-10- Using the BETWEEN Condition…

    • 1047 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    Course identification Class number Class title Days/Times the class is offered Assigned room for the class The beginning and end dates for the class The number of students enrolled…

    • 559 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    asaaw

    • 280 Words
    • 2 Pages

    registration action was successful. If you do not see this message – or if you…

    • 280 Words
    • 2 Pages
    Satisfactory Essays
  • Best Essays

    Student Name: Student ID number: Course Code: Title of Course: Title of Assessment: Type of Assessment…

    • 3074 Words
    • 13 Pages
    Best Essays
  • Powerful Essays

    dos commands

    • 405 Words
    • 2 Pages

    The syntax of a “List the files which start with A and have the extension of .CPP” is:-…

    • 405 Words
    • 2 Pages
    Powerful Essays
  • Satisfactory Essays

    Energy Management

    • 9406 Words
    • 38 Pages

    COURSE CODE EY9003 EY9008 EY9009 EY9010 EY9011 EY9012 EY9013 EY9014 EY9015 EY9016 EY9018 EY9020 EY9022 EY9256 IC9262 EY9001 EY9002 TE9223 TE9252 TE9258 TE9270 TE9271 TE9272…

    • 9406 Words
    • 38 Pages
    Satisfactory Essays
  • Powerful Essays

    Corruption

    • 38522 Words
    • 155 Pages

    To insert a new record again you have to type entire insert command, if there are lot of…

    • 38522 Words
    • 155 Pages
    Powerful Essays