adplus-dvertising
frame-decoration

Question

The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints

a.

gh

b.

23

c.

bc

d.

ab

Posted under SQL DBMS

Answer: (a).gh

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The SQL statement SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL; prints

Similar Questions

Discover Related MCQs

Q. The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;

Q. Which of the following must be enclosed in double quotes?

Q. Which of the following command makes the updates performed by the transaction permanent in the database?

Q. Which command undo all the updates performed by the SQL in the transaction?

Q. Find all the cities whose humidity is 89

Q. Find the temperature in increasing order of all cities

Q. What is the meaning of LIKE '%0%0%'

Q. Find the names of these cities with temperature and condition whose condition is neither sunny nor cloudy

Q. Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70F.

Q. Find all the tuples having temperature greater than 'Paris'.

Q. Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79

Q. Find the names of the countries whose condition is sunny.

Q. Find the name of all cities with their temperature, humidity and countries.

Q. Find the name of cities with all entries whose temperature is in the range of 71 and 89

Q. Which of the following query finds the names of the sailors who have reserved at least one boat?

Q. Which of the following query finds colors of boats reserved by "Dustin"?

Q. What does the following query find?

(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'red')
MINUS
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'green')

Q. Which of the following query finds the name of the sailors who have reserved at least two boats?

Q. Which of the following query finds the total rating of the sailors who have reserved boat "103"?

Q. The SELECT statement SELECT 'Hi' FROM DUAL WHERE NULL = NULL; Outputs