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 |
How do I install and use mysql?
What is general log in mysql?
Write a query to retrieve a hundred books starting from 20th.
How to execute mysql query in php?
What is mysql connector used for?
Is mysql server free?
What is 'mysqld'?
Write a command to view mysql database table structure?
How would you backup and restore a big MySQL database? What are the advantages of the approach which you have taken over the others?
Which is faster innodb or myisam?
What is unsigned in mysql?
What is the difference between unix timestamps and mysql timestamps?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)