Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want you to answer question 5-6-7-8-9-10-11-12-13 Homework 3. SOL Due on Write the following SQL commands in a hw3.sql file. Make sure you have

I want you to answer question 5-6-7-8-9-10-11-12-13 image text in transcribed
Homework 3. SOL Due on Write the following SQL commands in a hw3.sql file. Make sure you have set echo on in the beginning of the file. Also, spool your output to hw3.txt. Run hw3.sql until there is no error. Turn in a print out of the hw3.txt You are encouraged to use comments to clearly label each question. You should start by wrg,sving, and running a few commands, then gradually add more commands to your 1. Write an SQL command to delete a table named STUDENTS 2. Write an SQL command to create the STUDENTS table, with the following columns: SSN Lastname char(10) Firstname char(10) char(10) number(3,2) GPA DOB date 3. Write SQL commands to insert the following 4 student records into the STUDENT table. 101 102 103 104 Major IS FIN HRM IS GPA DOB 3.41 5/18/92 3.25 3/11/90 2.82 10/11/91 2.78 4/4/91 Smith Smith 4. Write an SQL command to display all records of the STUDENTS table. 5. Write an SQL command to insert a new student record. This student's SSN is 105. Her last name is Lee and first name is Jamie'. Her birthday is Api , 1983. We have no information of her major and GPA, so leave them 6. Write an SQL command to save all records. 7. Write an SQL command to display only the last name and first name of all students. 8. Write an SQL command to display the last name and first name of all students whose GPA is higher than 3 9. Write an SQL command to display all columns of students whose major is not 'IS 10. Write an SQL command to display students whose first name start with the letter and last name start with the letter "S" 11. Write an SQL command to change student 101's major to FIN 12. Write an SQL command to undo the change of 101's major (that is, student 101's major is still IS.) 13. Write one SQL code to change student 102's major to MKT and GPA to 3.3. 27

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems For Integration Of Media And User Environments 98

Authors: Yahiko Kambayashi, Akifumi Makinouchi, Shunsuke Uemura, Katsumi Tanaka, Yoshifumi Masunaga

1st Edition

9810234368, 978-9810234362

More Books

Students also viewed these Databases questions

Question

mple 10. Determine d dx S 0 t dt.

Answered: 1 week ago

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago