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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:34:34+00:00 2026-05-20T01:34:34+00:00

I have a database where I store houses. Each house can have multiple facilities,

  • 0

I have a database where I store houses. Each house can have multiple facilities, and each facility can have multiple values.

Let’s say I want to store the type of a house (apartment, villa, studio, etc..). What I’m thinking is to have a property_type table for the house types and a facilities table where I’ll save the home_id and the property_type_id.

Is my thinking correct? Is there a better way?

  • 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-20T01:34:35+00:00Added an answer on May 20, 2026 at 1:34 am

    This is kind of what I picture. I’m a bit confused about your definition of facility however. I see facility as being like a gym, fitness center, or covered parking, etc.

     Property table
     | property_id | property_type_id
        111               001
        112               002
    
    
     Property type table
     | property_type_id | description
       001              |    house
       002              |   apartment
       003              |    villa
    
    
     Facility
     | facility_id      | description       |   property_id
     |    999           |  community bathroom |   111
     |    998           |  community kitchen |    111
     |    997           |  fitness center   |     112
     |    996           |  covered parking  |     111
     |    995           |  covered parking  |     112
    
     Tenant/Owner table
     | owner_id         |  property_id
     |   888            |   111
     |   887            |   112
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to store blog style comments in a database. Each comment can have
I have a database field where I want to store my password. In a
My MySQL database can store the euro symbol just fine (as I have tested
I have 100000 Ids to store into our DataBase. Id is in string format.each
I have a database where I store objects. I have the following (simplified) schema
I'm making a hit counter. I have a database and I store the IP
I have a database which needs to store year ranges (such as lifespan) which
I have two nvarchar fields in a database to store the DataType and DefaultValue,
I have been given the task to design a database to store a lot
Duplicate: SQL - how to store and navigate hierarchies If I have a database

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.