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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:49:17+00:00 2026-06-10T00:49:17+00:00

I am making a booking module for a hotel management app in mysql and

  • 0

I am making a booking module for a hotel management app in mysql and I am trying to do the following:

Let’s say there is a room and it has been booked by 3 clients on these dates:

2012-09-01 12:00:00 Customer #1
2012-09-02 12:00:00 Customer #1
2012-09-03 12:00:00 Customer #1
2012-12-03 12:00:00 Customer #2
2013-02-01 12:00:00 Customer #3
2013-02-02 12:00:00 Customer #3

These are my mysql data. I am trying to make a master view based on these data:

2012-09-01 :: 2012-09-03 -> Customer #1
2012-12-03 :: 2012-12-03 -> Customer #2
2013-02-01 :: 2013-02-02 -> Customer #3

So that when the administrator clicks on the corresponding customer / date link would show only the data for that customer (taken from the first screen) as a detail view.

Is this possible? Does it need a stored procedure?

  • 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-10T00:49:18+00:00Added an answer on June 10, 2026 at 12:49 am
    SELECT
    DATE(MIN(your_date_column)), DATE(MAX(your_date_column)), customer
    FROM your_table
    GROUP BY customer
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been making a hotel booking software that calculates, for given dates and
I am making a booking app now and have a problem. I need a
I am making a site for booking trucks online. I am using MySql for
I'm looking at making a booking system and I need to display all the
I am making a doctor appointment slot booking mechanism,where in doctor appointment slots will
I see the following error when I start my rails app: $ script/server --environment=production
I am making a booking system where users can make appointments with each other.
Here is my situation: Im currently making a website where it has to be
Making a piano/keyboard application and trying to figure out the best way to set
Making a small WCF test program which is based on a Store that has

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.