Computers and Technology
Computers and Technology, 10.10.2019 21:00, Geo777

Consider the following view, dept_summary, defined on the company database in figure 5.6: create view dept_summary (d, c, total_s, average_s) as select dno, count (*), sum (salary), avg (salary) from employee group by dno; state which of the following queries and updates would be allowed on the view. if a query or update would be allowed, show what the corresponding query or update on the base relations would look like, and give its result when applied to the database in figure 5.6.
a. select * from dept_summary;
b. select d, c from dept_summary where total_s > 1; 238 chapter 7 more sql: complex queries, triggers, views, and schema modification.
c. select d, average_s from dept_summary where c > ( select c from dept_summary where d = 4);
d. update dept_summary set d = 3 where d = 4; e. delete from dept_summary where c > 4;

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, Siebee23
This program will store roster and rating information for a soccer team. coaches rate players during tryouts to ensure a balanced team. (1) prompt the user to input five pairs of numbers: a player's jersey number (0 - 99) and the player's rating (1 - 9). store the jersey numbers in one int vector and the ratings in another int vector. output these vectors (i. e., output the roster). (3 pts) ex: enter player 1's jersey number: 84 enter player 1's rating: 7 enter player 2's jersey number: 23 enter player 2's rating: 4 enter player 3's jersey number: 4 enter player 3's rating: 5 enter player 4's jersey number: 30 enter player 4's rating: 2
Answers: 1
image
Computers and Technology, 22.06.2019 18:00, Geo777
Suppose an astronomer discovers a large, spherical-shaped body orbiting the sun. the body is composed mostly of rock, and there are no other bodies sharing its orbit. what is the best way to categorize this body? a. planet b. moon c. comet d. asteroid
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, tay9122
Jason, samantha, ravi, sheila, and ankit are preparing for an upcoming marathon. each day of the week, they run a certain number of miles and write them into a notebook. at the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day. write a program to them analyze their data. your program must contain parallel arrays: an array to store the names of the runners and a two-dimensional array of five rows and seven columns to store the number of miles run by each runner each day. furthermore, your program must contain at least the following functions: a function to read and store the runners’ names and the numbers of miles run each day; a function to find the total miles run by each runner and the average number of miles run each day; and a function to output the results. (you may assume that the input data is stored in a file and each line of data is in the following form: runnername milesday1 milesday2 milesday3 milesday4 milesday5 milesday6 milesday7.)
Answers: 3
image
Computers and Technology, 23.06.2019 06:00, hilarydodard7099
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
Do you know the correct answer?
Consider the following view, dept_summary, defined on the company database in figure 5.6: create vi...

Questions in other subjects:

Konu
Chemistry, 17.04.2020 05:46
Konu
Chemistry, 17.04.2020 05:47