473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Search query by date

How do you search a database for records by date?

data base name= sholiday
date format=dd-MM-yyyy
Apr 11 '12 #1
2 2057
Frinavale
9,735 Expert Mod 8TB
Have you tried:

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM tableName WHERE date = '01-01-2012'
?

What are you having problems with?
Apr 11 '12 #2
rski
700 Expert 512MB
Or like that

Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM tableName WHERE date = to_date('01-01-2012','DD-MM-YYYY') 
  2.  
Apr 12 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Sorce | last post by:
I'm working on search query for a troubleticket system. There are two tables I want to search, the description in the tickets table and the corresponding notes in the notes table. The problem is...
1
by: SC | last post by:
I'm developing a site that may eventually have a very large database of users (hopefully, but who knows). It will be a community website where users can search each other (think Friendster,...
2
by: turbosatan | last post by:
i need to send a query from a web app to a search page on my site i understand that to use googles search i would use something along the lines of http://www.google.com/search?=q but the...
2
by: zdk | last post by:
I have table name "actionlog",and one field in there is "date_time" date_time (Type:datetime) example value : 11/1/2006 11:05:07 if I'd like to query date between 24/07/2006 to 26/07/2006(I...
0
by: Casey | last post by:
I am really having trouble with a full-text search query. Here's what I've got: SELECT listing_id, RANK, name, address, city, zip, heading, phone FROM listings a, FREETEXTTABLE(listings, *,...
1
by: vHTML | last post by:
hello everyone :) I am trying to make a page which would take a "entered" on search query from the previous page and display results in google with that query in an <iframe> in the results.htm...
6
by: paankhate | last post by:
Hi, I have a task at hand to reduce the time taken for search query to execute. The query fetches records which will have to sorted by degrees away from the logged in user. I have a function...
2
by: fran7 | last post by:
Hi, I have this search query 'search feature If Request("SearchWord") <> "" Then strWd=Replace(Request("SearchWord"),"'","''") strSQL="Select...
19
by: phill86 | last post by:
Hi I am re-posting this thread because it has become very confusing and I have got some way to solving the problem so it is a slightly different question from the initial thread. here is the...
2
by: saidfathi | last post by:
first... I'm Said Fathi I need to make a stored to search between 2 date and search by date only without time in sql server.... how can make this... in SQL server Stored
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.