MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
You want to change the mobile number to 92745612 of Employee 101, which command will execute correctly?
A
UPDATE emp SET mobile ____ number = 92745612 WHERE student ____ id=101;
B
UPDATE emp SET WHERE mobile ____ number = 92745612;
C
UPDATE emp SET mobile ____ number = 92745612;
D
UPDATE emp SET student ____ id=101;
Explanation: 

Detailed explanation-1: -A DML (data manipulation language) refers to a computer programming language that allows you to add (insert), delete (delete), and alter (update) data in a database. A DML is typically a sublanguage of a larger database language like SQL, with the DML containing some of the language’s operators.

Detailed explanation-2: -The update command is a DML command used to update a table’s records. The SET keyword is used in the update command. The WHERE clause is also used in the update command for updating single or multiple columns of the table.

Detailed explanation-3: -DDL stands for Data Definition Language. DML stands for Data Manipulation Language. DDL statements are used to create database, schema, constraints, users, tables etc. DML statement is used to insert, update or delete the records.

Detailed explanation-4: -DML commands include SELECT, INSERT, UPDATE, and DELETE.

There is 1 question to complete.