Database Management Systems Mcqs

Page No. 4

SELECT instructor.* FROM instructor, teaches WHERE instructor.ID= teaches.ID;
This query does which of the following operation?


aAll attributes of instructor and teaches are selected


bAll attributes of instructor are selected on the given condition


cAll attributes of teaches are selected on given condition


dOnly the some attributes from instructed and teaches are selected



SELECT * FROM instructor ORDER BY salary ____, name ___;
To display the salary from greater to smaller and name in ascending order which of the following options should be used?


aAscending, Descending


bAsc, Desc


cDesc, Asc


dDescending, Ascending


View Answer Desc, Asc

SELECT name FROM instructor WHERE dept name = ’Physics’ ORDER BY name;
By default, the order by clause lists items in ______ order.


aDescending


bAny


cSame


dAscending


View Answer Ascending

’_ _ _ ’ matches any string of ______ three characters. ’_ _ _ %’ matches any string of at ______ three characters.


aAtleast, Exactly


bExactly, Atleast


cAtleast, All


dAll, Exactly


View Answer Exactly, Atleast

SELECT emp_name FROM department WHERE dept_name LIKE ’ _____ Computer Science’;
Which one of the following has to be added into the blank to select the dept_name which has Computer Science as its ending string?


a%


b_


c||


d$


View Answer %

SELECT * FROM employee WHERE dept_name="Comp Sci";
In the SQL given above there is an error . Identify the error.


aDept_name


bEmployee


c“Comp Sci”


dFrom


View Answer “Comp Sci”

SELECT name ____ instructor name, course id FROM instructor, teaches WHERE instructor.ID= teaches.ID;
Which keyword must be used here to rename the field name?


aFrom


bRename


cAs


dJoin


View Answer As

The _____________ is essentially used to search for patterns in target string.


aLike Predicate


bNull Predicate


cIn Predicate


dOut Predicate


View Answer Like Predicate

_________ joins are SQL server default


aOuter


bInner


cEqui


dNone of the mentioned


View Answer Inner

_____ clause is an additional filter that is applied to the result.


aSelect


bGroup-by


cHaving


dOrder by


View Answer Having

Goto Page No.

Page 4 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