Explain the sql statement errors

Assignment Help Database Management System
Reference no: EM132275789

Assignment

In this assignment, you will delve deeply into Structured Query Language (SQL) statements. You will review existing SQL statements and troubleshoot them. You would need to determine why the given statements are not functioning properly. At the conclusion of this assignment, you should be able to examine and troubleshoot basic SQL statements.

Scenario:

A good friend of yours is starting a fantasy football league and has created a small database to track the team owners, teams, players, and games.

Your friend knows that you are taking a database fundamentals class and has asked you to help. Your friend is not able to figure out why the database is not getting modified in any way. Your friend has given you a copy of the following:

A database schema diagram.

A Microsoft Access database.

The following list of what he or she is trying to do:

Add a new owner named Alice Wonderland with an owner ID of 1205 and a contact e-mail of [email protected]

INSERT INTO Owner

VALUES (1205, 'Wonderland', 'Alice', '[email protected]')

Update player 323's salary to $1,800,000

UPDATE Player

salary = 1800000

WHERE player_id = 323

Display all players whose salary is greater than $1,000,000

SELECT FROM Player

WHERE salary > 1000000

Delete owner Jerry Jones from the database

DELETE FROM Owner

last_name = "Jones" AND first_name = "Jerry"

Update game 0105 with the final score

UPDATE Game

SET home_score = 17,

visitors_score = 23

Note: For this assignment, you will use Microsoft Access 2010 to open the database file provided. If you do not have Microsoft Access 2010, you may download a free trial version of Microsoft Office 2010, which includes Microsoft Access 2010, from the Microsoft website.

Tasks:

Open the Microsoft Access file "Football.accdb" by double-clicking on it. You will see the small database created for the fantasy football league.

Familiarize yourself with the database by opening and examining the data in each table.

There are two queries included with the database that will display some of the information contained in the tables. Double-click each of these to see the results of the query.

Once you are familiar with the database, proceed to the next section.

Examine and Correct the Faulty SQL Statements

For each SQL statement listed above, identify the SQL statement errors.

Once you have identified the errors, rewrite the SQL statements so that they will work.

Note: Take special precautions with Statement 5 above. If you run the statement as it is written above, you will overwrite the scores of all of the existing games in the database.

Execute the Statements

On the Create tab, in the Queries group, click Query Design.

When prompted to add tables, click the Close button.

On the Query Tools Design tab, in the Results group, click on the down arrow below the word View and select SQL View. This is where you will compose your SQL statements. Feel free to type the statements above into the SQL View window and run them (see Step 4) to view the errors.

(Note: Take special precautions with Statement 5 above. If you run the statement as it is written above, you will overwrite the scores of all of the existing games in the database.)

To run your SQL statements against the database, click the Runbutton in the Results group. You will be prompted to confirm that you want to modify data in your database. Click Yes. Close the query and save it as "Statement n", where n is the statement number listed above. For example, you will save the first statement as "Statement 1".

Repeat this process for each SQL statement provided above.

Once you have completed correcting the SQL statements, save and exit the database.

Explain the SQL Statement Errors

Create a Microsoft Word document explaining what was wrong with each of the five originally written SQL statements. Include any additional comments that you might have about the statements.

Reference no: EM132275789

Questions Cloud

Discuss the reality therapy conceptualization : Post your cognitive behavioral, rational emotive behavioral or reality therapy conceptualization. Be sure to support your main post with specific references.
Markets are important to the type of strategy corporation : Explain why efficient markets are important to the type of strategy a corporation chooses. Can you have a strategy in an efficient market? Why or why not?
Major-government sponsored insurance programs : What are the four major-government sponsored insurance programs?
Creating safe and therapeutic environment where change occur : These skills help to initiate rapport with the client, creating a safe and therapeutic environment where change can occur. These skills help the client.
Explain the sql statement errors : A good friend of yours is starting a fantasy football league and has created a small database to track the team owners, teams, players, and games.
What factors are affecting the profitability of toyota : Which of these factors can the company control to improve profitability? What strategy would you suggest to improve the profitability?
Which pm knowledge areas were ignored or underserved : Which PM Knowledge Areas were ignored or underserved? Who is ultimately at fault for the failure of the PCjr?
Price elasticity of uncompensated demand for good : What is the price elasticity of uncompensated demand for good x when px =3?
Determine what makes each framework different from others : Create a Microsoft PowerPoint presentation that explains the major points of three different IT governance models.

Reviews

Write a Review

Database Management System Questions & Answers

  Draw an erd for situation showing entities and attributes

Draw an ERD for this situation showing entities, attributes, identifiers, and relationships with minimum and maximum cardinalities.

  Unified modeling language

Select at least two business systems (such as email and billing) and create a Unified Modeling Language in the form of a sequence diagram showing how they can be integrated. Use Visio or any other standard diagramming that has UML templates. Expor..

  Create a table mainmenu with at least three fields

Create a table MainMenu with at least 3 fields: ID, caption, and form or report to run. Your code (for the button) will dynamically read the caption from the table and assign it to the button

  Write a report about author reflection

The last section of your paper should be titled "Author Reflection", and it should reflect why you selected that particular publication and your critique of the publication examined.

  Design a data warehouse purchases using a star model

Design a data warehouse PURCHASES using a star model (or snowflake). Include facts related to number of products purchased

  Describing the select statement

Data processing needs taking or receiving the data from a source and doing something with it. The same can be said about the transaction processing. When working along with a file, whether it be a fixed length.

  Convert the erd into tables in access

Convert the ERD into tables in Access. Submit screenshots. Use Access tools to generate forms for users to populate the tables.

  What gap in knowledge management does solve

Researchers often make useful datasets available to other researchers through publications at leading conferences. One of these conferences is Mining Software.

  Draw an er diagram that capture information about university

Design and draw an ER diagram that captures the information about the university. Use only the basic ER model here, that is, entities, relationships, and attributes.

  Developing an online database

When a member logs onto the database, all session information, such as IP address, terminal, and user session information, must be recorded for future analysis.

  Create an ERD that represents the entities and attributes

Assessment: Modelling, Create an ERD that represents the entities, attributes, the relationships between entities

  Filter out the records unrelated to our database

Describe all the tables - get table_name, status, num_rows, user_stats in user_tables system vie

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd