Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 0 - The statement below is erroneous because select dept name, dept _ id , avg ( salary ) from instructor group by dept
The statement below is erroneous because select dept name, deptid avgsalary from instructor group by deptname;
a avgsalary is invalid
b group by clause is not valid in this query
c misplaced group by clause
d dept name should not be selected
e dept id should not be selected
Which of the following creates a temporary relation for the query on which it is defined?
a where
b from
c with
d select
e none of them
In the query below which one of the following is a temporary relation?
with maxbudget value as select maxbudget from department
select budget from department, maxbudget where department.budget maxbudget.value:
a budget
b department
c value
d select
e maxbudget
Which of the following is not an aggregate function?
a avg
b sum
c with
d min
e max
The command "delete from r where P;
a deletes tuples
b deletes relation
c deletes attribute
d all of them
e none of them
Which one of the following deletes all the entries but keeps the structure of the relation?
a delete from where ;
b delete from instructor where dept name 'Finance';
c delete from instructor where salary between and ;
d delete from instructor;
e none of them
Find the keyword to update the instructor relation by "update instructor salary salary ;
a where
b set
c in
d select
e write
The problem of ordering the update in multiple updates is avoided using
a set
b where
c case
d when
e with
The condition allows a general predicate over the relations being joined.
a with
b using
c set
d on
e where
The query below is equivalent to
select from student join takes usingID;
a select from student inner join takes usingID;
b select from student outer join takes usingID;
c select from student left outer join takes usingID;
d select from student right outer join takes usingID;
e none of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started