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 does the file with the extension: frm, myd, and myi contain?
how you will show all records not containing the name "sonia" and the phone number '9876543210' order by the phone_number field.
How do you start and stop MySQL on Windows?
What is pragma autonomous_transaction?
What is the innodb in mysql?
How do I switch users in mysql?
What is a result set object?
How do I create a schema in mysql?
What is pdo in mysql?
How to add a new column to an existing table in mysql?
Where’s database data actually stored? Is there a way to see the files which are stored?
What is the difference between mysql and oracle?
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)