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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:30:52+00:00 2026-05-27T05:30:52+00:00

I have two large tables, as follows: First Table: tbl_properties id address city state

  • 0

I have two large tables, as follows:

First Table:

tbl_properties
    id
    address
    city
    state
    zip
    timestamp

Second Table:

tbl_units
    id
    propertyID (relates the unit to a property)
    unitName
    timestamp

I am trying to create a list of all properties without units, AND all units (aligned with its property).

So for an example, if I have:

PROPERTIES:

  • 1234 Ashton Lane San Fran, CA 90001
  • 6485 Johnson Lane San Fran, CA 54678

    UNITS:

  • 1A (part of 1234 Ashton)

  • 1B (part of 1234 Ashton)
  • 1C (part of 1234 Ashton)

Then the query will create the following:

  • 1234 Ashton Lane San Fran, CA 90001 – Unit 1A
  • 1234 Ashton Lane San Fran, CA 90001 – Unit 1B
  • 1234 Ashton Lane San Fran, CA 90001 – Unit 1C
  • 6485 Johnson Lane San Fran, CA 54678

Thanks all, for the help.

  • 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-27T05:30:53+00:00Added an answer on May 27, 2026 at 5:30 am

    That’s what left joins are for.

    SELECT * FROM tbl_properties LEFT JOIN tbl_units ON propertyID=tbl_properties.id
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two very large enterprise tables in an Oracle 10g database. One table
I have two large tables -Master table A: 1.4million rows -Detail table B: 9
I have two large tables in MySQL, one containing about 6,00,000 records and another
I have two quite large tables, let's call them 'authors' and 'articles'. Every row
I have a large database with two tables: stat and total. The example of
1) My question is that, when i have two large table which cannot be
I have a large table (~1M rows now, soon ~10M) that has two ranked
I have a large DB having > 20,000 rows. I have two tables songs
This is for an upcoming project. I have two tables - first one keeps
I have two very large tables, Table1 and Table2. They look like this: Table1

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.