We help IT Professionals succeed at work.
Get Started

day/month/year

rgb192
rgb192 asked
on
240 Views
Last Modified: 2012-05-09
column orderdate is varchar
1 Mar 2010
1 Mar 2010
28 Feb 2010


i cant change $variable1 or $variable2
$variable1= day/ month/ year
$variable2= day/ month/ year
select * from table1 where orderdate is between $variable1  and  $variable2
select * from table1 where orderdate is between 01/03/2010  and  09/03/2010
 

Comment
Watch Question
Database Consultant
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE