About 183,000 results
Open links in new tab
  1. Use TO_DATE in SQL Server 2012 - Stack Overflow

    Nov 9, 2011 · Use TO_DATE in SQL Server 2012 Asked 7 years, 11 months ago Modified 5 years ago Viewed 124k times

  2. SQL query to select dates between two dates - Stack Overflow

    Feb 25, 2011 · I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query. select Date,TotalAllowance …

  3. How to create a Date in SQL Server given the Day, Month and …

    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".

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

  5. SQL Server function to return minimum date (January 1, 1753)

    Nov 21, 2016 · I am looking for a SQL Server function to return the minimum value for datetime, namely January 1, 1753. I'd rather not hardcode that date value into my script.

  6. how do I query sql for a latest record date for each user

    Select * from table1 where lastest_date=(select Max(latest_date) from table1 where user=yourUserName) Inner Query will return the latest date for the current user, Outer query …

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

    Jan 20, 2009 · In sqlserver, how do I compare dates? For example: Select * from Users where RegistrationDate >= '1/20/2009' (RegistrationDate is datetime type) Thanks

  8. sql - Check if value is date and convert it - Stack Overflow

    May 8, 2013 · I receive data in a certain format. Dates are numeric(8,0). For example 20120101 = YYYYMMDD There exists rows with values like (0,1,2,3,6) in that date field, thus not a date. I …

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

    select * from dbo.March2010 A where A.Date >= Convert(datetime, '2010-04-01' ) In your query, 2010-4-01 is treated as a mathematical expression, so in essence it read select * from …

  10. How to check date of last change in stored procedure or function …

    Apr 7, 2011 · I need to check when function was changed last time. I know how to check creation date (it is in function properties window in SQL Server Management Studio). I found that in …