About 30,700,000 results
Open links in new tab
  1. How to SELECT year using a WHERE clause on a DateTime type …

    May 12, 2019 · There is a table Saleswith data from year 2005 to year 2015 I want to query data and filter column Sales_Date with datetime data type where the year is 2013 including all other …

  2. SQL - Select only 'Year' from DateTime field - Stack Overflow

    Oct 3, 2015 · SELECT ,YEAR(DateTime) FROM MayTable But when I run my queries I get this error: Conversion failed when converting date and/or time from character string.

  3. SQL query for extracting year from a date - Stack Overflow

    Nov 19, 2012 · SELECT YEAR(ASOFDATE) FROM PASOFDATE Editted: In anycase if your date is a String, let's convert it into a proper date format. And select the year out of it.

  4. mysql - How to select year in sql statement - Stack Overflow

    Oct 26, 2014 · You can select year for get posts with query_posts (); parameter is year. Example: query_posts ("year=2014"); This is not full question for you, only alternative..

  5. how to extract only the year from the date in sql server 2008?

    Sep 15, 2012 · In sql server 2008, how to extract only the year from the date. In DB I have a column for date, from that I need to extract the year. Is there any function for that?

  6. SQL select * from column where year = 2010 - Stack Overflow

    Apr 28, 2016 · This is probably a simple where clause but I want to say, from columnX (which is datetime) I want all rows where just the year = 2010. so: select * from mytable where Columnx =

  7. getting current year in a dropdown of years - Stack Overflow

    Oct 26, 2017 · I have hard coded the year values, i want to populate this dropdown with current year selected and 3 years before and after that.Eg for current year=2017 i want the list to be …

  8. How to select only year from a Date Time TSQL - Stack Overflow

    May 8, 2013 · How to select only year from a Date Time TSQL Asked 12 years, 7 months ago Modified 12 years, 7 months ago Viewed 26k times

  9. mysql - Get the year out of timestamp sql - Stack Overflow

    Nov 1, 2016 · I have a problem extracting the year out of a mysql timestamp field. I managed to get it work with a datetime field using this method: SELECT id FROM TABLE WHERE …

  10. mysql - SQL - Get result of current year only - Stack Overflow

    How can I get the result of the current year using SQL? I have a table that has a column date with the format yyyy-mm-dd. Now, I want to do select query that only returns the current year result....