Question

How would you create this table using SQL(psql) ?? Create a table for the test scores...

How would you create this table using SQL(psql) ??



Create a table for the test scores data below and populate your table with the data.   

Name Midterm Score

William Smith67

Natalie Lopez85

Brenda Harper94

Adam Petrie85

Jennifer Warnes   56

Joni Mitchell   89

William Ackerman 96

Bing Crosby   74

Jose Carreras   78


0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans) CREATE TABLE TEST_SCORES ( id INTEGER PRIMARY KEY ,Name TEXT,Midterm score INTEGER);

INSERT INTO TEST_SCORES VALUES (1,"William Smith",67);

INSERT INTO TEST_SCORES VALUES (2,"Natalie Lopez",85);

INSERT INTO TEST_SCORES VALUES (3,"Brenda Harper",94);

  INSERT INTO TEST_SCORES VALUES (4,"Adam Petrie",85);

  INSERT INTO TEST_SCORES VALUES (5,"Jennifer Warnes ",56);

  INSERT INTO TEST_SCORES VALUES (6,"Joni Mitchell",89);

  INSERT INTO TEST_SCORES VALUES (7,"William Ackerman ",96);

  INSERT INTO TEST_SCORES VALUES (8,"Bing Crosby",74);

INSERT INTO TEST_SCORES VALUES (9,"Jose Carreras",78);

SELECT * FROM TEST_SCORES;

Add a comment
Know the answer?
Add Answer to:
How would you create this table using SQL(psql) ?? Create a table for the test scores...
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