Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2013
    Posts
    3

    Question Unanswered: ORA_HASH Function

    Does ORA_HASH function gives unique value everytime??

    I have below req.

    Have 100 distinct records in 2.5 million records and in look up i have 25K values , if i use ORA_HASH function with seed value and max bucket limit , will it generate same value for same input and different value for diff output??

    am stating this as i used inbuilt informatica masking algorithm but it didnt solve my problem....

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    it is a simple single SQL SELECT to validate the results yourself.

    HAVING COUNT(*) > 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  3. #3
    Join Date
    Jul 2013
    Posts
    3

    Thumbs down Wont work with ongoing work

    Cant validate everytime in on going project...

    Do we really know if thats returns unique or not??

  4. #4
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    ROWNUM is guaranteed to be unique
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

  5. #5
    Join Date
    Jun 2004
    Location
    Liverpool, NY USA
    Posts
    2,509
    the ORA_HASH has no guarantee of uniqueness. Two different values may generate the same hash. No likely but very possible.
    Bill
    You do not need a parachute to skydive. You only need a parachute to skydive twice.

  6. #6
    Join Date
    Jul 2013
    Posts
    3

    Thanks for answer

    Thanks bill ..this was the answer i was lookong for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •