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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:27:04+00:00 2026-06-09T08:27:04+00:00

The Idea: I have two tables: a table of dates (CALENDAR) and a table

  • 0

The Idea:
I have two tables: a table of dates (CALENDAR) and a table of locations (6 locations total). I would like to do a select statement that joins the two tables together such that I a get 6 rows per date, where each date row is duplicated for each location. For example, if I’m selecting August 21, 22, and 23 from CALENDAR for the locations ‘New York’, ‘Spain’, and ‘Michigan’, I want the returned rows to look like:

August 21 - New York 
August 21 - Spain
August 21 - Michigan
August 22 - New York
August 22 - Spain
August 22 - Michigan
August 23 - New York
August 23 - Spain
August 23 - Michigan

The Problem: I only have limited SQL experience so I don’t know how to do this kind of join. Can anyone provide a code sample which would replicate the same behavior?

  • 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-09T08:27:06+00:00Added an answer on June 9, 2026 at 8:27 am

    It’s not a join at all – there’s no relation between the two tables. So…

    Select Date, Location
    FROM Calendar, Locations
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, I have two tables that I am joining and doing a select on
am trying to query a table for rows that have dates between two dates.
I have two tables: 1) One is the location table that is kept from
I have two tables which look like this: T1: T1ID | Date | Time
I have two tables, one called customer and one called customer_attributes . The idea
I have a one to many relationship between two tables. The many table contains
I have two seperate tables in my DB, here the relevant fields: table images:
I have two tables, one table is the items container, which holds all data
The Idea I have a main PHP page that loads content in DIV's from
For the program idea I have, it requires that the software be written in

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.