About 733,000 results
Open links in new tab
  1. Date Functions in SQL Server and MySQL - W3Schools

    As long as your data contains only the date portion, your queries will work as expected. However, if a time portion is involved, it gets more complicated. MySQL comes with the following data …

  2. sql - How do I use select with date condition? - Stack Overflow

    Jan 20, 2009 · Always make the end date the zero time on the day after you want and use "<". Doing that, you will always include any dates properly, regardless of the time portion of the date.

  3. Where Date in SQL Reference Guide and Examples

    Jan 19, 2023 · Filtering on dates and times is a common SQL operation. This tutorial provides a simple, helpful reference for using the WHERE clause with dates and times in Microsoft SQL …

  4. SQL Server Date In Where Clause - SQL Server Guides

    May 26, 2025 · In this comprehensive article, I’ll cover everything you need to know about using dates in SQL Server WHERE clauses, from basic syntax to advanced techniques.

  5. SQL - SELECT DATE - GeeksforGeeks

    Jul 23, 2025 · Whether you work with employee records, transaction records, or product sales, modifying and retrieving date data is often important for your SQL queries. In this article, we’ll …

  6. SQL Server: Query Date and Time with Datetime Select - PopSQL

    Learn how to query and manipulate date and time data in SQL Server using datetime and timestamp values. Discover how to retrieve the current date and time, filter records between …

  7. Selecting Dates Within a Range Using SQL Queries - Baeldung

    Apr 9, 2025 · In this tutorial, we’ll explore how to effectively select dates within a range using SQL queries. We’ll use the University database schema for our examples.

  8. SQL SELECT WHERE with date and time - Stack Overflow

    Dec 12, 2011 · Also, if the date field is already a datetime, you don't need the DATETIME() function. You can just use SELECT * FROM table WHERE date BETWEEN '2011-11-11 …

  9. SQL Date Functions

    SQL date functions allow you to manipulate date and time effectively. You can use the date functions for various operations such as adding days to a date, calculating the difference …

  10. How to Write a SQL Query For a Specific Date Range and Date Time?

    Jul 23, 2025 · In this guide, we will focus on working with the DATETIME2 datatype in Microsoft SQL Server, including querying specific time ranges, retrieving records, and handling custom …