Q) What does below SQL statement describe?
SELECT CustomerName, Address + ‘, ‘ + City + ‘, ‘ + Country AS Address
FROM Customers;
- Alias named Address column will be created and under this Address, City and Country will be printed as combined statement.
- Alias named Address will be created for Country columns
- Alias named Address column will be created and under this all CustomerName, address, city and country will be printed as combined statement
- All above options are wrong
Answer: 1
Q) Logical operators used in SQL are
- AND, OR , NOT
- &&, ||, !
- $,|,!
- None of the above
Answer: 1
Q) To specify the number of records to return, which keyword is used
- FIRST
- TOP
- START
- ROW
Answer: 2
To return specific number of records, SQL Server uses TOP, MYSQL database uses LIMIT and Oracle database uses ROWNUM.
Q) To search for a specified pattern in a column
- SQL MATCH
- SQL LIKE
- SQL PATTERN
- SQL SEARCH
Answer: 2
Q) Which clause is used to combine rows from two or more tables based on a related column between them.
- SQL MATCH
- SQL JOIN
- SQL PATTERN
- NONE
Answer: 2