Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6151311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:45:08+00:00 2026-05-23T19:45:08+00:00

Does it make any difference to prefer varchar2 over date data type when building

  • 0

Does it make any difference to prefer varchar2 over date data type when building data warehouse in Oracle. My data warehouse is not totally warehouse because date dimension is not necessary (no need for date hierarchy) and it is enough to save date as plain ‘MM-DD-YYYY’ formatted string. Which data type to use nevertheless?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:45:09+00:00Added an answer on May 23, 2026 at 7:45 pm

    Let’s do a little cost/benefit analysis, shall we?

    Leave the "date" field as VARCHAR2

    Pros:

    • Zero computational cost when formatting the date on a report (as long it always appears in the MM-DD-YYYY format).

    Cons:

    • Cannot be indexed (well, in the chronological sense)
    • Searching computation is increased because of TO_DATE calls
    • Requires extra computation if the date must appear in a different format on some report (for example: TO_CHAR(TO_DATE(date_column, 'MM-DD-YYYY'), 'DD-MON-YYYY'))
    • The column does not require all values to adhere to a particular date format, increasing the risk of a failure if TO_DATE is necessary.

    Change the "date" field to DATE

    Pros:

    • Can be searched upon without the overhead of TO_DATE
    • Can be indexed
    • "Bad" values cannot be inserted (although the dates may still make no sense from a business perspective)
    • Can be easily formatted

    Cons:

    • I can’t think of anything off the top of my head

    Hopefully this will help in your particular decision from a technical perspective. There is always the business (or, office politics) perspective:

    date dimension is not necessary

    I will fix that for you:

    date dimension is not necessary yet

    Suppose you leave the column as VARCHAR2 and the client comes along and asks to filter some report on this date field. Suppose this is killing the database server and you finally need to convert it to DATE. Is it relatively easy to make this change in a production environment at your company? Is there plenty of red tape and forms and change control boards you must fight to make your simple change? If you do manage to overcome those hurdles, are you sure that all dates are stored in the same formatting?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does it make any difference if I use e.g. short or char type of
The rest of the match does not make any difference. It's the is not
I am working with Delphi. Does it make any difference in performance if we
Does it make any difference if i copy object by simply assign it to
Does TransactionScope make any difference when there is just one insert in the table?
Does it make any difference to define something as const string msg=_T(serious); const string&
Besides personal preference, does it make any difference? <?php $meta = get_post_meta(get_the_ID(), 'rw_strNum', true);
A simple question. Does it make any difference if one pthread starts multiple sub-pthreads?
Does anyone have any recommendations for a good, fast, make tool? SCons? KJam? Something
Either for comparisons or initialization of a new variable, does it make a difference

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.