About 230,000 results
Open links in new tab
  1. Get the last day of the month in SQL - Stack Overflow

    From SQL Server 2012 you can use the EOMONTH function. Returns the last day of the month that contains the specified date, with an optional offset. Syntax

  2. sql - Convert String to Date in MS Access Query - Stack Overflow

    23 Use the DateValue() function to convert a string to date data type. That's the easiest way of doing this.

  3. sql - Oracle date function for the previous month - Stack Overflow

    25 I have the query below where the date is hard-coded. My objective is to remove the harcoded date; the query should pull the data for the previous month when it runs.

  4. Get day of week in SQL Server 2005/2008 - Stack Overflow

    If I have a date 01/01/2009, I want to find out what day it was e.g. Monday, Tuesday, etc... Is there a built-in function for this in SQL Server 2005/2008? Or do I need to use an auxiliary table?

  5. get DATEDIFF excluding weekends using sql server

    I am using this query to get time taken. SELECT DATEDIFF(dd, ActualStartDate, ActualCompletionDate) AS TimeTaken FROM TableName Now I want to exclude weekends …

  6. 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 …

  7. sql - Oracle date "Between" Query - Stack Overflow

    I am using oracle database. I want to execute one query to check the data between two dates.

  8. How do I query for all dates greater than a certain date in SQL …

    where A.Date >= '2010-04-01' it will do the conversion for you, but in my opinion it is less readable than explicitly converting to a DateTime for the maintenance programmer that will come after you.

  9. 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?

  10. sql server - Get week number in year from date - Stack Overflow

    This question is for sql-server specific, and sql-server doesn't have week() function, so you will need to use datepart() as other answers.