Question
a.
SELECT * FROM Persons WHERE FirstName=’a’
b.
SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
c.
SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
d.
SELECT * FROM Persons WHERE FirstName=’%a%’
Posted under SQL Server
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?
Similar Questions
Discover Related MCQs
Q. With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?
View solution
Q. With SQL, how can you return the number of not null records in the “Persons” table?
View solution
Q. What does the ALTER TABLE clause do?
View solution
Q. The UPDATE SQL clause can _____________
View solution
Q. The UNION SQL clause can be used with _____________
View solution
Q. Which SQL statement is used to return only different values?
View solution
Q. How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?
View solution
Q. Which TCL command undo all the updates performed by the SQL in the transaction?
View solution
Q. SQL query to find all the cities whose humidity is 95.
View solution
Q. SQL query to find the temperature in increasing order of all cities.
View solution
Q. What is the meaning of LIKE ‘%0%0%’?
View solution
Q. Find the names of these cities with temperature and condition whose condition is neither sunny nor cloudy.
View solution
Q. Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70.
View solution
Q. Find all the tuples having a temperature greater than ‘Paris’.
View solution
Q. Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79.
View solution
Q. The command to remove rows from a table ‘CUSTOMER’ is __________________
View solution
Q. Which is not a type of join in T-SQL?
View solution
Q. Which of the following is not a limitation of view?
View solution
Q. SQL Server has mainly how many types of views?
View solution
Q. Dynamic Management View is a type of ___________
View solution
Suggested Topics
Are you eager to expand your knowledge beyond SQL Server? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!