Database Management Systems Mcqs

Page No. 7

SELECT __________ FROM instructor WHERE dept name= ’Comp. Sci.’;
Which of the following should be used to find the mean of the salary ?


aMean(salary)


bAvg(salary)


cSum(salary)


dCount(salary)


View Answer Avg(salary)

Aggregate functions are functions that take a ___________ as input and return a single value.


aCollection of values


bSingle value


cSingle value


dBoth Collection of values & Single value


View Answer Collection of values

How can you find rows that do not match some specified condition?


aEXISTS


bDouble use of NOT EXISTS


cNOT EXISTS


dNone of the mentioned



The EXISTS keyword will be true if:


aAny row in the subquery meets the condition only


bAll rows in the subquery fail the condition only


cBoth of these two conditions are met


dNeither of these two conditions is met



Which of the following is not an aggregate function?


aAvg


bSum


cWith


dMin


View Answer With

Subqueries cannot:


aUse group by or group functions


bRetrieve data from a table different from the one in the outer query


cJoin tables


dAppear in select, update, delete, insert statements.


View Answer Join tables

Which of the following creates a temporary relation for the query on which it is defined?


aWith


bFrom


cWhere


dSelect


View Answer With

The ________ keyword is used to access attributes of preceding tables or subqueries in the from clause.


aIn


bLateral


cHaving


dWith


View Answer Lateral

Aggregate functions can be used in the select list or the_______clause of a select statement or subquery. They cannot be used in a ______ clause.


aWhere, having


bHaving, where


cGroup by, having


dGroup by, where


View Answer Having, where

SQL applies predicates in the _______ clause after groups have been formed, so aggregate functions may be used.


aGroup by


bWith


cWhere


dHaving


View Answer With

Goto Page No.

Page 7 of 101

Alphabetical MCQs Categories

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan