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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:26:50+00:00 2026-06-03T04:26:50+00:00

I am implementing a loaner system and would like find out the most efficient

  • 0

I am implementing a loaner system and would like find out the most efficient / database standard structure technique to use for the loan records. Let me start with the basics:

I have two tables:

Customer_Record(id, f_name, l_name, p_number)

Loaner_Pool(id, model, serial_n, status)

The idea is that the loaner pool consists of a list of gear like: Mouse/Keyboard/Laptop/Batteries/Camera/etc. Status represents if the item is booked out or not. What I would like to know is how to design the loan record table(s) that will hold the individual loans of the customers. I had two ideas of doing this:

Idea 1

Have one record entry that has a column called “gear_list” which will hold the id’s of all the gear booked out by the customer separated by a symbol like “,” such as:

Table: loans(id, customer_id, gear_list, date, status)

Example Loan:

loans[102, 30001, “23, 34, 949, 293”, timestamp, “out”]

With this idea I have keep my entry’s low. However I then have to process the “gear_list” column every time in PHP in order to separate the id values for the gear loaned out then do individual SELECT’s to obtain the data.

Idea 2

Have each item the customer wants to loan as a separate entry in the table. The table would look the same as Idea 1 but “gear_list” would only hold ONE id for each loaned item.

Table: loans(id, customer_id, loan_pool_id, date, status)

Example Loan:
loans[102, 30001, “23”, timestamp, “out”]

loans[102, 30001, “34”, timestamp, “out”]

loans[102, 30001, “949”, timestamp, “out”]

loans[102, 30001, “293”, timestamp, “out”]

For this idea the amount of records will increase by alot after a number of loans have been processed. The column “gear_list” becomes “loan_pool_id” since it only holds one id. The benefit is the ability to have only one id in the “loan_pool” for easy manipulation/reporting.

Is there a better way of handling the situation?

Thanks in advance!

  • 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-03T04:26:51+00:00Added an answer on June 3, 2026 at 4:26 am

    Your second choice is the correct choice for a relational database system.

    You are determining the key entities that the database needs to store, and then designing them with the correct attributes.

    The first method is storing multiple things in a single field, usually an indication of poor design.

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

Sidebar

Related Questions

implementing service something similar with tinyurl or bit.ly, I'm would like to expose service
After implementing most of the common and needed functions for my Graph implementation, I
Implementing a custom VM and I've come to use registers (these will store pointers
Implementing a low pass FIR filter, when should one use FFT and IFFT instead
When implementing move constructors and move assignment operators, one often writes code like this:
You are implementing an ASP>NET application that makes extensive use of javscript libraries. Not
After implementing the data structure suggested in this thread , I decided to fill
Implementing Ajax requests in my rails 3 app has been one of the most
Does implementing the Zend Framework require the existing MySQL database to be modified? If
Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation

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.