About 130,000 results
Open links in new tab
  1. How to return only the Date from a SQL Server DateTime datatype

    Sep 22, 2008 · The datetime data type cannot have no time at all. I think you are confusing data storage with user presentation. If all you want is a way to show a user a string that has no time portion (not …

  2. How can I select the first day of a month in SQL?

    I used GETDATE () as a date to work with, you can replace it with the date which you need. Here's how this works: First we format the date in YYYYMMDD... format truncating to keep just the 6 leftmost …

  3. Calculate difference between 2 date / times in Oracle SQL

    Oldest cdr date - Date format dd/mm/yyyy hh24:mi:ss How can I calcuate the difference in hours minutes and seconds (and possibly days) between the two dates in Oracle SQL?

  4. sql - Amazon Athena Date Functions - Stack Overflow

    SELECT date '2012-08-01' - interval '1' day Therefore, if you want the last day of the previous month, and as suggested in the comment, using date_trunc:

  5. MS Access Date() Function and SQL Server Query - Stack Overflow

    Where Field Between Date() And Date()-7 What is the proper way to query these from an Access query to SQL server?

  6. MS Access Date() syntax in query to SQL Server - Stack Overflow

    Sep 22, 2020 · In MS Access you likely (not 100% sure for linked SQL, you have to experiment) should use Now() and Date() functions. First one is equivalent to getdate() in SQL, the second one returns …

  7. How to create a Date in SQL Server given the Day, Month and Year as ...

    Feb 23, 2016 · Several are provided in answers to "Create a date with T-SQL". A notable example involves creating the date by adding years, months, and days to the "zero date".

  8. Newest 'sql-date-functions' Questions - Stack Overflow

    Nov 28, 2024 · oracle-database oracle-sqldeveloper to-date sql-date-functions kritika pandey 11 asked Jun 10, 2024 at 20:11

  9. SQL Current date (AS400) - Stack Overflow

    You have to use sysibm.sysdummy1 since SQL on an AS/400 (iSeries, System i, etc.) doesn't let you SELECT values out of thin air. Also note that current date might bring the date back in a different …

  10. sql - DATEDIFF function in Oracle - Stack Overflow

    Feb 9, 2015 · I need to use Oracle but DATEDIFF function doesn't work in Oracle DB. How to write the following code in Oracle? I saw some examples using INTERVAL or TRUNC. SELECT DATEDIFF …