Query to select passwords from a table having a column
"Password" Whose length is b/w 8 &15 and having 'A' as the
first character in the password irrespective of case.

Answers were Sorted based on User's Feedback



Query to select passwords from a table having a column "Password" Whose length is b/w 8 &..

Answer / mdeva

SELECT Password
FROM tablename
WHERE Password LIKE 'A%'
AND Length( Password) >=8
AND Length( Password) <=15

Is This Answer Correct ?    15 Yes 3 No

Query to select passwords from a table having a column "Password" Whose length is b/w 8 &..

Answer / owais masood

select password from tablename
where (password like "A%" AND length(password) between 8 and
15) OR
(password like "a%" AND length(password) between 8 and 15)

Is This Answer Correct ?    12 Yes 0 No

Query to select passwords from a table having a column "Password" Whose length is b/w 8 &..

Answer / sonali

select password from tablename
where password like 'a%'
and length(password) between 8 and 15

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More MySQL Interview Questions

Is mysql same as sql?

0 Answers  


How do I quit mysql?

0 Answers  


Explain timestamp?

0 Answers  


What is processlist in mysql?

0 Answers  


What is the difference between mysql and pdo?

0 Answers  






How do you create a table in mysql workbench?

0 Answers  


What are the indexes in mysql?

0 Answers  


Is the syntax correct? Explain the meaning of the syntax given below: $dbc = mysqli_connect('data.aliensabductedme.com', 'owen', 'aliensrool', 'aliendatabase');

0 Answers  


What are the functions of commit and rollback statements?

0 Answers  


Why is it called mysql?

0 Answers  


What is general log in mysql?

0 Answers  


What is sqlyog?

0 Answers  


Categories