473,624 Members | 2,275 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WHAT DO I USE TO MAKE A TODAY DATE QUERY

select no_dossier from dbo.membre where date_MAJ = GETDATE()

select no_dossier from dbo.membre where date_MAJ = '2005-07-21'

Both should give me the same result, yes or no?

thanks
Jul 23 '05 #1
1 1222
No - GETDATE() includes the time.

http://www.karaszi.com/sqlserver/inf....asp#Searching

Simon

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4158
by: Treetop | last post by:
I used the following script for a site to stop displaying after a date / time, but it seems huge. Any ideas on how to make it shorter? There are many events in this list. function events() { var today = new Date(); var dayarray=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat") var montharray=new
11
17745
by: Fernand St-Georges | last post by:
select no_dossier from dbo.membre where date_MAJ = GETDATE() select no_dossier from dbo.membre where date_MAJ = '2005-07-21' Both should give me the same result, yes or no? thanks
6
40088
by: davegb | last post by:
I want to query on a date field for any date after today's. I've tried >today and >date, but Access won't accept those. I Googled here, but couldn't find any reference to today's date except in VBA. I hope I don't have to write code in Access to query relative to the current, or any other, date. Thanks!
2
1711
by: Glenn | last post by:
I'm trying to create a query that will show only the records that has a date of today or after in the date field (consequently my results would change everyday). I tried >=#today# but that didn't work. Is there a way to do this? If so how? Thanmks.
4
39164
by: Chris | last post by:
Hello, I am attempting to build a MS SQL query that will return data from "today"; today being current day 8:00AM-10:00PM today. My goal is to return the data from a table that is written to throughout the day, the query will provide the current grade of service in our call center. I am having difficulty defining my where clause: - I can accomplish my goal my statically defining my 'date between' as
4
2779
by: Kun | last post by:
i have a form which takes in inputs for a mysql query. one of the inputs is 'date'. normally, a user has to manually enter a date, but i am wondering if there is a way to create a button which would automatically insert today's date in the date form field if the user chooses to use today's date.
4
5934
by: crane.jake | last post by:
Hi, I'm trying to find the following information from the table found bellow. Year_Sales - # of sales that have occurred this year Year_Income - SUM(amount) Month_Sales - # of sales that have occurred this month Month_Income - SUM(amount) Today_Sales -- # of sales that have occurred today Today_Icome - SUM(amount)
22
2510
ChaseCox
by: ChaseCox | last post by:
Alright so I have a new problem with my form. I would like The default of my combo box to be today's date, since one of the filtering options for my query is ship date, which allows the user to select shipments between 2 dates. Another Question Also If I have syntax like below in a query, which pulls the criteria from a combo box: Between !! And !! How can code it so that if the box is left empty, that it will not filter based on...
2
11919
by: Ronald S. Cook | last post by:
In trying to figure out how to make function MedicineClass.ApplyMedicinePriceChanges perform better, I ran Code Analysis and got the following: ****************************************************************************************** Warning 1677 CA1506 : Microsoft.Maintainability : 'MedicineClass.ApplyMedicinePriceChanges(ProgramMedicinePrice, String, Guid, Decimal)' is coupled with 34 different types from 9...
11
2097
by: MNNovice | last post by:
My form has two text boxes, txtDateFrom and txtDateTo. A macro button with the caption Month is to automatically fill in txtDateFrom and txtDateTo with current month date. My code reads as: Private Sub cmdmonth_Click() 'Sets the Date From and Date To text boxes 'to show complete month (from start to end of current month) Me!txtdatefrom = CDate("01/" & Month(Date) & "/" & Year(Date)) Me!txtDateTo = DateAdd("d", -1, DateAdd("m",...
0
8242
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8681
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8488
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7170
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4183
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1793
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.