Consider the following description of the WORKER table Null Field W_ID NO NO YES NO NO...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Consider the following description of the WORKER table Null Field W_ID NO NO YES NO NO W_FNAME W_ADDRESS W_HOURS W_RATE Use Structured Query Language (SQL) to compose the following queries: 1. Create the table WORKER, specifying the same data types, constraints as indicated in the above description. Choose the attribute W_ID as the primary key of the table. ANSWER: W_ID 1 2 3 4 Type integer varchar (20) char (25) integer decimal (18, 2) 2. Assume the WORKER table is created and filled with the following records: W_SDDRESS W_HOURS SHARJAH DUBAI ABU DHABI AJMAN W_FNAME Ahmed Abdullah Mohammed Fadi Key PRIMARY Key 12 30 22 15 24 W_RATE 200.00 150.00 650.00 850.00 Write an SQL query to add a new record to the table with the following data: W_HOURS W_ID 5 W_FNAME Tariq W_SDDRESS SHARJAH W_RATE 250.00 Consider the following description of the WORKER table Null Field W_ID NO NO YES NO NO W_FNAME W_ADDRESS W_HOURS W_RATE Use Structured Query Language (SQL) to compose the following queries: 1. Create the table WORKER, specifying the same data types, constraints as indicated in the above description. Choose the attribute W_ID as the primary key of the table. ANSWER: W_ID 1 2 3 4 Type integer varchar (20) char (25) integer decimal (18, 2) 2. Assume the WORKER table is created and filled with the following records: W_SDDRESS W_HOURS SHARJAH DUBAI ABU DHABI AJMAN W_FNAME Ahmed Abdullah Mohammed Fadi Key PRIMARY Key 12 30 22 15 24 W_RATE 200.00 150.00 650.00 850.00 Write an SQL query to add a new record to the table with the following data: W_HOURS W_ID 5 W_FNAME Tariq W_SDDRESS SHARJAH W_RATE 250.00
Expert Answer:
Related Book For
Using Microsoft Excel and Access 2016 for Accounting
ISBN: 978-1337109048
5th edition
Authors: Glenn Owen
Posted Date:
Students also viewed these databases questions
-
What the Act requires of licensees in reapect of the availability of food in newzealand?
-
Use the following description of the operations of the RC_Charter2 Company to complete this exercise. ¢ The RC_Charter2 Company operates a fleet of aircraft under the Federal Air Regulations...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The lease agreement and related facts indicate the following: a. Leased equipment had a retail cash selling price of $300,000. Its useful life was five years with no residual value. b. The lease term...
-
For the pre-deposition heat treatment of a semiconducting device, gallium atoms are to be diffused into silicon at a temperature of 1150(C for 2.5 h. If the required concentration of Ga at a position...
-
Bobs lawn-mowing service is a profit-maximizing, competitive firm. Bob mows lawns for $27 each. His total cost each day is $280, of which $30 is a fixed cost. He mows 10 lawns a day. What can you say...
-
Compare and contrast different theories of social stratification.
-
(Components of internal control) Internal controls can be categorized using the following framework. 1. Control environment 2. Risk assessment 3. Information and communication 4. Control activities...
-
Research and explore the cutting-edge energy below. Zero-point Energy Helpful links: https://www.scientificamerican.com/article/follow-up-what-is-the-zer/ http://www.calphysics.org/zpe.html...
-
Alan and Angel Young are both 36 years old. Mr. Young recently accepted a new job making $93,000 a year and Mrs. Young is currently unemployed. The Youngs have two children (ages 4 and 2), a dog, and...
-
What effect does height have on weight for a sample of 8 children? X ( Height in inches ) Y ( Weight in pounds ) X 2 Y 2 XY 60 99 48 70 55 80 55 79 51 84 52 90 49 82 50 79
-
You own a small networking startup. You have just received an offer to buy your firm from a large, publicly traded firm, JCH Systems. Under the terms of the offer, you will receive 1 million shares...
-
The natural rate of unemployment a. The Phillips curve is \(\pi_{t}=\pi_{t}^{e}+(m+z)-\alpha u_{t}\). Rewrite this relation as a relation between the deviation of the unemployment rate from the...
-
Roybus, Inc., a manufacturer of flash memory, just reported that its main production facility in Taiwan was destroyed in a fire. While the plant was fully insured, the loss of production will...
-
Your firm is thinking of expanding. If you invest today, the expansion will generate $11 million in FCF at the end of the year and will have a continuation value of either $145 million (if the...
-
Suppose the market portfolio is equally likely to increase by 20% or decrease by 13%. a. Calculate the beta of a firm that goes up on average by 39% when the market goes up and goes down by 29% when...
-
Escherichia coli in human intestine synthesizes: (a) Vitamin B and D (b) Vitamin B and C (c) Vitamin A and K (d) Vitamin B and K
-
On 1 July 2021, Croydon Ltd leased ten excavators for five years from Machines4U Ltd. The excavators are expected to have an economic life of 6 years, after which time they will have an expected...
-
Identify the five variables in present value problems.
-
Kellys Boutique is contemplating several means of financing their acquisition of $200,000 in special equipment. One alternative is to borrow $200,000 from a local bank for 10 years at 12 percent per...
-
Why are list box controls used on a form?
-
For methanol synthesis reaction \[ \mathrm{CO}(\mathrm{g})+2 \mathrm{H}_{2}(\mathrm{~g}) ightleftharpoons \mathrm{CH}_{3} \mathrm{OH}(\mathrm{g}) \] Using a feed mixture of carbon monoxide and...
-
The L2 steel blade of the band saw wraps around the pulley having a radius of \(12 \mathrm{in}\). Determine the maximum normal stress in the blade. The blade has a width of 0.75 in. and a thickness...
-
An L2 steel strap having a thickness of 0.125 in. and a width of \(2 \mathrm{in}\). is bent into a circular arc of radius \(600 \mathrm{in}\). Determine the maximum bending stress in the strap.
Study smarter with the SolutionInn App