Relational Database Management System Mcqs

Page No. 7

Scalar Subqueries can be used in the SQL update statement when they are used under the ____ clause


awhere


bwith


cset


dend


View Answer set

State true or false: We cannot write a where clause under an update command


a True


bFalse


ceither true and false


dnone of these


View Answer False

What does the following query do?


a It increases the marks of all the students by 10%


b It decreases the marks of all the students by 90%


c It increases the marks of all the students by 110%


dIt is syntactically wrong



To change a value in a tuple without changing all the values in the tuple, we use the _____ statement


a insert


binsert some


c update


d alter


View Answer update

Choose the correct option regarding the following query


a Data is inserted into the course relation


bData is not inserted into the course relation due to incorrect specification


cData is inserted into the CS-67 relation


dData is not inserted due to the incorrect use of syntax



What is the format of entering date into a database while inserting data into it?


aYYYY-MM-DD


bYYYY-MM-DD”


c‘YYYY-MM-DD’


d “DD-MM-YYYY”


View Answer ‘YYYY-MM-DD’

What is the result of the following query?


aThe query deletes all the tuples whose marks are greater than the average marks


bThe query deletes all the tuples whose marks are less than the average marks


cThe query deletes all the values under the marks attribute which are less than the average


d The query is syntactically wrong and does not execute



How many relations can a delete command operate on?


a0


b1


c 2


dInfinitely many


View Answer 1

Insert the appropriate key word in the blank in the query ( A is a relation) delete ______ A where P < 5;


a all


bfrom


c with


d in


View Answer all

If a left outer join is performed and the tuple on the left hand side does not match with the tuple on the right hand side, what happens to the values that are preserved on the left hand side?


aThey are given null values


bThey are given a random value


cThe user is asked to enter data


d The query is declared invalid by the compiler



Goto Page No.

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