Q. The Doc_name Column of a table Hospital is given below:
Doc_name |
Avinash |
Hariharan |
Vinayak |
Deepak |
Sanjeev |
Based on the information, find the output of the following queries:
(i) SELECT doc_name FROM HOSPITAL WHERE Doc_name like "%v";
(ii) SELECT dcc_name FROM HOSPITAL WHERE doc_name like "%e%";
Answer =
(a)
Doc_name |
Sanjeev |
(b)
Doc_name |
Deepak |
Sanjeev |
Please tell me if it was like "%e" what could be the output,? as it does match with any name...
ReplyDeleteit give the Name which end with latter 'e' . : )
DeleteIt would give an empty set
Deletewhat if it said "e%"? will it show the name with the beginning letter as e?
ReplyDeleteYes
DeleteActually, it meant by the fact that the name ended with letter 'e' :-)
ReplyDeleteYes
DeleteWhat if it was %a
ReplyDeleteIt will give output with the name ending with character a.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )