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

What is pragma autonomous_transaction?

0 Answers  


How can you add and remove any column of a table?

0 Answers  


Why mysql is used with php?

0 Answers  


What is delimiter $$?

0 Answers  


Explain the difference between procedure and function in mysql?

0 Answers  


What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?

0 Answers  


What is mysqli procedural?

0 Answers  


Which mysql function is used to concatenate string?

1 Answers  


how to know the tables in database having foreign key?

2 Answers  


What is the purpose of using a heap table?

0 Answers  


What is msql?

0 Answers  


What are Heap tables?

1 Answers  


Categories