At your first discussion, Director Coulson wants you to create 3 tables: A gadgets table, a...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
At your first discussion, Director Coulson wants you to create 3 tables: A gadgets table, a student agent's table, and a gadget assignment table. A. Write SQL to create the table of "Gadgets" with the following columns: Gadget ID Gadget Name Whole number, allow 4 digits Text field, variable, maximum of 20 characters Gadget Cost Dollars and cents up to $5,000.00 maximum Gadget's power in Gigawatts Date Obtained Allow 2 digits and one decimal place Date B. Write SQL to create the table of "Gadget Assignments" with the following columns. Note: Like everything else in college, student agents have to pay for their own gadgets! Assignment Number Date the Gadget was assigned Gadget ID of the assigned Gadget Agent ID of the student agent whom the gadget is assigned to. The Name of the Senior Agent who assigned the gadget to the student agent. Gadget Sold Price Whole number, allow 5 digits Date Whole number, allow 4 digits Whole number allow 2 digits Variable but up to 50 characters Dollars and cents up to $10,000.00 maximum C. Write SQL to create the table of "Student Agents" with these columns: Student Agent ID Student Agent First Name Student Agent Last Name Student Agent Initials Students Agent Zip Code Student Agent Active? Whole number, allow 2 digits Up to 10 Characters Up to 25 Characters 3 characters exactly 5 characters exactly 1 character (Y/N) At your first discussion, Director Coulson wants you to create 3 tables: A gadgets table, a student agent's table, and a gadget assignment table. A. Write SQL to create the table of "Gadgets" with the following columns: Gadget ID Gadget Name Whole number, allow 4 digits Text field, variable, maximum of 20 characters Gadget Cost Dollars and cents up to $5,000.00 maximum Gadget's power in Gigawatts Date Obtained Allow 2 digits and one decimal place Date B. Write SQL to create the table of "Gadget Assignments" with the following columns. Note: Like everything else in college, student agents have to pay for their own gadgets! Assignment Number Date the Gadget was assigned Gadget ID of the assigned Gadget Agent ID of the student agent whom the gadget is assigned to. The Name of the Senior Agent who assigned the gadget to the student agent. Gadget Sold Price Whole number, allow 5 digits Date Whole number, allow 4 digits Whole number allow 2 digits Variable but up to 50 characters Dollars and cents up to $10,000.00 maximum C. Write SQL to create the table of "Student Agents" with these columns: Student Agent ID Student Agent First Name Student Agent Last Name Student Agent Initials Students Agent Zip Code Student Agent Active? Whole number, allow 2 digits Up to 10 Characters Up to 25 Characters 3 characters exactly 5 characters exactly 1 character (Y/N)
Expert Answer:
Answer rating: 100% (QA)
Exercise 1 A Create Table Gadgets GadgetID number4 NOT NU... View the full answer
Related Book For
Data Modeling and Database Design
ISBN: 978-1285085258
2nd edition
Authors: Narayan S. Umanath, Richard W. Scammel
Posted Date:
Students also viewed these economics questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
In a remote area of the American Midwest before the railroads arrived, cast iron cookstoves were much desired, but people lived far apart, roads were poor, and heavy stoves were expensive to...
-
The common stock of Fido Corporation was trading at $45 per share on October 15, 2010. A year later, on October 15, 2011, it was trading at $80 per share. On this date, Fidos board of directors...
-
Part 1 Now that she is selling mixers and her customers can use credit cards to pay for them, Natalie is thinking of upgrading her website to include the online sale of mixers and payment by credit...
-
Foto-Fast Copy Shop provides a variety of photocopying and printing services. On June 5, the owner invested in some computer-aided photography equipment that enables customers to reproduce a picture...
-
What are the differences between a release and a covenant not to sue?
-
Repeat Exercise 3.31 for the FSM shown in Figure 3.73. Recall that the s and r register inputs indicate set and reset, respectively. Data From Problem 31 Analyze the FSM shown in Figure 3.72. Write...
-
When It Comes to Eating Away at Democracy, Trump Is a Winner Links to an external site. . Thomas B. Edsall. The New York Times. 8/24/22 (segments of article) 1) After reading the article, how would...
-
Identifytwo (2) additional needs or barriers to participation related to each of the five areas stated; Behavioural or psychological disorders Child at risk of harm Family circumstances and needs,...
-
Your crazy uncle left you a trust that will pay you $29,000 per year for the next 24 years with the first payment received one year from today. If the appropriate interest rate is 6.2 percent, what...
-
The following diagram represents a typical production system. The reservoir condition is undersaturated and P_ is greater than the bubble point pressure during production. The reservoir pressure at...
-
Dione has 3 rolls of pennies containing 50 coins each, 4 rolls of nickels containing 40 coins each, 5 rolls of dimes containing 50 coins each, and 6 rolls of quarters containing 40 coins each. How...
-
What is the IRR of a project with the following cash flows if the firm's WACC is 14%? Year 3% 0% 1% O -1% O 2% O Cash Flow -$23,000 $5,000 $7,500 $8,400 $2,100 1 2 3 4 8 pts
-
The times it takes runners to complete a certain marathon are normally distributed with a mean of 4.6 hours and a standard deviation of 1.1 hours. What is the time for a runner with a z-score of -1.2...
-
Tove purchased a new desk on a payment plan. Three months after purchasing the desk, the balance was $580. Six months after purchasing the desk, the balance was $406. Write an equation that models...
-
1. the difference between Anti-Avoidance and Tax minimisation with examples ? 2. Example of Public Ruling and Private Ruling ?
-
Draw and label the E and Z isomers for each of the following compounds: 1. CH3CH2CH==CHCH3 2. 3. 4. CH,CH2C CHCH2CH Cl CH3CH2CH2CH2 CH CH2CCCH2CI CHCH3 CH3 HOCH CH CCC CH O-CH C(CH
-
Consider the universal relation schema INVENTORY (Store#, Item, Vendor, Date, Cost, Units, Manager, Price, Sale, Size, Color, Location) and the constraint set F {fd1, fd2, fd3, fd4, fd5, fd6, fd7}...
-
The NCAA (National Collegiate Athletic Association) wants to develop a database to keep track of information about college basketball. Each university team belongs to only one conference (e.g., the...
-
Define the term referential integrity constraint. Why is referential integrity important? How is the term foreign key used in the context of referential integrity?
-
The trial balance of Alpha Graphics at October 31, 2007, follows, along with the data for the month-end adjustments. Adjusting data at October 31: a. Unearned service revenue still unearned, \(\$...
-
The unadjusted T-accounts of Investors Brokerage at December 31, 2007 , and the related year-end adjustment data follow. Adjustment data at December 31, 2007. a. Depreciation for the year, \(\$...
-
The unadiusted trial balance of Jen Weaver Insurance at April 30, 2008, follow's on the next page. Adjustment data at April 30, 2008, consist of a. Accrued service revenue, \(\$ 1,600\). b....
Study smarter with the SolutionInn App