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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:46:28+00:00 2026-05-13T06:46:28+00:00

I’m setting up an asset tracking database. Assets vary among black berries, PCs, servers,

  • 0

I’m setting up an asset tracking database. Assets vary among black berries, PCs, servers, monitors, speakers, keyboards, mice, chairs, desks, cubicals, cubical walls, printers, refrigerators, microwaves… the whole range of things.
That range would be my Category table:

create table AssetManagement.zCategory(
   zCategoryId int identity primary key,
   CategoryDescription varchar(15) unique not null
   )

Computers would easily have a category, manufacturer and model, but some assets (chairs or others) may only have a model. Some may only have a manufacturer.

I believe it would be a good design to use a good database design to enforce the following:

  • If a Model’s Manufacturer is known,
    • it’s not possible to store the same model ID elsewhere in the database with a different category or manufacturer
  • An Asset stored in the database must have a category
  • Using an id for a description of ‘unknown’ in any of the 3 would be uncomfortable, but may be necessary)

So while a model might have a known manufacturer, an asset might have a model, or a manufacturer, or both, it should always have a category.

Here’s what I’ve come up with so far, and I thought about using a trigger to enforce what direct foreign keys would not

create table AssetManagement.zModel(
  zModelId int identity primary key,
  zModelDescription varchar(15) unique not null,
  zAssetCategoryId int not null references AssetManagement.zAssetCategory(zAssetCategoryId)
)


create table AssetManagement.zManufacturer(
  zManufacturerId int identity primary key,
  zManufacturerDescription varchar(15) unique not null
)

create table AssetManagement.zProduct
(
 zProductId int identity primary key,
 zProductDescription varchar(35),
 zAssetCategoryId int references AssetManagement.zAssetCategory(zAssetCategoryId),
 zModelId int references AssetManagement.zModel(zModelId),
 zManufacturerId int references  AssetManagement.zManufacturerId(zManufacturerId)

)


create table Assetmanagement.Asset(
  AssetId int identity primary key,
  Tag varchar(15),
  zProductId int not null references assetmanagement.zProduct,
  zLocationId int references assetmanagement.zLocation(zLocationId),
  EmployeeId int references assetmanagement.employee(employeeId),
  PurchasedDate datetime,
  PurchasedBy int references assetmanagement.employee(employeeId),
  DisposalDate datetime,
  Depreciated float,
 AddedBy int references assetmanagement.employee(employeeId),
 AddedDate datetime 
)

Or have a missed the boat and there’s a way to design this that’s convienent (having modelid, manufacturerid, and product type all on the assets table directly while enforcing proper uniqueness?

  • 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-13T06:46:28+00:00Added an answer on May 13, 2026 at 6:46 am

    I would be doing it this way.

    • Asset (id, model_id, asset_tag, created_date);
    • Model (id, category_id, manufacturer, model, description);
    • Category (id, name);
    • Person (id, title, given_names, surname, job_title, …);
    • Assignment (id, asset_id, person_id, start_date, end_date, current_flag).

    Basically, an Asset is something with a tag on it. It contains no information about category, manufacturer or model. You’re denomrmalizing your data if you do it that way. It contains a foreign key to Model, which is that information. I’d see model and manufacturer as being nothing more than freeform text but your requirements may turn either or both into tables in certain circumstances.

    You could store who has the asset in the Asset table but you get no history that way (although that can be done with an Asset History or audit table).

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a reasonable size flat file database of text documents mostly saved in
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is

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.