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 to enter boolean values in sql statements?
How do I run mysql?
Write a query to display current date and time?
Why should I use mysql?
How do I exit mysql?
Does mysql use sql?
What storage engines are used in MySQL?
what is the size of date datatype in sql?
What are date and time data types?
What is pdo connection?
What is procedural api?
Do while loop in mysql procedure?
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)