About 7,320,000 results
Open links in new tab
  1. sql - Is there a way to use the dateadd() in the where clause in a ...

    Nov 6, 2015 · Here's my problem. In my where clause I am trying to use the between clause with dates. In the second date I add, I need it to return the day after the date that is being input.

  2. sql - Using DATEADD with bigints - Stack Overflow

    Just do the problematic DATEADD in two steps, starting with a coarser time unit (seconds, minutes, hours etc.), then dropping back to the fine grained one for the remainder. Avoid going …

  3. Equivalent function for DATEADD () in Oracle - Stack Overflow

    Jun 25, 2014 · I have to get a date that is 6 months from the system date in Oracle. And I have to get it by running an open-query from SQL. DATEADD(MONTH,-6, GETDATE()) function …

  4. How to get only date part while using dateadd() and getdate()

    Feb 25, 2014 · I want to display records of last 4 months from current date. I don't want to consider time How can I get just date part from the below query? where OrderDate >= …

  5. sql - How can I use a column's values for DATEADD()'s datepart ...

    Nov 9, 2023 · T-SQL's DATEADD is not a "real" function, it's actually a language-feature (like a statement or control-structure) and the first parameter (datepart) accepts keyword arguments, …

  6. sql server 2008 - DATEADD (MONTH, DATEDIFF (MONTH, 0, …

    Jul 26, 2012 · select Dateadd(MONTH, 1381, 0) result: 2015-02-01 00:00:00.000 Basically, it gets the first day of the whatever month is specified in the date of the innermost formula. The code i …

  7. How to add hours to current date in SQL Server? - Stack Overflow

    Aug 29, 2013 · The DATEADD() function adds or subtracts a specified time interval from a date. DATEADD(datepart,number,date)

  8. dax - Using DATEADD and NOW () together - Stack Overflow

    Apr 13, 2016 · May be DATEADD(MONTH, -7, NOW())? At least this is how it should be written in SQL Server. – Giorgi Nakeuri.

  9. DATE ADD function in PostgreSQL - Stack Overflow

    Jul 28, 2020 · WITH uservideoviewvideo (date, user_id) AS ( SELECT DISTINCT date, user_id FROM clickstream_videos WHERE event_name ='video_play' and user_id IS NOT NULL ) …

  10. Using Parameters in DATEADD function of a Query

    The following code works perfectly fine here (SQL Server 2005, executed in Management Studio): DECLARE @days decimal SET @days = -10 SELECT DATEADD(day, @days, GETDATE())

Refresh