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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:33:39+00:00 2026-06-13T02:33:39+00:00

I am creating a very simple database table from data provided to me in

  • 0

I am creating a very simple database table from data provided to me in exel format, and I will be using 4 columns:

Date/time
IP address
Hostname
Vulnerability identified

I usually get one exel sheet per day, with anything between 1000 – 3000 rows. The Date/time field consists of YYYYMMDDHHMM and can be duplicated a number of times, but should have a unique IP address against each same date/time column, e.g. 2012-08-26:16:01, 80.3.3.255, 2012-08-26:16:01, 192.168.0.1. Having reviewed some similar questions, would it be more efficient to generate a unique primary key per record, or join the date/time and IP column to create the primary key?

  • 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-06-13T02:33:41+00:00Added an answer on June 13, 2026 at 2:33 am

    This depends on at least two angles:

    • on the WHERE criteria used later for selecting: If you plan to select by timestamp and IP independently, I suggest you create non-unique keys for those and a simple (maybe AUTO_INCREMENT) primary for each row.
    • How you want to deal with it, if a duplicate timestamp/IP does occur: A unique or primary key would rule this out, while a separate key would happily coexist. It depends on your app requirements, which one you prefer.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a caching system to take data from an SQLite database table using
I am creating a very simple forum as my first MVC project. My database
I have a very simple SSIS package where I take data from a view
I'm creating a very simple PHP file that searches a table in my SQLite
I'm creating a very simple django upload application but I want to make it
I am creating a very simple project on OpenGL and I'm stuck with rotations.
I am creating a very simple web service and I don't want to bother
I am experiencing some performance problems when creating a very simple Python HTTP server.
Good morning, A bit of background might help. I'm creating a very simple app
A very simple use case for creating users in webapp2/appengine can be as follows:

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.