DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: sqlldr - look up on table to find column value

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    3

    sqlldr - look up on table to find column value

    Hi,

    I am loading table Emp using sqlldr. I need to populate the column Date_paid_key of table Emp by lookin up on another table dates. Sample data is as given below. How can I do it using sqlldr? I can load my csv in a temp table and then proceed. Any other suggestions?

    Src.csv
    EmpId EmpName Salary Date_paid
    1 A 10 4/15/2009
    2 B 20 4/18/2009

    lookup Table dates
    Date Date_key
    4/15/2009 1001
    4/16/2009 1002
    4/17/2009 1003
    4/18/2009 1004

    Target table Emp
    EmpId EmpName Salary Date_paid_key
    1 A 10 1001
    2 B 20 1004
    Last edited by nidi_03; 05-18-2009 at 02:10 PM.

Posting Permissions

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


Click Here to Expand Forum to Full Width