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
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 |
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 |
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 |
What is pragma autonomous_transaction?
How can you add and remove any column of a table?
Why mysql is used with php?
What is delimiter $$?
Explain the difference between procedure and function in mysql?
What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?
What is mysqli procedural?
Which mysql function is used to concatenate string?
how to know the tables in database having foreign key?
What is the purpose of using a heap table?
What is msql?
What are Heap tables?