• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to solve this

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
test
contains
id, name,address,insertiondate.
1 aaa xxxxxx 01-11-2005
2 bbb xxxxxx 01-11-2005
3 ccc xxxxxx 02-11-2005
4 ddd xxxxxx 05-11-2005
5 eee xxxxxx 11-11-2005
6 ggg xxxxxx 15-11-2005
7 rrr xxxxxx 21-11-2005


in my jsp programm i wanted to list the records when the user entering the date range value
eg: when the user enter the date range is

DateFrom: 01-11-2005 DateTO: 20-11-2005

here i wanted to display these below records

1 aaa xxxxxx 01-11-2005
2 bbb xxxxxx 01-11-2005
3 ccc xxxxxx 02-11-2005
4 ddd xxxxxx 05-11-2005
5 eee xxxxxx 11-11-2005
6 ggg xxxxxx 15-11-2005

how can i write SQL query of this above?
please help me..........
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nujin,
Welcome to JavaRanch!

Using a prepared statement, you can do:
 
reply
    Bookmark Topic Watch Topic
  • New Topic