About 41,000 results
Open links in new tab
  1. sql server - What is the common sql for sysdate and getdate ()

    Oct 20, 2012 · I need to use sysdate in both Oracle and SQL Server, but SQL Server has a GETDATE() function instead. But I don't want to create 2 separate queries Is there any …

  2. Is there an equivalent to sysdate-1/24 in SQL server?

    Oct 22, 2014 · In oracle I could do this using sysdate-1/24, is there a simple equivalent within SQL server? Bearing in mind I'm already using cast to get the current sysdate.

  3. sql server - Oracle to SQL NEXT_DAY (TRUNC (SYSDATE) query …

    Dec 15, 2023 · AND NEXT_DAY (TRUNC(SYSDATE) - 6, 'Monday') I understand what this does in Oracle, however, I am struggling with the conversion to T-SQL in SSMS. I appreciate any …

  4. How to subtract 30 days from the current date using SQL Server

    How to subtract 30 days from the current date using SQL Server Asked 11 years ago Modified 4 years, 10 months ago Viewed 378k times

  5. How to use current date in the where clause - Stack Overflow

    Jan 24, 2017 · SYSDATE and SYSTIMESTAMP returns a date / timestamp (respectively) data type reflecting the current date/time on the server (again, both have a time component). If the …

  6. sql - Cómo restar 1 mes a SYSDATE - Stack Overflow en español

    Jan 4, 2021 · 1 Tengo la siguiente condición en una consulta: to_char(to_date(resolved_time, 'dd/mm/yyyy hh:mi am'),'yyyy') = to_char(sysdate, 'yyyy') Sin embargo, necesito mostrar 1 mes …

  7. fetch records of last 90 days from current date in sql

    May 10, 2013 · WHERE Crdate >= "2013-01-13 09:45:51" David's suggestion works more predictably and is in most cases more correct, which first truncates SYSDATE to return just …

  8. sql server - Difference between GETDATE and SYSDATETIME

    Jul 20, 2018 · What is the difference between GETDATE and SYSDATETIME ? Which one is commonly used? Any help is appreciated.

  9. sql - How do you insert current system date and time? - Stack …

    Jan 23, 2019 · I am trying to insert the current system date and time using the following query, when I use to_timestamp(sysdate,'DD-MON-RR HH24.MI.SSXFF') I don't get the time.

  10. sql - Date Functions Trunc (SysDate) - Stack Overflow

    Jan 12, 2022 · OPEN_DATE >= ((sysdate - 1) - date '1970-01-01') * 86400 db<>fiddle with some made-up data to get 72 back for today, more for the last 24 hours, and more still for the whole …