HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL

Ads
 

HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL

sir,

how can i use WHERE and BETWEEN clause simultaneously..?

my tables details is below. expid expdate exprs expdetails expfor_id

i want to find out record between two dates whose expfor_id = 1

my query is SELECT * FROM expenditures WHERE _exp_date BETWEEN ('2009-07-01' AND '2011-07-30') AND _exp_for_id = 1 but it dose not give any result..

sir, give me repply soon.. thank you by kalpesh

View Answers

July 13, 2011 at 10:33 AM

Ads









Related Tutorials/Questions & Answers:
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... WHERE _exp_date BETWEEN ('2009-07-01' AND '2011-07-30') AND _exp_for_id = 1
SQL PHP Where
SQL PHP Where       SQL PHP Where is used to built the connection between the SQL and PHP... illustrate an example from 'SQL PHP Where'. To understand and illustrate
Advertisements
What is the difference between MongoDB and MySql?
The difference between MongoDB and MySql is that the in former one whole... of MongoDB. If one is using a simple database where everything is indexed properly than MySql will work perfectly but if a data is complex and you want to store
SQL BETWEEN Operator
; The SQL Between Operator works where you want to select a range...: SELECT ColumnName(s) FROM TableName WHERE ColumnName value1 between... Query is used to select the Stu_Table where a stu_Id  between 1
J2EE Tutorial - Java Bean
; To bring out the differences between the different appraoaches,  we will consider a simple case where the user types his... class  with the following requirements.    i) It has
How to use between in mysql.
How to use between in mysql.  I want to display records inbetween two dates and also want to use where condition( like and deptname='Pediatry... WHERE column_name BETWEEN value1 AND value2 Here is an example, we have a table
PHP and MySQL BETWEEN dates with different years
PHP and MySQL BETWEEN dates with different years  I have a database.... I thought it made sense to make use of the SQL BETWEEN statement, but it does... the query. Here's the query: SELECT * FROM table WHERE $year BETWEEN YEAR(Start
Client-Server Architecture
as a network environment that exchanges information between a server machine  and a client machine where server has some resources that can be shared by different....    The interaction between a lamp
range of dates in mysql query
range of dates in mysql query  How to select the range of dates in mysql ..when i have to select from between & and of date function?   SELECT * FROM MAAccounts WHERE updatedOn BETWEEN ? AND ? ORDER
Where clause with query in MySQL
Where clause with query in MySQL  Hi, I want to learn the where clause in MySQL. Provide me the tutorials. Thanks   Hi, Here is the various example of where clause: Suppose we have following table: mysql> select
PHP SQL Inner Join
; This Example illustrates how to use the inner join clause... in both tables. This is the good example to understand inner join clause because in this example we use a join clause between only two table. We use "
PHP SQL Inner Join
because in this example we use a join clause between only two table and display...PHP SQL Inner Join  This Example illustrates how to use the inner join clause in the sql query. The inner join return rows when there is at least one
PHP MYSQL Interview Questions
of difference between the both. Can anyone please explain it in detail with the case where... between $message and $$message? While printing the value i found that both contains... Variable?. Please explain. What is the regular expression and how we can use
SQL Functions
in Where Clause.    MySQL Append String...; Mysql where Mysql Where is used... CLAUSE.   Mysql Update The section
PHP SQL LIKE Operator
; This example illustrates how to use the like operator in sql query. The LIKE operator is used in a WHERE clause to search for  matching strings based.... $result = mysql_query("select * from emp where name like 's%'"); In the query
SQL Example, Codes and Tutorials
. The statement is accomplished by a where clause.   The DELETE... the path FROM table_name.   The WHERE Clause WHERE clause is used with the SELECT keyword. 'Where' is a clause which is used
PHP SQL Rows
specified in where clause and display it on the browser. Understand with Example... and password to authenticate the connection between the PHP and MySQL. Incase, there is connection failure between the PHP and  MySQL, the die part
HQL Date Between Example
HQL Date Between Example In this tutorial I will show you how you can use..._QUERY = "select i from Invoice i where i.invoiceDate between :start... In this example we will show you how you can use HQL * Between dates statement
Where Clause in SQL
The Tutorial illustrate an example from where clause in SQL. In this Tutorial we use... Where Clause in SQL       The Where clause in SQL query is used  with the SELECT keyword
JPA Query with where clause and group by function
JPA Query with where clause and group by function  Any thing wrong...(charge),COUNT(activePackage) FROM User WHERE callType = :callType and startDate BETWEEN :startDate AND :endDate GROUP BY activePackage",User.class); List<
PHP Tutorials from RoseIndia
is and how to use a variable... PHP variables 2.... In this tutorial we will learn how to make a shout box (mini forum) using MYSQL database...; php MySQL order by clause: Order by is one of the important clause
JDBC Training, Learn JDBC yourself
will learn how to connect the MySQL database with Java file. We need to establish a connection between MySQL and Java files so that we can use MySQL driver... a MySQL Database Table to store Java Types Dear user, consider a case where
HQL Between clause, HQL Between example
HQL Between clause example In this tutorial you will learn how to use HQL Between clause to select a range of entity falling between 2 and 6. You can... and 6. The HQL Between used for this purpose is: // Create HQL Between clause
Hibernate Question
Hibernate Question  Hi,i am doing hibernate mapping but i did not get the accurate concept of that so will you please send me a mapping between 2 table code. and at the time of mapping where we have to use the set<> method
Chapter 9. EJB-QL
specified in the SELECT clause and WHERE clause of the query apply. an optional WHERE clause... by the query. EJB QL :: = SELECT_clause FROM_clause [WHERE
date between
used an Access database and SQL, and also in my tables I have some fields. One of my fields is date_, and the type of the field is DateTime. When I want to select records between 2 dates, I use this query: Select * from table1 Where date
JPA 2.1 Tutorial
Learn the new features of JPA 2.1 and understand how to use the new features... WHERE Clause examples Criteria API Introduction to the Criteria... persistence API. You can use the JPA API to query the data from database. The JPA
THE key Word WHERE in SQL, SQL Tutorial
WHERE Clause in SQL        WHERE clause is used with the SELECT keyword. ' Where' is a clause which is used for searching the data with a particular condition.  
PHP SQL Where
definition based on the condition specified in Where Clause. The PHP SQL Where allows you to update the field based on the condition specified in Where Clause... and MySQL database. The die script executed when there is a connection failure between
Subtraction of a date from Sql and other from java.
to subtract a date that i retrieve from mysql database with the system date that i retrieve from java. I want the difference between the two date in the integer form. how do i do it ? Please help me. Thank you !   import java.sql.*; import
Core Java Interview Question, Interview Question
;    Question: How can i tell what state a thread... but there was simply no way to differentiate between the two. Starting... = t.getState(); Thread.State[] ts = e.values(); for(int i = 0; i < ts.length; i

Ads