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

Why mysql is used with php?

0 Answers  


Explain advantages of MyISAM over InnoDB?

1 Answers  


How to display top 50 rows?

0 Answers  


What are the column comparisons operators?

0 Answers  


What is mysql root?

0 Answers  






How do I start and stop mysql server?

0 Answers  


how to display only 4 records from a table based on a condition for ex i have a table called products in that nid,prodname are fields i want to display only any 4 records of perticular product plz tell me

6 Answers  


How to make a column bigger and delete unique from table.

0 Answers  


Why do we use pragma autonomous transaction?

0 Answers  


How to drop an existing view in mysql?

0 Answers  


How do I view mysql logs?

0 Answers  


What is 'mysqlshow'?

0 Answers  


Categories