MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
With SQL, how do you select a column named “FirstName” from a table named “Persons”?
A
EXTRACT FirstName FROM Persons
B
SELECT Persons.FirstName
C
SELECT FirstName FROM Persons
D
SELECT * FROM Persons
Explanation: 

Detailed explanation-1: -With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” is “Peter"? SELECT * FROM Persons WHERE FirstName=’Peter’;

Detailed explanation-2: -SELECT * FROM <TableName>; This SQL query will select all columns and all rows from the table. For example: SELECT * FROM [Person].

Detailed explanation-3: -Hi dear, Answer:-SELECT * FROM Persons WHERE FirstName=’Peter’ AND LastName=’Jackson’ This query selects all the records from a table named “Person…

There is 1 question to complete.