Use the SQL Server Management Studio to complete this lab. a. Create a SQL script file...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use the SQL Server Management Studio to complete this lab. a. Create a SQL script file named Car Inspection_DB_Script Your_initials.SQL (John Doe would name it Car Inspeciton_DB_Script JD.SQL). When executed this script is to create a database named Car Inspection Your Initials that contains the objects described in this document. 2. Upload and submit the Car Inspection_DB_Script Your Initials.SQL file before the due date. Car Inspection_Your_Initials Design Specifications Facility FacilityIDNo: integer IDENTITY Name: varchar(40) NOT NULL Street: varchar(40) NOT NULL City: varchar(30) NOT NULL County: varchar(30) NOT NULL Zip: varchar(9) NOT NULL Vehicle VIN: char(17) NOT NULL PlateNo: varchar(10) NOT NULL State: char(2) NOT NULL Make: varchar(18) NULL YearManufactured: integer NOT NULL Inspection InspectionNo: integer IDENTITY InspectDate: datetime NOT NULL OdometerReading: decimal(9.2) NOT NULL Issued CertNo:char(12) NULL InspectorCertNo: char(12) NULL VIN: char(17) NOT NULL (FK) FacilityIDNo: integer NOT NULL (FK) ProblemMaster Ok ProblemCode: char(4) NOT NULL Description: varchar(80) NOT NULL Rejectable: char(1) NOT NULL ActionToTake: varchar(80) NULL InspectionProblem Inspection ProblemNo: integer IDENTITY Reject char(1) NOT NULL Tire Pulled: char(4) NULL RepairOrderNo: integer NULL InspectionNo: integer NOT NULL (FK) ProblemCode: char(4) NOT NULL (FK) Additional Design Specifications Facility table FacilityIDNo- In addition to setting it up as a primary key, define it as an integer IDENTITY column. Vehicle table State - Use a check constraint to limit the values allowed (only allow valid two position state codes). Inspection table InspectionNo - In addition to setting it up as a primary key, define it as an integer IDENTITY column. VIN- Use foreign key constraint (references) to enforce the referential integrity. FacilityIDNO - Use foreign key constraint (references) to enforce the referential integrity. OdometerReading - Use a check constraint to limit the range of Odometer Reading values (allow zero to one million). InspectionProblem table Inspection Problem No - in addition to setting it up as a primary key, define it as an integer IDENTITY column. Inspection No - Use foreign key constraint (references) to enforce the referential integrity. Problem Code - Use foreign key constraint (references) to enforce the referential integrity. TirePulled - Use a check constraint to limit the values allowed (only allow FL, FR, RL, RR). Reject - Use a check constraint to limit the values allowed (only allow P, F). ProblemMaster table Rejectable - Use a check constraint to limit the values allowed (only allow Y, N). Use the SQL Server Management Studio to complete this lab. a. Create a SQL script file named Car Inspection_DB_Script Your_initials.SQL (John Doe would name it Car Inspeciton_DB_Script JD.SQL). When executed this script is to create a database named Car Inspection Your Initials that contains the objects described in this document. 2. Upload and submit the Car Inspection_DB_Script Your Initials.SQL file before the due date. Car Inspection_Your_Initials Design Specifications Facility FacilityIDNo: integer IDENTITY Name: varchar(40) NOT NULL Street: varchar(40) NOT NULL City: varchar(30) NOT NULL County: varchar(30) NOT NULL Zip: varchar(9) NOT NULL Vehicle VIN: char(17) NOT NULL PlateNo: varchar(10) NOT NULL State: char(2) NOT NULL Make: varchar(18) NULL YearManufactured: integer NOT NULL Inspection InspectionNo: integer IDENTITY InspectDate: datetime NOT NULL OdometerReading: decimal(9.2) NOT NULL Issued CertNo:char(12) NULL InspectorCertNo: char(12) NULL VIN: char(17) NOT NULL (FK) FacilityIDNo: integer NOT NULL (FK) ProblemMaster Ok ProblemCode: char(4) NOT NULL Description: varchar(80) NOT NULL Rejectable: char(1) NOT NULL ActionToTake: varchar(80) NULL InspectionProblem Inspection ProblemNo: integer IDENTITY Reject char(1) NOT NULL Tire Pulled: char(4) NULL RepairOrderNo: integer NULL InspectionNo: integer NOT NULL (FK) ProblemCode: char(4) NOT NULL (FK) Additional Design Specifications Facility table FacilityIDNo- In addition to setting it up as a primary key, define it as an integer IDENTITY column. Vehicle table State - Use a check constraint to limit the values allowed (only allow valid two position state codes). Inspection table InspectionNo - In addition to setting it up as a primary key, define it as an integer IDENTITY column. VIN- Use foreign key constraint (references) to enforce the referential integrity. FacilityIDNO - Use foreign key constraint (references) to enforce the referential integrity. OdometerReading - Use a check constraint to limit the range of Odometer Reading values (allow zero to one million). InspectionProblem table Inspection Problem No - in addition to setting it up as a primary key, define it as an integer IDENTITY column. Inspection No - Use foreign key constraint (references) to enforce the referential integrity. Problem Code - Use foreign key constraint (references) to enforce the referential integrity. TirePulled - Use a check constraint to limit the values allowed (only allow FL, FR, RL, RR). Reject - Use a check constraint to limit the values allowed (only allow P, F). ProblemMaster table Rejectable - Use a check constraint to limit the values allowed (only allow Y, N).
Expert Answer:
Answer rating: 100% (QA)
Have created all the tables and exported the sql file Attaching that MySQL dump 1013 Distrib 8019 for macos1015 x8664 Host localhost Database Car InspectionDBJD Server version 8019 40101 SET OLDCHARAC... View the full answer
Related Book For
Database Processing Fundamentals, Design, and Implementation
ISBN: 978-0133876703
14th edition
Authors: David M. Kroenke, David J. Auer
Posted Date:
Students also viewed these databases questions
-
Monthly, Val's net earnings are $5,000, and expenses are $4,000. How much should Val have in savings for a 5-month emergency fund?
-
To demonstrate the ability to propose, implement, and query the database. Problem: MovinOn Inc. is a moving company that provides moving and storage services in California, Nevada, and Arizona....
-
How do cognitive-behavioral techniques, mindfulness practices, and resilience training contribute to the mitigation of stressors and the promotion of psychological well-being in high-pressure...
-
A manufacturer of diaphragm seals has identified the cash flows shown for manufacturing and sales functions. Determine the no-return payback period. First cost of equipment,....................$...
-
Under what conditions is using a CDN a bad idea?
-
Write a balanced equation for the synthesis of glucose from acetyl-CoA via the glyoxylate cycle.
-
Find the z-score that has 93.1865% of the distributions area to its left. Find the indicated z-score.
-
Accounting educators are discussing ways to incorporate communication skills, both oral and written, into accounting information systems courses. Why do you think these skills are deemed crucial for...
-
Cherokee Incorporated is a merchandiser that provided the following information: Number of units sold Selling price per unit Variable selling expense per unit Variable administrative expense per unit...
-
1. What is the cost of debt for Sunrise Bakery? 2. What is their cost of equity? 3. What is the WACC? 4. Which cost of capital should be used to evaluate the feasibility of the oven purchase? 5....
-
4) Design for test Give the scheme and explain the operation of a SCAN flip-flop with its various data signals and commands. Reproduce the simplified circuit diagram below and add the insertion of...
-
Jones Company reports the following financial information for the current year: Net Sales $ 30,000 Cost of Goods Sold 9,000 Gross Profit 21,000 Operating Expenses 6,000 Operating Income 15,000...
-
You find that Bank of America is offering to double your savings in 9 years, Citibank's is offering to triple your savings in 16 years, while the US Bank is offering to quadruple your savings in 19...
-
Mt. rogers, With an altitude of 5700 feet, the highest point in Virginia. The angle of elevation from the top of mt. rogers to a plane flying overhead is 33. The straight-line distance from the...
-
You are trying to start a pizza-shop chain. You have a budget of $10,000 to spend on labor and capital. Pizza ovens -- your capital equipment -- requires 2 workers each to operate it. Rental rate of...
-
Moerdyk & Co. is considering Projects S and L, whose cash flows are shown below. These projects are mutually exclusive, equally risky, and not repeatable. If the decision is made by choosing the...
-
Historians believe that cotton clothes were first worn in Options: 1) India 2) Egypt 3) China 4) Europe
-
In Exercises 516, find the focus and directrix of the parabola with the given equation. Then graph the parabola. y 2 = 4x
-
What are the purposes of the InsertCommand and DeleteCommand of a Data Adapter?
-
Explain why two entities are needed to model multivalued attributes.
-
Explain the components in Figure 1-17. FIGURE 1-17 Microsoft Access Compononte of a Microsoft Access Databasa System Form-Processing Application Data Entry Forms Report-Gonorator Application Reports...
-
The Tip Calculator app does not need a Button to perform its calculations. Reimplement this app to use property listeners to perform the calculations whenever the user modifies the bill amount or...
-
Use SecureRandom method ints to generate a stream of 50 random numbers in the range 1 to 999, then filter the resulting stream elements to select only the odd numbers and display the results in...
-
What percentage of the 9,449 survey respondents live in the Eastern part of the county?
Study smarter with the SolutionInn App