About 123,000 results
Open links in new tab
  1. Comparing Dates in Oracle SQL - Stack Overflow

    Apr 16, 2012 · A date literal is part of the ANSI standard, which means you don't have to use an Oracle specific function. When using a literal you must specify your date in the format YYYY …

  2. How to write date condition on where clause in oracle

    Jan 21, 2017 · I have data in the date column as below. reportDate 21-Jan-17 02-FEB-17 I want to write a query to fetch data for 01/21/2017? Below query not working in Oracle. SELECT * …

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

  5. sql - How to get first and last day of week in Oracle? - Stack …

    0 You could try this approach: Get the current date. Add the the number of years which is equal to the difference between the current date's year and the specified year. Subtract the number of …

  6. How to get the quarter corresponding to a date in Oracle SQL 19c

    Sep 15, 2021 · 13 I will use sysdate for illustration - you can replace that with any expression of date data type. The query returns a string (of a single character, a digit between 1 and 4); if …

  7. sql - Get month name from date in Oracle - Stack Overflow

    Dec 21, 2010 · How to fetch month name from a given date in Oracle? If the given date is '15-11-2010' then I want November from this date.

  8. get week number using oracle date function? - Stack Overflow

    Aug 1, 2016 · I used this query to get week number but getting wrong output of first week but actually its a second week of august-2016. select to_char(TO_DATE('07-08-2016','dd-mm- …

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

    sql oracle-database sql-date-functions edited Sep 11, 2012 at 18:47 Ben 53.1k 36 133 156

  10. sql - What is difference between TO_CHAR and TO_DATE - Stack …

    Feb 4, 2016 · Then you want to convert a date to a varchar so you need to_char(). Never, ever (really: never) call to_date() on a date value.