subject
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;

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, Svetakotok
Ineed on my history if anyone can check out the last few questions i posted and i will be posting !
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, katherinemoreno353
Write a program to analyze student’s scores. each student’s id and 4 original test scores are saved in the attached file “student_id_scores. txt”. assume there are exactly 15 students in the class.• the program first opens the file, reads student’s ids and scores from the file and saves them in two arrays: o create a one-dimensional string array “ids” to store the student’s ids. o create a (parallel) two-dimensional int array “scores” to store student’s original test scores. this array has 5 columns, the original 4 test scores should be saved in the first 4 columns, and the last column will be used to save the average score after the calculation in next step.• the program then retrieves test scores from the array “scores”, calculates average score and determines the final letter grade based on the rules in the table below for each student. assume average score is integer value. average score = (score1 + score2 + score3 + score4) / 4average score letter grade90 ~ 100 a80 ~ 89 b70 ~ 79 c60 ~ 70 d0 ~ 60 f• the average score should be saved back in the 5th column of “scores” array.• create a new parallel one-dimensional char array “grades” to save each student’s letter grade.• program also needs to find the number of a, number of b, number of c, number of d and number of f grade. as well as the highest, lowest and average score of the class.• finally, program will display all of the original scores and all results on the computer screen using the format shown as the sample output below.• the program must contain at least the following functions: (1) a function “getscores” to read and store data into “ids” and “scores” arrays.(2) a function “analyzescores” to calculate student’s average score, determine letter grade, get the number of a, b, c, d and f, find the highest, lowest and average score of the class.(3) a function “displayresults” to display all of the results
Answers: 3
image
Computers and Technology, 24.06.2019 22:00, apexdude2020
Need getting google account back, big issue
Answers: 2
image
Computers and Technology, 25.06.2019 04:10, asdasddas776
This might be a bit off-topic, but i'm having trouble with a certain arg made by game theory. if there are any theorists out there that wanna , it would be appreciated!
Answers: 2
You know the right answer?
Consider the following view, dept_summary, defined on the company database in figure 5.6: create vi...

Questions in other subjects:

Konu
Mathematics, 29.10.2020 01:20
Konu
Mathematics, 29.10.2020 01:20
Konu
Physics, 29.10.2020 01:20
Konu
Mathematics, 29.10.2020 01:20