Question
Employee (name, sex, salary, deptname)
Consider the following SQL query
Select deptname from Employee Where sex = ‘M’ group by deptname having avg (salary) > {select avg (salary) from Employee}
Output of the given query corresponds to
a.
Average salary of employee more than average salary of the organization.
b.
Average salary less than average salary of the organization.
c.
Average salary of employee equal to average salary of the organization.
d.
Average salary of male employees in a department is more than average salary of the organization.
Posted under UGC NET computer science question paper DBMS
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. The employee information of an Organization is stored in the relation: Employee (name, sex, salary, deptname) Consider the following SQL query Select deptname from...
Similar Questions
Discover Related MCQs
Q. For a database relation R(a, b, c, d) where the domains of a, b, c, d include only the atomic values. The functional dependency a → c, b → d holds in the following relation
View solution
Q. Match the following:
a. Foreign keys i. Domain constraint
b. Private key ii. Referential integrity
c. Event control action model iii. Encryption
d. Data security iv. Trigger
Codes:
a b c d
View solution
Q. In multiuser database if two users wish to update the same record at the same time, they are prevented from doing so by
View solution
Q. What deletes the entire file except the file structure ?
View solution
Q. Which command is the fastest among the following ?
View solution
Q. B+ tree are preferred to binary tree in Database because
View solution
Q. A Transaction Manager is which of the following ?
View solution
Q. A B+ tree index is to be built on the name attribute of the relation STUDENT. Assume that all students names are of length 8 bytes, disk block are of size 512 bytes and index pointers are of size 4 bytes. Given this scenario what would be the best choice of the degree (i.e. the number of pointers per node) of the B+ tree ?
View solution
Q. What is Granularity ?
View solution
Q. Which level of Abstraction describes what data are stored in the Database ?
View solution
Q. The problem that occurs when one transaction updates a database item and then the transaction fails for some reason is …………….
View solution
Q. Consider a schema R(A, B, C, D) and functional dependencies A->B and C->D. Then the decomposition R1(A, B) and R2(C, D) is
View solution
Q. A hash table has space for 75 records, then the probability of collision before the table is 6% full.
View solution
Q. Which command classes text file, which has been created using “SET ALTERNATIVE” < FILE NAME > “Command” ?
View solution
Q. Which of the following statements is true, when structure of database file with 20 records is modified?
View solution
Q. The SQL Expression
Select distinct T. branch name from branch T, branch S where T. assets > S. assets and S. branch-city = DELHI,
finds the name of
View solution
Q. Which of the following is the recovery management technique in DDBMS ?
View solution
Q. Which of the following is the process by which a user’s privileges ascertained ?
View solution
Q. The basic variants of time-stampbased method of concurrency control are
View solution
Q. A transaction can include following basic database access operations :
View solution
Suggested Topics
Are you eager to expand your knowledge beyond DBMS? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!