Write the sequence of commands required to update the CHAR_WAIT_CHG attribute values in the CHARTER table. (Hint: Use either an updatable view or a stored procedure.)
Write the sequence of commands required to update the CHAR_FLT_CHG_HR attribute values in the CHARTER table. (Hint: Use either an updatable view or a stored procedure.)
Write the command required to update the CHAR_FLT_CHG attribute values in the CHARTER table.
Write the command required to update the CHAR_TAX_CHG attribute values in the CHARTER table.
Write the command required to update the CHAR_TOT_CHG attribute values in the CHARTER table.
Modify the PILOT table to add the attribute shown in the following table.
Solution
1)
Updation of the record .
Syntax :
Update TABLE_NAME
SET COLUMN = [QUERY or 'VALUE']
WHERE CONDITION;
Updation of the table Charter
Update Charter
Set CHAR_WAIT_CHG =
( SELECT MOD_WAIT_CHG FROM MODEL,AIRCRAFT WHERE MODEL.MOD_CODE = AIRCRAFT.MOD_CODE
and AIRCRAFT.AC_NUMBER = CHARTER.AC_NUMBER);
2)
Update CHARTER
Set CHAR_FLT_CHG_HR =
( SELECT MOD_CHG_MILE FROM MODEL,AIRCRAFT WHERE MODEL.MOD_CODE = AIRCRAFT.MOD_CODE
and AIRCRAFT.AC_NUMBER = CHARTER.AC_NUMBER);
3)
UPDATE CHARTER
SET CHAR_FLT_CHG:=CHAR__HOURS_FLOWN*CHAR_FLT_CHG_HR;
4)
UPDATE CHARTER
SET CHAR_TAX_CHG := CHAR_FLT_CHG*0.08;
5)
UPDATE CHARTER
SET CHAR_TOT_CHG = CHAR_FLT_CHG + CHAR_TAX_CHG;
6)
ALTER TABLE PILOT
ADD PIL_PIC_HRS NUMBER;
Feel free to reach out regarding any queries . And please do rate the answer . Thank you .
Write the sequence of commands required to update the CHAR_WAIT_CHG attribute values in the CHARTER table....
Problems and Exercises 1 through 9 are based on the dass scheduling
3NF relations along with some sample data shown in Figure 6-11.
Not shown in this figure are data for an ASSIGNMENT relation,
which represents a many-to-many relationship between faculty and
sections.4. Write SQL data definition commands for each of the following queries:a. How would you add an attribute, Class, to the Student
table?b. How would you remove the Registration table?c. How would you change the FacultyName field from...
3. (3 points) Write the sequence of MATLAB commands that you would use to produce a plot depicting the rotini-like surface defined by: for radii (r) going from 0 to 1 (21 values) and angles (θ) going from-10π to 10π (501 values). Your sequence of commands should define rectangular grids of radii and angles, transform them to cartesian coordinates (x.y), compute z, and plot the result as a solid surface, without gridlines (use shading command), with equally scaled x, y...
2. Using to Figure 6-11 page 283 of your text book (Modern Database Management, 11th Edition Author: Jeffrey A. Hoffer ; Ramesh Venkataraman ; Heikki Topi VBID: 9781323027226 , write SQL data definition commands for each of the following queries: a) How would you add an attribute, Class, to the Student table? b) How would you remove the Registration table? c) How would you change the FacultyName field from25 characters to 40 characters? Modern Database Management, 11th Edition Author: Jeffrey...
Question 32 Which view would you use to see only the tables you have created ALL_TABLES USER_TABLES USER_TABS ALL_OBJECTS 2 points Question 33 Which script will you execute to create new user DAVE and give him the ability to connect to the database and the ability to create tables, sequences, and procedures? CREATE USER dave IDENTIFIED BY dave18; GRANT create table, create sequence, create procedure TO dave; CREATE USER dave IDENTIFIED BY dave18; GRANT create session, create table, create sequence,...
2. Write a script that implements the following design: In the Downloads table, the user_id and product_id columns are the foreign keys. Create these tables in the ex schema. Create the sequences for the user_id, download_id, and product_id columns. Include a PL/SQL script to drop the table or sequence if it already exists. Include any indexes that you think are necessary. 3. Write a script that adds rows to the database that you created in exercise 2. Add two rows...
DROP TABLE EMPLOYEE;
DROP TABLE JOB;
DROP TABLE EMP;
DROP TABLE EMP_1;
DROP TABLE EMP_2;
CREATE TABLE JOB(JOB_CODE CHAR (3) PRIMARY KEY, JOB_DESCRIPTION
VARCHAR (20) NOT NULL,JOB_CHG_HOUR NUMBER (5,2) NOT
NULL,JOB_LAST_UPDATE DATE NOT NULL);
INSERT INTO JOB
VALUES('500','Programmer','35.75','20-Nov-2017');
INSERT INTO JOB VALUES('501','System
Analyst','96.75','20-Nov-2017');
INSERT INTO JOB VALUES('502','Database
Designer','125.00','24-Mar-2018');
CREATE TABLE EMPLOYEE(EMP_NUM CHAR (3) PRIMARY KEY,EMP_LNAME
VARCHAR (15) NOT NULL,EMP_FNAME VARCHAR (15) NOT NULL, EMP_INITIAL
CHAR (1),EMP_HIREDATE DATE NOT NULL,JOB_CODE CHAR (3), EMP_YEARS
NUMBER (2),FOREIGN KEY (JOB_CODE) REFERENCES JOB (JOB_CODE));
INSERT...
LINUX QUESTIONS (dont have to display output, I will be running these commands myself to check the output) Display the command(s) used to do the following: create an empty file called history by using just a redirection operator. Verify and show. Show/verify all results (i.e., all commands and their corresponding outputs). Wait 1 minute or more and then display the command(s) used to do the following: change the timestamp on the history file you just created. Verify/display the change. Show/verify...
write out the appropriate commands for each step using CMD 1, Create a new file named, Work1.txt, in the directory HW1a, with the use of the ECHO command with the following sentence 2, Copy the file Work1.txt from directory HW1a to directory HW1aa. 3, Rename the copied file Work1.txt in directory HW1aa to Work2.txt 4, Move the directory HW1aaa to the directory HW1a and rename it HW1ab 5,Move the file Work1.txt from directory HW1a to directory HW1aa 6, Copy both...
Please write the commands in SQL Developer following the instructions below. Click on Write Submission and copy and paste the code into the submission box for this assignment. This assignment should be completed by November 16. Add rows to the EMPLOYEES table from the last assignment with the following values: 123456789,Kitt,Eartha,Mae,'',222 Mt Vernon Rd,North,SC,29112 456789012,Gibson,Althea,NULL,26-JAN-1942,15 Adger Rd,Silver,SC,29102 789123456,Gillespie,John,Birks,21-OCT-1939,15 Third St,Cheraw,SC,29520 345678901,McNair,Ronald,Ervin,1-JUN-1978,36 Wilcox St,Lake City,SC,29650 678901234,Marion,Francis,NULL,15-JUN-1788,1 Pond Bluff Dr,Eutawville,SC,29048 Modify the ZIP code for Ronald McNair to 29560 Change the hire...
1. Write the command to set the following permissions on a script file with the following name; myscript.sh Owner: full access; read, write and execute Group: read and execute Other: no access 2. Create a new file with the name "myfirstscript.sh". Write a new script that performs the following tasks in sequence; Display the usernames of currently logged in users; sorted from a-z HINT: You will need to filter the output of the whocommand Display a list of usernames who...