Preview

a guide to mysql ch 7

Powerful Essays
Open Document
Open Document
1287 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
a guide to mysql ch 7
CIS 331 – Database Management Using SQL

Week 6 Homework - Due: Week 7

Name ¬¬¬

1. Review Questions – page 207 (A Guide to MySQL – Chapter 7)
Questions 1 - 19 (type out the answers)

2. Premier Products – pages 207 - 209 (A Guide to MySQL – Chapter 7) Exercises 1 – 9 (create in MySQL)
Except where indicated, use MySQL Query Browser to perform each operation and print the results.

3. Henry Books – pages 209 (A Guide to MySQL – Chapter 7) Exercises 1 – 9 (create in MySQL)
Except where indicated, use MySQL Query Browser to perform each operation and print the results.

Estimated Completion Time: ___________ Comments: _______________________________

Lab Assignment Grade: ___________ Verified by Instructor: ___________

Staple this page to all of your homework, all homework must be turned in at the same time. 1. A picture of the database for the user or an application.
2. CREATE VIEW
3. The query used for displaying the correct view
4. The user is only able to see a piece of the database, yet all the information is still located within the tables. It is just not visible.
5. Security of data, simplicity for removing extra information and the ability to better examine data.
6. Ones where permissions have not been granted
7. DROP VIEW
8. GRANT
9. REVOKE
10. A mechanism for increasing efficiency in a database when using queries
11. CREATE INDEX CREATE UNIQUE INDEX
12. DROP INDEX
13. DBMS
14. SHOW TABLES, SHOW COLUMNS
15. SHOW INDEX
16. SHOW GRANTS
17. A rule for the data within the database to prevent incorrect additions.
18. During the CREATE TABLE command, but can be modified using the ADD PRIMARY KEY command
19. ADD FOREIGN KET Premere Products

mysql> CREATE VIEW MAJOR_CUSTOMER (CUSTOMER_NUM, CUSTOMER_NAME, BALANCE, CREDIT_LIMIT, REP_NUM) AS SELECT CUSTOMER_NUM, CUSTOMER_NAME, BALANCE, CREDIT_LIMIT, REP_NUM FROM CUSTOMER WHERE



References: BOOK(PUBLISHER_CODE); Query OK, 33 rows affected (0.05 sec) Records: 33 Duplicates: 0 Warnings: 0

You May Also Find These Documents Helpful

  • Good Essays

    Each query in the script file you will create must be numbered (use --1 comments for numbering) and in order. The SQL for the following exercises should be written using notepad and run in SQL*Plus.…

    • 1559 Words
    • 7 Pages
    Good Essays
  • Good Essays

    SET ServerOutput on > By default, SQL*Plus doesn’t display output from PL/SQL, execute this command can unblock this function…

    • 193 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    5. In process window select check syntax for checking the syntax shown in figure 5. After successful completion of check syntax generate syntax report in…

    • 419 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    A primary key is specified by the selecting the column, right-clicking, then selecting Set Primary Key.…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1330 Unit 9 Final Paper

    • 491 Words
    • 2 Pages

    You can also see the generated script if in case you needed it, for this you have to select the table then select generate change script from context menu. Bellow I have given a screen show which shows the table “user”’s generated script in a dialog window.…

    • 491 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    It parses and also executes the statement Displays the execution plan for the select statement automatically…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    Kudler Fine Food Week 4

    • 284 Words
    • 2 Pages

    Note: Select all of the data from both of your tables before you perform the following.…

    • 284 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    DML, or Data Manipulation Language, contains all the commands for selecting and modifying data. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    unit 6

    • 360 Words
    • 2 Pages

    6) The * in SELECT * clause of an SQL statement is a wildcard for returning all columns in a table.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Learning Team Pos/410

    • 434 Words
    • 2 Pages

    Test the database by means of a query by account number and a report totaling the balance field. This query needs to display all fields (description, short description, and balance) using the account number as the key to the query. The report will display all fields with a break based on the first two digits of the account number and subtotal of the balance field at each break. A grand total of the balance field will be provided at the end of the report.…

    • 434 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hrm Labor

    • 363 Words
    • 2 Pages

    | (TCO 2) Which of the following functions would you use to extract the from your records in the database?…

    • 363 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Database reporting is the results of a formatted database query and will have useful data in it, this will allow you to make better decisions and also make it easier to analysis the data. You’ll be able to find reporting in most business programs, these will be built in tools that will be at the…

    • 3057 Words
    • 9 Pages
    Better Essays
  • Powerful Essays

    Assignment Homework

    • 1073 Words
    • 5 Pages

    | 0 | SELECT STATEMENT | | 35 | 805 | 6 (17)| 00:00:01 |…

    • 1073 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    poop

    • 796 Words
    • 4 Pages

    Staple this page to all of your homework, all homework for week 2 must be turned in at the same time.…

    • 796 Words
    • 4 Pages
    Good Essays
  • Good Essays

    "SQL History and Revisions." 30 Tutorial Books by Herong Yang on Software Programming Technologies. N.p., n.d. Web. 26 Sept. 2012. <http://www.herongyang.com/MySQL/SQL-History-and-Revisions.html>.…

    • 701 Words
    • 3 Pages
    Good Essays

Related Topics