About 183,000 results
Open links in new tab
  1. "truncate log on checkpoint" option in SQL Server

    In SQL Server 2000 and up, SQL Server has a concept of recovery model that defines how the log truncation is honored e.g. In simple recovery - only a checkpoint will truncate the log where …

  2. What is the difference between these extracting date method?

    Jan 26, 2021 · Assuming I have a table called MyTable, with a TimeStamp field "Created". I want only extract the Date part of this column, and in my research I …

  3. sql server - MS SQL full datetime to only month and date

    Jan 1, 2016 · For best performance, use date/time arithmetic to truncate a datetime column to year and month before using it for grouping. There are at least two distinct approaches to that. …

  4. sql server - Truncate with where clause - Database Administrators …

    Apr 12, 2017 · Every SQL Developer wants full control over the Database by query. Due to which they start thinking beyond the SQL syntax. One such misconception is whether a where …

  5. Why TRUNC () date field range constraint is faster?

    Jul 18, 2017 · The index is still shown as employed. But when the index is also adjusted from including date_field to TRUNC(date_field), and this is paired with a constraint rewritten like …

  6. I want to get all the weeks of a month with the start and end dates …

    Jun 1, 2020 · The only "fly in the ointment" is the ',)' at the very end - the OP's requirement is for the string to end 2020-06-28) and not 2020-06-28,), so the very last part of the SQL statement …

  7. How to use an expression like date_trunc () in GROUP BY?

    Aug 1, 2024 · Use table aliases to keep the noise level down. Table-qualify all columns in queries where conflicts or confusion might arise. timestamp::date is equivalent to date_trunc('day', …

  8. oracle - Best way to get current year minus 5 years - Database ...

    Nov 17, 2017 · 3 I'm actually have the next query that I use to obtain the current year minus 5 years in january in this format 'YYYYMM'. select …

  9. Need to count records and group count by date on Oracle

    How hard would it be to accomplish this using SQL Developer on Oracle 10g? I have tried several queries to generate such a table and in the end it does not group the count by date, just gives …

  10. oracle - Database Administrators Stack Exchange

    Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,