1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pickupchik [31]
3 years ago
5

Please use the tables in the flights database. Your deliverable should include a single SQL query that I can run against a "fres

h copy" of the tables in the flights database.
1. Write a script to select all data from the planes table.
2. Update the planes table so that rows that have no year will be assigned the year 2013. (missing values will display as NULL).
3. Insert a new record to the planes table with the following values:
Tailnum: N15501
Year: 2013
type: Fixed wing single engine
Manufacturer: BOEING
Model: A222-101
Engines: 3
Seats: 100
Speed: NULL (notice this is not a text value but truly the absence of any value: "empty". As such, don't use single or double quotes around NULL when inserting this value).
Engine: Turbo-fan
4. Delete the newly inserted record on step 3.
Computers and Technology
1 answer:
Arlecino [84]3 years ago
5 0

Answer:

The scripts are:

1. SELECT * FROM planes

2. UPDATE planes SET YEAR = 2013 WHERE year IS NULL

3. INSERT INTO planes (Tailnum, Year, type, Manufacturer, Model, Engines, Seats) VALUES ('N15501',2013,'Fixed wing single engine', 'BOEING', 'A222-101',3,100,NULL)

4. DELETE FROM planes WHERE Tailnum = 'N15501'

Explanation:

1. SELECT * FROM planes

To select all from a table, use <em>select * from [table-name]. </em>In this case, the table name is planes

2. UPDATE planes\ SET YEAR = 2013 WHERE year IS NULL

To do this, we use the update query which is as follows:

<em>UPDATE [table-name] SET [column-name]= [value] WHERE [column] IS NULL</em>

So: the above query will update all YEAR column whose value is NULL to 2014

3. INSERT INTO planes (Tailnum, Year, type, Manufacturer, Model, Engines, Seats) VALUES ('N15501',2013,'Fixed wing single engine', 'BOEING', 'A222-101',3,100,NULL)

To insert is very straight foward.

The syntax is:

INSERT INTO [table-name] (column names) VALUES (values)

4. DELETE FROM planes WHERE Tailnum = 'N15501'

To do this, we use the update query which is as follows:

<em>DELETE FROM [table-name] WHERE [column] = [value]</em>

So: The above query will delete the entry in (3) above

You might be interested in
A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n)__
azamat

A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n) <u>information technology</u> systems degree.

<h3>What is information technology meaning?</h3>

Information technology (IT) is known to be a term that connote the use of any form of computers, storage, as well as networking and other forms of physical devices, infrastructure and processes to be able to make, process, save as well as, secure and pass all kinds of electronic data.

Therefore, A student who wants to work with computers but does not have a strong aptitude for math might find a good fit by pursuing a(n) <u>information technology</u> systems degree.

Learn more about information technology from

brainly.com/question/25110079

#SPJ1

strong aptitude for math might find a good fit by pursuing a(n)____ systems degree.

8 0
2 years ago
Two technicians are discussing MAP sensors. Technician A says that the MAP sensor should be replaced if anything comes out of th
anygoal [31]

Answer:

Both are correct.

Explanation:

Both technicians are correct in this scenario. Technician A point of view is correct as well as technician B.

3 0
3 years ago
What is one distinguishing feature of Italian opera buffa in comparison to comic opera of other countries?
vodka [1.7K]

Answer:

It is sung throughout.

Explanation:

5 0
3 years ago
If your vehicle has fuel injection and the engine is cold,
olga nikolaevna [1]
D. Press the accelerator to the floor once and release it.
6 0
3 years ago
What is the music form for the song "Sunflower?
Leni [432]

Answer:

spiderman i believe. by post malone

Explanation:

4 0
3 years ago
Read 2 more answers
Other questions:
  • The overall purpose of CSS is to modify the way web pages look without modifying the underlying HTML code. way tables render in
    12·2 answers
  • A(n) __________ is a device or software that is designed to block unauthorized access while allowing authorized communications.
    13·1 answer
  • To achieve balance—that is, to operate an information system that satisfies the user and the security professional—the security
    13·1 answer
  • Which type of operating system is usually used in personal computers
    13·1 answer
  • Your company wants to use an IoT device but wants to make sure it does not interfere with other RF devices that use the 2.4 GHz
    13·1 answer
  • 2x + 3y = 11<br>y = x-3​
    8·2 answers
  • Work-based learning can be defined as educational experiences that focus on
    11·1 answer
  • Write a computer program that determines how many grades are between 0 and 19.
    8·1 answer
  • What should the Dhruv consider when connecting to the Internet in a public place? Select all that apply.
    11·1 answer
  • Find the name of the professor with the maximum percentage of students that failed his course.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!