Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table. Now write a command that will remove this student from the STUDENT table. How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table? Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases.
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
5-39. Write SQL commands for the following:
-
Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table.
-
Now write a command that will remove this student from the STUDENT table.
-
How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table?
-
Create an SQL command that will modify the name of course ISM 4212 from
Database to Introduction to Relational Databases.
![5-39. Write SQL commands for the following:
a. Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table.
b. Now write a command that will remove this student from the STUDENT table.
c. How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table?
d. Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb5b85aef-beb9-4975-a83b-86c06be455ab%2F7a4453b4-6948-431c-8319-0b0faa83ae67%2Fcxuywei_processed.jpeg&w=3840&q=75)
![Problems and Exercises 5-34 O through 5-45 O are based on the class scheduling 3NF relations along with some sample data shown in Figure 5-11
Not shown in
this figure are data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections. Note that values of the Section No column do
not repeat across semesters.
STUDENT (StudentID, StudentName)
QUALIFIED (FacultyID, CourselD, DateQualified)
StudentID
StudentName
FacultylD
CourselD
DateQualified
38214
54907
Letersky
Altvater
ISM 3112
ISM 3113
9/2008
9/2008
2143
2143
3467
3467
4756
Aiken
Marra
66324
ISM 4212
9/2015
70542
ISM 4930
ISM 3113
9/2016
9/2011
9/2011
4756
ISM 3112
FACULTY (FacultyID, FacultyName)
SECTION (SectionNo, Semester, CourselD)
FacultylD
FacultyName
SectionNo
Semester
CourselD
Birkin
Berndt
Collins
1-2018
1-2018
Il-2018
Il-2018
ISM 3113
ISM 3113
ISM 4212
2143
2712
3467
2713
2714
4756
2715
ISM 4930
COURSE (CourselD, CourseName)
REGISTRATION (StudentID, SectionNo)
CourselD
CourseName
StudentID
SectionNo
ISM 3113
ISM 3112
IŞM 4212
Syst Analysis
Syst Design
Database
Networking
38214
2714
2714
2715
2713
54907
54907
ISM 4930
66324
Figure 5-11 Class scheduling relations (missing ASSIGNMENT)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb5b85aef-beb9-4975-a83b-86c06be455ab%2F7a4453b4-6948-431c-8319-0b0faa83ae67%2F9ecb30p_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)