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

  • SEARCH
  • Home
  • 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 968033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:24:53+00:00 2026-05-16T02:24:53+00:00

I have an application that receives most of its data from a third party.

  • 0

I have an application that receives most of its data from a third party. One of these sets of data is a transaction list. I can’t write to this service, but I want to add more information to that data for use in my own application. I intend to do that with a SQL table with extended info.

The problem is that the third-party data does not return a record identifier from their side. That means I can’t use a third-party primary key as the primary key for my additional data. If I could, I’d obviously just use that key and store extended data.

For example’s sake, the data returned is:

-----------------------------------------------------------------------------
| Client Id | Transaction Date | Transaction Amount | Description | Balance |
-----------------------------------------------------------------------------

Client Id is not unique in this table, however, there is a guarantee that the rest of the information, taken in its totality, is unique.

I want to add additional data. For example:

-------------------------------------------------
| ... | Transaction Category | Hide Transaction |
-------------------------------------------------

I’ve toyed with the idea of using a primary key that is a hash of all of the other information, but querying for that data would be very inefficient as far as I could see. For example, I may want to display 100 transactions on screen. That would require retrieving the data from the third party, hashing each record, and querying my local database for all data with one of those 100 keys.

Does anyone have any suggestions?

  • 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-16T02:24:54+00:00Added an answer on May 16, 2026 at 2:24 am

    I think you answered your own question:

    there is a guarantee that the rest of
    the information, taken in its
    totality, is unique.

    Just make those fields into a composite primary key. Your WHERE clauses will be a little more complex than normal but that’s the trade off.

    You could also create a surrogate key that would work with the composite key if you wanted to make your queries a little simpler.

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

Sidebar

Related Questions

I have a server application that receives some special TCP packet from a client
I have an efficient C# application that receives 80 bytes of data at a
In my iPhone app, the application receives its data from a server in XML
I have an application that receives a number of datums that characterize 3 dimensional
I have a combobox in a view that receives information about application state changes,
I have an application that may receive data via various methods and in various
I'm working on a legacy vb.net application that does most of its work using
Im working with a flex application that pulls data from a java class file
I have a large Compact Frameworks V2.0 application that in most cases works very
I have a C++ application that has its own routines to send and receive

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.