Question

Question 3 10 pts What errors are in the following create statement? CREATE AUTHORS (AUTHOR NUM CHAR(10) PRIMARY KEY, 1ST NAM
Question 4 10 pts Write the SQL to add the following customer to the Colonial Adventure Tours The customer does not have a ph

this for my class SQL language
0 0
Add a comment Improve this question Transcribed image text
Answer #1

question no 3:

main error

keyword TABLE is missing after CREATE

the first occurence '(' has not been balances i.e parenthesis have not been closed at the end

minor errors

column names appear to have spaces between them

4. Answer:

INSERT INTO contact (plot_no,lname,fname,address,state,pincode) VALUES (127,'Schultz' 'Leah','123 Main Street Stephenville','TX',76401)

note:

if u have to ignore data in a column just dont mention that colums in column names

underlying assumption is that you have a

table name contact

with column names plot_no, lname, fname, address, state, pincode

replace the data in above command to get your desired O/P:

skeleton code is

INSERT INTO contact (column_names ) VALUES (column_values)

Add a comment
Know the answer?
Add Answer to:
this for my class SQL language Question 3 10 pts What errors are in the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT