Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $95

Query/Module Question

Discussion in 'Information Technology' started by JOM, Jul 28, 2006.

  1. JOM

    JOM
    Expand Collapse
    Guest

    I have a spreadsheet that I would like to import into my database, the thing
    is that I do no want to import duplicates. The spreadsheet has e.g., infor
    such as customer name, loan number comments and alot of other infor. There
    is no unique identifier in the spreadsheet. the loan number could appear
    more than once with one or more column differences.

    So how will import the data into my database and not duplicate rows...
     
  2. Loading...

    Similar Threads Forum Date
    Anyone Have Any Unanswered Questions On Sikhi Or God? Sikh Sikhi Sikhism Jan 7, 2017
    Question About Translations Questions and Answers Dec 20, 2016
    Question About GGS Questions and Answers Aug 28, 2016
    Marriage And Discrimination Related Questions Blogs Mar 21, 2016
    Sikhi Questioning Faith Sikh Sikhi Sikhism Mar 3, 2016

  3. Jeff Boyce

    Jeff Boyce
    Expand Collapse
    Guest

    It sounds like you are saying there is no way to tell if there are
    duplicates (no unique identifier, possibility of multiple records for each
    loan number, etc.).

    How do YOU tell that a spreadsheet row is a duplicate?

    Regards

    Jeff Boyce
    Microsoft Office/Access MVP

    "JOM" <JOM@discussions.microsoft.com> wrote in message
    news:70B69D2C-5564-4B5D-9DE6-B218A560B909@microsoft.com...
    >I have a spreadsheet that I would like to import into my database, the
    >thing
    > is that I do no want to import duplicates. The spreadsheet has e.g.,
    > infor
    > such as customer name, loan number comments and alot of other infor.
    > There
    > is no unique identifier in the spreadsheet. the loan number could appear
    > more than once with one or more column differences.
    >
    > So how will import the data into my database and not duplicate rows...
     
  4. JOM

    JOM
    Expand Collapse
    Guest

    The information in the spreadsheet is coming from a mainfrom program.
    The spreadsheet will contain infor such as (this is just an illustration as
    there are about 1o columns)

    loan Number: 123456
    Borrower: John
    Action Code: XYZ
    Action Reason: EM12-123

    loan Number: 123456
    Borrower: John
    Action Code: XYZ
    Action Reason: EF12-100

    loan Number: 789654
    Borrower: Mark
    Action Code: XYZ
    Action Reason: EF12-127
    "Jeff Boyce" wrote:

    > It sounds like you are saying there is no way to tell if there are
    > duplicates (no unique identifier, possibility of multiple records for each
    > loan number, etc.).
    >
    > How do YOU tell that a spreadsheet row is a duplicate?
    >
    > Regards
    >
    > Jeff Boyce
    > Microsoft Office/Access MVP
    >
    > "JOM" <JOM@discussions.microsoft.com> wrote in message
    > news:70B69D2C-5564-4B5D-9DE6-B218A560B909@microsoft.com...
    > >I have a spreadsheet that I would like to import into my database, the
    > >thing
    > > is that I do no want to import duplicates. The spreadsheet has e.g.,
    > > infor
    > > such as customer name, loan number comments and alot of other infor.
    > > There
    > > is no unique identifier in the spreadsheet. the loan number could appear
    > > more than once with one or more column differences.
    > >
    > > So how will import the data into my database and not duplicate rows...

    >
    >
    >
     
  5. Jeff Boyce

    Jeff Boyce
    Expand Collapse
    Guest

    Thank you for an example of the data you receive. My question still stands.
    What criteria are YOU using to determine "uniqueness" of a record? You need
    to be able to explain that before you can hope to tell Access how to do
    that...

    Regards

    Jeff Boyce
    Microsoft Office/Access MVP

    "JOM" <JOM@discussions.microsoft.com> wrote in message
    news:72384B0B-7F9B-429B-96C1-C3B5AE98AF36@microsoft.com...
    > The information in the spreadsheet is coming from a mainfrom program.
    > The spreadsheet will contain infor such as (this is just an illustration
    > as
    > there are about 1o columns)
    >
    > loan Number: 123456
    > Borrower: John
    > Action Code: XYZ
    > Action Reason: EM12-123
    >
    > loan Number: 123456
    > Borrower: John
    > Action Code: XYZ
    > Action Reason: EF12-100
    >
    > loan Number: 789654
    > Borrower: Mark
    > Action Code: XYZ
    > Action Reason: EF12-127
    > "Jeff Boyce" wrote:
    >
    >> It sounds like you are saying there is no way to tell if there are
    >> duplicates (no unique identifier, possibility of multiple records for
    >> each
    >> loan number, etc.).
    >>
    >> How do YOU tell that a spreadsheet row is a duplicate?
    >>
    >> Regards
    >>
    >> Jeff Boyce
    >> Microsoft Office/Access MVP
    >>
    >> "JOM" <JOM@discussions.microsoft.com> wrote in message
    >> news:70B69D2C-5564-4B5D-9DE6-B218A560B909@microsoft.com...
    >> >I have a spreadsheet that I would like to import into my database, the
    >> >thing
    >> > is that I do no want to import duplicates. The spreadsheet has e.g.,
    >> > infor
    >> > such as customer name, loan number comments and alot of other infor.
    >> > There
    >> > is no unique identifier in the spreadsheet. the loan number could
    >> > appear
    >> > more than once with one or more column differences.
    >> >
    >> > So how will import the data into my database and not duplicate rows...

    >>
    >>
    >>
     
  6. JOM

    JOM
    Expand Collapse
    Guest

    Jeff,
    A loan number needs to be unique, but that would contradict the example I
    provided. When the data is imported, access generates a PK.


    "Jeff Boyce" wrote:

    > Thank you for an example of the data you receive. My question still stands.
    > What criteria are YOU using to determine "uniqueness" of a record? You need
    > to be able to explain that before you can hope to tell Access how to do
    > that...
    >
    > Regards
    >
    > Jeff Boyce
    > Microsoft Office/Access MVP
    >
    > "JOM" <JOM@discussions.microsoft.com> wrote in message
    > news:72384B0B-7F9B-429B-96C1-C3B5AE98AF36@microsoft.com...
    > > The information in the spreadsheet is coming from a mainfrom program.
    > > The spreadsheet will contain infor such as (this is just an illustration
    > > as
    > > there are about 1o columns)
    > >
    > > loan Number: 123456
    > > Borrower: John
    > > Action Code: XYZ
    > > Action Reason: EM12-123
    > >
    > > loan Number: 123456
    > > Borrower: John
    > > Action Code: XYZ
    > > Action Reason: EF12-100
    > >
    > > loan Number: 789654
    > > Borrower: Mark
    > > Action Code: XYZ
    > > Action Reason: EF12-127
    > > "Jeff Boyce" wrote:
    > >
    > >> It sounds like you are saying there is no way to tell if there are
    > >> duplicates (no unique identifier, possibility of multiple records for
    > >> each
    > >> loan number, etc.).
    > >>
    > >> How do YOU tell that a spreadsheet row is a duplicate?
    > >>
    > >> Regards
    > >>
    > >> Jeff Boyce
    > >> Microsoft Office/Access MVP
    > >>
    > >> "JOM" <JOM@discussions.microsoft.com> wrote in message
    > >> news:70B69D2C-5564-4B5D-9DE6-B218A560B909@microsoft.com...
    > >> >I have a spreadsheet that I would like to import into my database, the
    > >> >thing
    > >> > is that I do no want to import duplicates. The spreadsheet has e.g.,
    > >> > infor
    > >> > such as customer name, loan number comments and alot of other infor.
    > >> > There
    > >> > is no unique identifier in the spreadsheet. the loan number could
    > >> > appear
    > >> > more than once with one or more column differences.
    > >> >
    > >> > So how will import the data into my database and not duplicate rows...
    > >>
    > >>
    > >>

    >
    >
    >
     
  7. Jeff Boyce

    Jeff Boyce
    Expand Collapse
    Guest

    We don't seem to be talking about the same thing.

    Step back from the Access/Excel situation for a moment...

    Imagine you have a stack of papers, each sheet containing a collection of
    data (?a transaction).

    You hand the stack to someone else and say "If you already have a copy of
    one of these sheets in YOUR stack, you can throw MY copy away; otherwise,
    add MY copy to YOUR stack."

    The person you hand the stack to would have to look at YOUR copy and somehow
    figure out if s/he already had a copy of the same sheet. How would s/he
    decide? What data on YOUR sheet would have to match what data on HIS/HER
    sheet for the person to call them a copy?

    Regards

    Jeff Boyce
    Microsoft Office/Access MVP


    "JOM" <JOM@discussions.microsoft.com> wrote in message
    news:B17C5021-CD85-41A0-8A94-493053757476@microsoft.com...
    > Jeff,
    > A loan number needs to be unique, but that would contradict the example I
    > provided. When the data is imported, access generates a PK.
    >
    >
    > "Jeff Boyce" wrote:
    >
    >> Thank you for an example of the data you receive. My question still
    >> stands.
    >> What criteria are YOU using to determine "uniqueness" of a record? You
    >> need
    >> to be able to explain that before you can hope to tell Access how to do
    >> that...
    >>
    >> Regards
    >>
    >> Jeff Boyce
    >> Microsoft Office/Access MVP
    >>
    >> "JOM" <JOM@discussions.microsoft.com> wrote in message
    >> news:72384B0B-7F9B-429B-96C1-C3B5AE98AF36@microsoft.com...
    >> > The information in the spreadsheet is coming from a mainfrom program.
    >> > The spreadsheet will contain infor such as (this is just an
    >> > illustration
    >> > as
    >> > there are about 1o columns)
    >> >
    >> > loan Number: 123456
    >> > Borrower: John
    >> > Action Code: XYZ
    >> > Action Reason: EM12-123
    >> >
    >> > loan Number: 123456
    >> > Borrower: John
    >> > Action Code: XYZ
    >> > Action Reason: EF12-100
    >> >
    >> > loan Number: 789654
    >> > Borrower: Mark
    >> > Action Code: XYZ
    >> > Action Reason: EF12-127
    >> > "Jeff Boyce" wrote:
    >> >
    >> >> It sounds like you are saying there is no way to tell if there are
    >> >> duplicates (no unique identifier, possibility of multiple records for
    >> >> each
    >> >> loan number, etc.).
    >> >>
    >> >> How do YOU tell that a spreadsheet row is a duplicate?
    >> >>
    >> >> Regards
    >> >>
    >> >> Jeff Boyce
    >> >> Microsoft Office/Access MVP
    >> >>
    >> >> "JOM" <JOM@discussions.microsoft.com> wrote in message
    >> >> news:70B69D2C-5564-4B5D-9DE6-B218A560B909@microsoft.com...
    >> >> >I have a spreadsheet that I would like to import into my database,
    >> >> >the
    >> >> >thing
    >> >> > is that I do no want to import duplicates. The spreadsheet has
    >> >> > e.g.,
    >> >> > infor
    >> >> > such as customer name, loan number comments and alot of other infor.
    >> >> > There
    >> >> > is no unique identifier in the spreadsheet. the loan number could
    >> >> > appear
    >> >> > more than once with one or more column differences.
    >> >> >
    >> >> > So how will import the data into my database and not duplicate
    >> >> > rows...
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page