Give an example of a dataset that would help catch this part

Assignment Help Basic Computer Science
Reference no: EM131057991

Testing SQL queries: To test if a query specified in English has been correctly written in SQL, the SQL query is typically executed on multiple test databases, and a human checks if the SQL query result on each test database matches the intention of the specification in English.

a. In Section 3.3.3 we saw an example of an erroneous SQL query which was intended to find which courses had been taught by each instructor; the query computed the natural join of instructor, teaches, and course, and as a result unintentionally equated the dept name attribute of instructor and course. Give an example of a dataset that would help catch this particular error.

b. When creating test databases, it is important to create tuples in referenced relations that do not have any matching tuple in the referencing relation, for each foreign key. Explain why, using an example query on the university database.

c. When creating test databases, it is important to create tuples with null values for foreign key attributes, provided the attribute is nullable (SQL allows foreign key attributes to take on null values, as long as they are not part of the primary key, and have not been declared as not null) Explain why, using an example query on the university database.
Hint: use the queries from Exercise 4.1.

Reference no: EM131057991

Questions Cloud

Advantages and disadvantages of autocratic leadership : What are the advantages and disadvantages of autocratic leadership? Cite an example from your own experience that describes autocratic leadership.
Which will be depreciated straight-line to zero book value : $2.46 million which will be depreciated straight-line to a zero book value over the 10-year life of the project. At the end of the project the equipment will be sold for an estimated $300,000. The project will not directly produce any sales but will ..
Assumption of risk or contributory negligence : Assume that the jurisdiction does not recognize assumption of risk or contributory negligence. The jurisdiction does recognize the defense of comparative negligence.
How to calculate the cost of good sold and the gross profit : Kokomochi plans to spend $5 million on advertising compaign this year. The ads are expected to boost sales of the Mini Mochi Munch by $12 million this year and by $8 million next year. Calculate the incremental earnings associated with the advertisin..
Give an example of a dataset that would help catch this part : When creating test databases, it is important to create tuples in referenced relations that do not have any matching tuple in the referencing relation, for each foreign key. Explain why, using an example query on the university database.
Taxes per year in order processing costs : Your firm is contemplating the purchase of a new $630,000 computer-based order entry system. The system will be depreciated straight-line to zero over its five-year life. It will be worth $70,000 at the end of that time. You will save $260,000 before..
Articulating your business problem statement : In the beginning of a design for study, a qualitative researcher should start by introducing a business problem statement. The objective of this statement is to provide the motivation for studying a particular area of interest. A business problem ..
Selecting a software vendor : Name at least five important factors to be considered in selecting a software vendor. For each factor, explain why it should be considered and potential consequences of not considering the factor in selection of a software vendor.
What is the company equity value and value per share : You are valuing a technology company whose enterprise value is $800 million. The company has no debt, but considerable employee options (10 million in total). Based on option pricing models, you value the options at $6.67 per option. If the company h..

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Number of correct responses

The percentage score on a test varies directly as the number of correct responses. Rita answered 24 questions correctly and earned a score of 60%. What would her percentage score have been if she had answered 34 questions correctly?

  Identify a current trend in technology for improving global

Identify a current trend in technology for improving global business

  Balancing function and fashion

Error messages are a key part of an overall interface design strategy of guidance for the user. Discuss strategies to ensure integrated, coordinated error messages that are consistent across an application.

  Modern religion and technology

Would you agree that science is a modern religion and technology its gift? Did Dr. Frankenstein cross some metaphysical line when he created his monster?

  Windows server deployment proposal

Windows Server Deployment Proposal

  Explain the roles of computer forensics expert

Explain the roles of computer forensics expert and computer security expert. You should include the following: Which specific positions (job titles) are in demand within business organizations?

  Determine the maximum angle ? for the system

determine the maximum angle θ for the system to remain in equilibrium, regardless of the weight of cylinder D. Links AC and BC have negligible weight and are connected together at C by a pin.

  Why is identification of risks

Why is identification of risks, through a listing of assets and their vulnerabilities, so important to the risk management process?

  Convert the number as started decimal

Convert the following number as started (a)decimal 2459 to hexadecimal (b)Character X and x to ASCII and Unicode

  Write a program that translates a name into pig latin

Use the pig latin rule of moving the first letter to the end of the word and adding "ay". Output the pig latin name on the screen. The name "Walt" translates into pig latin Altway. Karen to Arenkay, Steve to Tevesay.

  Calculate the frequency response of the circuit

A continuous-time LTI system has the input x(t) and the impulse response h(t) as shown below. Solve for and sketch the system output y(t) for all time. An automobile with poor shock absorbers is observed bouncing along after striking a speed bump...

  Account balance after depositing the check

Your bank account was overdrawn by $14. You then were charged a $35 overdraft fee. The bank applies a $5 fee for each day your account is overdrawn. Your account is overdrawn for 3 days when you deposit a check for $256. What is your account balance ..

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