where clause in select statement

where clause in select statement

In Mysql,I write the following query:

select * from emp where designation = "MANAGER"

But the actual value in the table is "manager"

Will the above query retrieve any records?

According to me it should not.But I am getting all records for which designation is "manager".

Please guide why it is happening and help me with this so that I get records nly if the where condition is "manager" and not "MANAGER"

View Answers

Ads









Related Tutorials/Questions & Answers:
where clause in select statement
where clause in select statement  In Mysql,I write the following query: select * from emp where designation = "MANAGER" But the actual value... nly if the where condition is "manager" and not "MANAGER
Where clause
Where clause  I have doubt in Where clause .. i got a Employid from...; The WHERE clause is used to filter records.It is used to extract only those records that fulfill a specified criterion. SQL WHERE Syntax: SELECT column
Advertisements
Where Clause in SQL
Where Clause in SQL       The Where clause in SQL query is used  with the SELECT keyword... is The select query used with where clause, which search the data
Mysql Where Statement
; statement: The Query  Where Clause returns only those records from table... Mysql Where Statement       Mysql Where Statement is useful when we want to return the records
Select Clause in hibernate.
Select Clause in hibernate.  Example of select clause of hibernate
Select Clause in hibernate.
Select Clause in hibernate.  Example of select clause of hibernate
Select Clause in hibernate.
Select Clause in hibernate.  Example of select clause of hibernate
SQL SELECT DISTINCT Statement
clause with the select statement. The SQL Distinct clause is used with the Select... SQL SELECT DISTINCT Statement   ... SQL SELECT DISTINCT Syntax The SQL Distinct clause can be used
Where clause with query in MySQL
is the various example of where clause: Suppose we have following table: mysql> select... (0.00 sec) Following shows more uses of where clause: mysql> select * from...Where clause with query in MySQL  Hi, I want to learn the where
SQL Backup query with where statement
SQL Backup query with where statement   ...; is used to construct a backup table using where clause. The Where Clause...'. create table stu_table_10_backup( select * from stu_table where stu_class
JDBC: WHERE Clause Example
of WHERE Clause in JDBC..."); Connection con = null; Statement statement = null...JDBC: WHERE Clause Example In this section, we will discuss how to use WHERE.... WHERE Clause : MySql Where Clause is used to write some condition and data
Mysql Date in where clause
Mysql Date in where clause     ... records from table employee1 on the basis of condition specified in WHERE clause... in Where clause. The given Query create table employee1 is used to create a table
select clause in hibernate
select clause in hibernate  Example of select clause of hibernate?   Select clause is used for selection of records from a database... This is your select clause, picking the employee details as employee name,salary and date
Using WHERE Clause in JDBC
to the SELECT statement. The WHERE clause searches the specific results by the SELECT statement. Example of WHERE Clause SELECT Name from... Using WHERE Clause in JDBC    Where
HAVING Clause in JPQL (Java Persistence Query Language)
with the SELECT statement to filter the records. A HAVING clause restricts... to each group of grouped table, much as a WHERE clause is applied to a select list... HAVING Clause in JPQL (Java Persistence Query Language
SQL Aggregate Functions In Where Clause
SQL Aggregate Functions In Where Clause       SQL Aggregate Function In Where Clause return... specified in the 'Stu_Name'. In order to overcome, we use the WHERE clause
SQL Aggregate Functions Where Clause
SQL Aggregate Functions Where Clause       SQL Aggregate Functions Where Clause return you the aggregate sum of the records based on the condition specified in Where Clause condition
JPA Query with where clause and group by function
JPA Query with where clause and group by function  Any thing wrong...;RaBdrRating>) entityManager.createQuery("SELECT activePackage,SUM(duration),SUM(charge),COUNT(activePackage) FROM User WHERE callType = :callType and startDate
SQL Backup query with where statement
SQL Backup query with where statement   ...; is used to construct a backup table using where clause. The Where Clause..._table_10_backup( select * from stu_table where stu_class=10); Stu_Table
Hibernate SELECT Clause
Hibernate SELECT Clause In this tutorial you will learn how to use HQL select clause. Use of SELECT clause in hibernate is as same as it used in SQL... example which will demonstrate you how a HQL select clause can be used. To achieve
Hibernate WHERE Clause
Hibernate WHERE Clause In this tutorial you will learn how to use HQL where clause. Use of WHERE clause in hibernate is as same as it used in SQL... a HQL where clause can be used. To achieve the solution of such problem
SQL SELECT DISTINCT Statement
with the select statement. The SQL Distinct clause is used with the Select statement... SQL SELECT DISTINCT Statement     ...,'Santosh',10); Stu_Table The Select statement return you
PHP SQL Query Where Clause
PHP SQL Query Where Clause     ... query with where clause. To understand how to display the result returned ...;, "userName", "Password"), database is selected by mysql_select
how to use comma separated value list in the where clause oracle
how to use comma separated value list in the where clause oracle  Hi, how to use comma separated value list in the where clause oracle Thanks   HI, Following code will help you: select * from employee where id
PHP SQL Select Where
PHP SQL Select Where       PHP SQL Select Where is used to provide the records from the table that meet the specific criteria and print the records on the browser. The Where Clause
Mysql where
; Mysql Where is used to return the select records based on the condition specified in Where CLAUSE. Understand with Example... for using where clause: The Query given below return the empname record from
How to use select Statement in MySQL?
How to use select Statement in MySQL?  Hi, How to use select Statement in MySQL? I want to learn the various ways to use the SQL select statement. Thanks   Hi, What is the use of MySQL select clause? MySQL select
SQL Aggregate Functions Where Clause
SQL Aggregate Functions Where Clause       SQL Aggregate Functions Where Clause is used... Where Clause. To understand and grasp example we create a table 'Stu
Help with SELECT/JOIN statement
a select statement that will return me all rows of t1 but, when t1.id = t2.id, I...Help with SELECT/JOIN statement  I have two tables (t1 and t2... statement that will give me the result: id | name | value
HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL
HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL  sir, how can i use WHERE and BETWEEN clause simultaneously..? my tables details... between two dates whose expfor_id = 1 my query is SELECT * FROM expenditures
MySQL Nested Select Example
on the condition of nested select query specified in Where Clause. Understand... on the emp id specified in where clause. mysql> SELECT... the select, update and delete query  based on the condition specified in a Where

Ads