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 7510595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:16:05+00:00 2026-05-29T23:16:05+00:00

I inherited a table with about 40 columns and about 1400 rows. Unfortunately, the

  • 0

I inherited a table with about 40 columns and about 1400 rows. Unfortunately, the original designers didn’t include an identifiable PK in the table so I’m assuming they used a natural key with a combination of 4 or 5 columns. However what those columns are are unknown.

Is there any easy way to determine this or do I need to sit down and start trying to reduce it via select statements?

  • 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-29T23:16:08+00:00Added an answer on May 29, 2026 at 11:16 pm

    I ended up taking the approach of excel and filters and narrowing down items until I was left with one entry. After that I then took the approach of making sure those fields would always bring back a unique row.

    To do that I went back to the DB and counted the distinct rows when just selecting those fields.

    It took a bit of guess and check but it ended out working well.

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

Sidebar

Related Questions

I inherited a mysql database that has a table with columns like this: object_id,
Morning folks, I have a temporary table with 135,000 rows and 24 columns, of
I have a simple query for update table (30 columns and about 150 000
I created a table with 4 rows and 16 columns in HTML and I
Introduction: Sheet1 in my excel workbook contains a complex table with about 130 columns
I have a large table (~170 million rows, 2 nvarchar and 7 int columns)
I've inherited a database that has a structure with a table of products, a
I'm using multi-table-inheritance , and want to know how to create an inherited type
I have a table populated with time stamped rows inserted at (essentially) random point
I have a table with two columns where I need one ( columnB )

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.