Question
Easy
Consider the following SQL query to retrieve ecode of employees from EMPLOYEE table, whose address contains 'INDIA': SELECT ecode FROM EMPLOYEE WHERE _______; Which of the following is most suitable to complete the query?
1
address LIKE '_INDIA_'
2
address = %INDIA%
3
address AS '%INDIA_'
4
address LIKE '%INDIA%'
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Database Management System (DBMS) & SQL
Topic: SQL
Correct Answer
Option D
Explanation
The correct option is (4): The correct option is address LIKE '%INDIA%'. In Structured Query Language (SQL), when you need to search for a string that appears anywhere within a column's text, you must employ the LIKE operator along with the appropriate wildcard characters. The percent sign (%) is the standard SQL wildcard that represents any sequence of zero or more characters. By placing a percent sign both before and…Read More
Similar Questions from HTET Exam - Level 3 - Year 2019
Question 1
Easy
Source :
HTET 2019
OSI stands for:
Chapter :
Computer Networks & Internet
Topic :
Computer Network
Question 2
Easy
Source :
HTET 2019
In C++, which of the following is not a valid access specifier ?
Chapter :
Object-Oriented Programming (C++)
Topic :
Class & Object in C++
Question 3
Easy
Source :
HTET 2020
In MS Excel, creating resulting 'what-if conditions based on several uncertain future conditions is called:
Chapter :
Office Automation Tools
Topic :
Spreadsheet (MS Excel)
Question 4
Easy
Source :
HTET 2020
Which of the following is responsible for extending commands to Arithmetic Logic Unit of a computer?
Chapter :
Computer System & Hardware Fundamentals
Topic :
Architecture