What's wrong I took off state then another error occurred. Lab 3-1: Kim Tay Pet Supplies 0
Fantastic news! We've Found the answer you've been seeking!
Question:
What's wrong I took off state then another error occurred.
Transcribed Image Text:
Lab 3-1: Kim Tay Pet Supplies 0 Tasks 8 CENGAGE MINDTAP LO Create the REP table. Add the provided information to a new record in the REP table. Drop the REP table. Check that the KimTay database only has five tables. > > > Submit 0% query.sql X + 1 CREATE TABLE IF NOT EXISTS REP 2 ( 3 rep_id INT NOT NULL, 4 first_name VARCHAR (50) NOT NULL, 5 last_name VARCHAR(50) NOT NULL, 6 address VARCHAR (100) NOT NULL, 7 city VARCHAR(50) NOT NULL, 8 state VARCHAR(2) NOT NULL, 9 postal VARCHAR (5) NOT NULL, 10 cell phone VARCHAR (20) NOT NULL, 11 commission DECIMAL (10,2), 12 13 14 ); 15 rate DECIMAL (10,2), PRIMARY KEY (rep_id) NSERT INT REP (rep_id, first_name, last_name, address, city, cell_phone, state, postal, commission, rate) 17 VALUES (35, 'Fred', 'Kiser', '427 Billings Dr.', 'Cody', 'WY', '82414', '307-555-6309', 0.00', '0.05'); 18 10 SELECT FROM DED. SQL Viewer KimTay 7 X > Terminal + Q Search this course ERROR 1406 (22001) at line 16: Data too long for column 'state' at row 1 X Lab 3-1: Kim Tay Pet Supplies 0 Tasks 8 CENGAGE MINDTAP LO Create the REP table. Add the provided information to a new record in the REP table. Drop the REP table. Check that the KimTay database only has five tables. > > > Submit 0% query.sql X + 1 CREATE TABLE IF NOT EXISTS REP 2 ( 3 rep_id INT NOT NULL, 4 first_name VARCHAR (50) NOT NULL, 5 last_name VARCHAR(50) NOT NULL, 6 address VARCHAR (100) NOT NULL, 7 city VARCHAR(50) NOT NULL, 8 state VARCHAR(2) NOT NULL, 9 postal VARCHAR (5) NOT NULL, 10 cell phone VARCHAR (20) NOT NULL, 11 commission DECIMAL (10,2), 12 13 14 ); 15 rate DECIMAL (10,2), PRIMARY KEY (rep_id) NSERT INT REP (rep_id, first_name, last_name, address, city, cell_phone, state, postal, commission, rate) 17 VALUES (35, 'Fred', 'Kiser', '427 Billings Dr.', 'Cody', 'WY', '82414', '307-555-6309', 0.00', '0.05'); 18 10 SELECT FROM DED. SQL Viewer KimTay 7 X > Terminal + Q Search this course ERROR 1406 (22001) at line 16: Data too long for column 'state' at row 1 X
Expert Answer:
Answer rating: 100% (QA)
1 The error occurred because you tried to insert a record into the REP table with a NULL value in th... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
Write an equation of the line satisfying the given conditions. Write the answer in slope - intercept form. The line passes through the point (2, 13) and has a slope of 4.
-
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...
-
1.) John Kotter wrote Leading Change to respond to a number of trends that have been occurring for over half a century. What are some of these trends and how did he address them in his book? 2.) Why...
-
For the car suspension shown in Figure determine the differential equation, transfer function and state space model. Plot the position of the car and the wheel after the car hits a unit bump (that...
-
After some weeks of use, the pressure in the water carbonating plant mentioned in the previous exercise has fallen to 2.0 atm. Estimate the molar concentration of the soda water it produces at this...
-
Consider the soil profile shown in Figure 9.26: a. Calculate the variations of s, u, and s at points A, B, and C. b. How high should the groundwater table rise so that the effective stress at C is...
-
A survey indicates that for each trip to a supermarket, a shopper spends an average of 43 minutes with a standard deviation of 12 minutes in the store. The lengths of time spent in the store are...
-
Use the following data, compute 1. Cost of goods manufactured for both Garcia Company and Culpepper Company. (Omit the "$" sign in your response.) 2. Cost of goods sold for both Garcia Company and...
-
Choose a product you buy on regular basis (something you buy more than 4x per year). Think about how the supply and demand changes based on things like seasons, price, advertising/media, etc. 1 -What...
-
The following transactions of Jacks Auto Supply occurred in November (Balances as of November 1 are given for general ledger and accounts receivable ledger accounts: Danielson $1,100 Dr.; Wallace...
-
Discuss the characteristics and differences of the Over the Counter (OTC) market and the organized securities exchange. b. By use of relevant examples, explain how liquidity risk, interest rate risk...
-
Wal-Mart Corporation is the largest retailer in the world, with sales in excess of $370 billion dollars in a recent year. Write the audit program for statistical sampling one of the following: If the...
-
A baker buys milk in 1-gallon jugs. Each gallon of milk costs the baker $1.47. What is the baker's cost for 1 cup of milk?
-
You borrowed $1,000 on November 30th and another $1,500 on December 31st. Your arrange with the bank to pay the entire amount on February 15th of the following year. If the interest is 12% simple...
-
Steve's furniture business has cash of $3,575, trade receivables of $2,750, inventory of $21,870 and a bank loan of $5,600. He rents his showroom from the owner of the premises for $12,000 a quarter,...
-
Identify a specific tool or technique from those identified in Chapter 19, and discuss how the tool is used in your current or former place of employment.
-
Explain how arbitration and conciliation can be used to resolve the conflict PUs history department.
-
A new car sold for $31,000. If the vehicle loses 15% of its value each year, how much will it be worth after 10 years?
-
In 2012, Lou has a salary of $54,000 from her job. She also has interest income of $1,700. Lou is single and has no dependents. During the year, Lou sold silver coins held as an investment for a...
-
Sherry rents her vacation home for 6 months and lives in it for 6 months during the year. Her gross rental income during the year is $4,000. Total real estate taxes for the home are $950, and...
-
Yolanda earns $112,000 in 2012. Calculate the FICA tax that must be paid by: Yolanda:.....................Soc.Sec..................$__________...
-
Describe the various errors that can occur in the administration of medications.
-
Discuss why it is important to report significant changes in a patients condition to the treating physician.
-
If a nurse disagrees with a physicians written orders, discuss what action the nurse should take to protect the patients safety.
Study smarter with the SolutionInn App