Relational Database Management System Mcqs

Page No. 3

While operating with strings, what does “_ _ _%” match with?


aA string of three letters

✖


bA string of at least three letters

✓


cA string of three words

✖


dA string of at least three words

✖



Which keyword is used to rename a relation in a query?


arename

✖


b as

✓


c is

✖


d to

✖


View Answer as

Observe the following query and choose the correct option. select name, ID from student natural join department natural join section


aThe query is syntactically wrong because there is no where clause

✖


bThe query is syntactically wrong because there are more than one attributes in the select clause

✖


che query is syntactically wrong because more than one relations are included in the natural join operation

✖


dThe query is correct

✓


View Answer The query is correct

What does the natural join operation do?


a It considers only those pairs of tuples that have the same value on those attributes that appear in the schemas of both relations

✓


bIt considers only those pairs of tuples that have the same value on at least one of the attributes that appear in the schemas of both the relations

✖


cIt considers only those pairs of tuples that do not have the same value on those attributes that appear in the schemas of both relations

✖


dNone of the mentioned

✖



State true or false: Multiple conditions in the where clause are separated by a “,”


aTrue

✖


b False

✓


ceither true and false

✖


dnone of these

✖


View Answer False

If we specify multiple relations in the from clause and do not specify any conditions in the where clause, what will the result be?


a The natural join of both the relations

✖


bThe left outer join of both the relations

✖


c A syntactical error

✖


d The Cartesian product of both the relations

✓



What does the following query do? select name, ID, branch from student, department where student.branch = department.branch;


aIt gives all values of name, ID, branch from both the relations only if all those attributes are present in both

✖


bIt gives all values of name, ID, branch from their respective relations

✖


cIt gives the values of name, ID, branch from their respective relations where the values in the branch attribute are same

✓


d It gives the values of name, ID, branch from their respective relations where all the values are matching with each other

✖



What does the above query do?


aIt gives all the tuples having a distinct dept_name

✖


b It gives the dept_name attribute values of all tuples without repetition

✓


c It gives all the dept_name attribute of all the tuples

✖


dIt gives all the tuples having a null value under the dept_name attribute

✖



The where clause is a predicate involving attributes of the relation in the ______ clause.


a select

✖


bfrom

✓


c with

✖


dnone of the mentioned

✖


View Answer from

Which of the following logical connectives is not included in SQL?


aand

✖


b or

✖


cnor

✖


dnot

✓


View Answer not

Goto Page No.

Page 3 of 54

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