MCQ 11 MarkHow many values can be returned from a given stored function?A$0$✓$1$C$2$D$3$AnswerCorrect option: B. $1$View full question & answer→
MCQ 21 MarkThe join in which all the rows from the right table appear in the output irrespective of the content of the other table is $........$A$\text{CARTESIAN JOIN}$B$\text{CROSS JOIN}$C$\text{INNER JOIN}$✓$\text{RIGHT JOIN}$AnswerCorrect option: D. $\text{RIGHT JOIN}$View full question & answer→
MCQ 31 MarkThe string function that returns the index of the first occurrence of substring is _____________AINSERT()✓INSTR()CINSTRING()DINFSTR()AnswerCorrect option: B. INSTR()BView full question & answer→
MCQ 41 MarkIf emp_id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the given query?✓{9, 7, 6, 4, 3, 1, 2}B{1, 2, 3, 4, 6, 7 , 9}C{2, 1, 3, 4, 6, 7, 9}DNone of the mentionedAnswerCorrect option: A. {9, 7, 6, 4, 3, 1, 2}AView full question & answer→
MCQ 51 MarkWhich clause is used with an "aggregate functions"?AGROUP BYBSELECTCWHERE✓Both a and cAnswerCorrect option: D. Both a and cDView full question & answer→
MCQ 61 Mark"COUNT" keyword belongs to which categories in MySQL?✓Aggregate functionsBOperatorsCClausesDAll of the mentionedAnswerCorrect option: A. Aggregate functionsAView full question & answer→
MCQ 71 MarkWhen do we use a HAVING clause?ATo limit the output of a query✓To limit the output of a query using an aggregate function onlyCWhen GROUP by is usedDBoth a and c aboveAnswerCorrect option: B. To limit the output of a query using an aggregate function onlyBView full question & answer→
MCQ 81 MarkHow do I find out all databases starting with `test to which I have access to?ASHOW DATABASES AS `%test%`;BSHOW DATABASES LIKE `%test;CSHOW DATABASES LIKE `’test’%’;✓SHOW DATABASES LIKE `%test%’;AnswerCorrect option: D. SHOW DATABASES LIKE `%test%’;DView full question & answer→
MCQ 91 Mark$\text{USE}$ keyword is used to select a $........$ATableBColumn✓DatabaseDAll of the aboveAnswerCorrect option: C. DatabaseView full question & answer→
MCQ 101 MarkWhich of the following ways below are the correct way to get the current date?ASELECT CURTIME();BSELECT CURDATE();CSLELCT CURRRENT_TIME()✓All of the aboveAnswerCorrect option: D. All of the aboveDView full question & answer→
MCQ 111 MarkHow can we get the number of records or rows in a table?✓Using COUNTBUsing NUMCUsing NUMBERDBoth a and c aboveAnswerCorrect option: A. Using COUNTAView full question & answer→
MCQ 121 MarkCan we define multiple unique constraints on a table?✓YesBNoAnswerCorrect option: A. YesAView full question & answer→
MCQ 131 MarkWhich is the default order of sort in ORDER BY clause?✓AscendingBDescendingAnswerCorrect option: A. AscendingAView full question & answer→
MCQ 141 MarkWhat is a candidate key?✓Used to uniquely identify a rowBAlias for primary keyCUsed to identify a columnDAlias for foreign keyAnswerCorrect option: A. Used to uniquely identify a rowView full question & answer→
MCQ 151 MarkOn executing DELETE command, if you get an error "foreign key constraint" – what does it imply?AForeign key not definedBTable is emptyCConnectivity issue✓Data is present in the other tableAnswerCorrect option: D. Data is present in the other tableDView full question & answer→
MCQ 161 MarkHow much storage space does DATETIME require?A4 bytesB2 bytes✓8 bytesD1 bytesAnswerCorrect option: C. 8 bytesCView full question & answer→
MCQ 171 MarkCan DISTINCT command be used for more than one column?ANo✓YesAnswerCorrect option: B. YesBView full question & answer→
MCQ 181 MarkWhich SQL statement is used to create a table in a database?AMAKE TABLE✓CREATE TABLECBUILD TABLEDNo of the aboveAnswerCorrect option: B. CREATE TABLEBView full question & answer→
MCQ 191 MarkWhich operator is used to search for a specified pattern in a column?✓LIKEBGETCFROMDBETWEENAnswerCorrect option: A. LIKEAView full question & answer→
MCQ 201 MarkWhich operator is used to select values within a range?✓BETWEENBWITHINCRANGEDINAnswerCorrect option: A. BETWEENAView full question & answer→
MCQ 211 MarkWhat is the most common type of join?✓INNER JOINBINSIDE JOINCJOINED TABLEDJOINEDAnswerCorrect option: A. INNER JOINAView full question & answer→
MCQ 221 MarkWhich SQL keyword is used to sort the result-set?✓ORDER BYBSORT BYCSORTDORDERAnswerCorrect option: A. ORDER BYAView full question & answer→
MCQ 231 MarkWhich SQL statement is used to return only different values?✓SELECT DISTINCTBSELECT UNIQUECSELECT DIFFERENTDSELECT REMOVE DUPLICATEAnswerCorrect option: A. SELECT DISTINCTAView full question & answer→
MCQ 241 MarkWhich SQL statement is used to delete data from a database?✓DELETEBREMOVECCOLLAPSEDDropAnswerCorrect option: A. DELETEAView full question & answer→
MCQ 251 MarkWhich SQL statement is used to manipulate data in a database?✓UPDATEBSAVECSAVE ASDMODIFYAnswerCorrect option: A. UPDATEAView full question & answer→
MCQ 261 MarkWhich SQL statement is used to extract data from a database?✓SELECTBOPENCGETDEXTRACTAnswerCorrect option: A. SELECTAView full question & answer→
MCQ 271 MarkWhat does SQL stand for?✓Structured Query LanguageBStrong Question LanguageCStructured Question LanguageDStoring Query LanguageAnswerCorrect option: A. Structured Query LanguageAView full question & answer→
MCQ 281 MarkWhich command is used to remove all rows from a table?✓DeleteBTruncateCRemoveDBoth A & BAnswerCorrect option: A. DeleteAView full question & answer→
MCQ 291 MarkWhich of the following is an aggregate function in MYSQL?ALIKEBUnionCGroup by✓MAXAnswerCorrect option: D. MAXDView full question & answer→
MCQ 301 MarkThe SQL keyword between is used?ATo limit the columns displayedBAs a wildcard✓For rangesDNone of the aboveAnswerCorrect option: C. For rangesCView full question & answer→
MCQ 311 MarkWhich statement is used to insert a new data in a database?AInsert newBAdd row✓Insert intoDUpdateAnswerCorrect option: C. Insert intoCView full question & answer→
MCQ 321 MarkWhich of these is not a valid name for a column:ATo✓FromCFarDNearAnswerCorrect option: B. FromBView full question & answer→
MCQ 331 MarkIn a like clause, you can ask for any 4-letter value by writing:ALIKE.{4}✓LIKE ____ (that's four underscore characters)CLIKE ^.{6}$DLIKE %%%%AnswerCorrect option: B. LIKE ____ (that's four underscore characters)BView full question & answer→
MCQ 341 MarkWhich of these commands will delete a table called ABC, if you have appropriate authority?✓Drop table ABC;BDelete ABC where confirm=" Yes";CDrop ABC;DDrop ABC where confirm="YES";AnswerCorrect option: A. Drop table ABC;AView full question & answer→
MCQ 351 MarkThe "father" of MYSQL is ______.ABill Joy✓Michael WideniusCBill GatesDStephanie WallAnswerCorrect option: B. Michael WideniusBView full question & answer→
MCQ 361 MarkThe maximum length of the varchar columns is✓Upto 65,535 BytesBUpto 256 BytesCUpto 65,567 BytesDNone of the aboveAnswerCorrect option: A. Upto 65,535 BytesAView full question & answer→
MCQ 371 MarkThe maximum length of the char columns isA65,535 BytesB256 Bytes✓255 BytesDNone of the aboveAnswerCorrect option: C. 255 BytesCView full question & answer→
MCQ 381 MarkWhich declaration doesn't use the same number of bytes and consumption of bytes depends on the input data?✓VarcharBCharCBoth Varchar and charDNone of the aboveAnswerCorrect option: A. VarcharAView full question & answer→
MCQ 391 MarkCharacter data can be stored as✓Either fixed or Variable length StringB Fixed length stringCVariable length stringDNone of the aboveAnswerCorrect option: A. Either fixed or Variable length StringAView full question & answer→
MCQ 401 MarkHow much character are allowed to create database name?✓64B40C70D75AnswerCorrect option: A. 64AView full question & answer→
MCQ 411 MarkWhich clause is used to group the column(s) with aggregate function?AOrder byBLikeCWhere✓Group byAnswerCorrect option: D. Group byDView full question & answer→
MCQ 421 MarkWhich is not a MySQL function?✓Mult()BMin()CCount()DSum()AnswerCorrect option: A. Mult()AView full question & answer→