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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:40:23+00:00 2026-06-07T14:40:23+00:00

Please help in structuring following type of data (example)- > i have 1 table

  • 0

Please help in structuring following type of data (example)- >

i have 1 table with list of all addresses of Restaurants.(1 database table for each City )

On querying each restaurant it returns a list of people who are in restaurant in format
{name ,timeduration,bill}
The number of rows returned in List is dynamic.

Now how can i store this data in mysql .

I would like to search by name etc so i cannot put full text in one column!

  • 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-07T14:40:25+00:00Added an answer on June 7, 2026 at 2:40 pm

    Here is a structure to get you started:

    CITY
    ----------
    id
    name
    
    RESTAURANT
    -----------
    id
    name
    phone
    address
    city_id
    
    PEOPLE
    ----------
    id
    name
    
    ORDER
    ----------
    id
    restaurant_id
    people_id
    total (bill)
    duration
    date
    
    RESTAURANT_ORDER
    -----------------
    id
    restaurant_id
    order_id
    

    The restaurant_order table connects the restaurant with the people that ate there. Look here http://www.tizag.com/mysqlTutorial/mysqljoins.php for info how to retrieve stuff from it.

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

Sidebar

Related Questions

please help .... i have a tableview with a list of vehicle what i
Please help me: I have two columns in mysql table - date1 (datetime) and
Please help. I have the following - ListView and its two handlers AdminUsersListView_ItemEditing, AdminUsersListView_Load.
please help me out from this I have created a database in Blackberry phone
Please help me to improve the following script: http://jsfiddle.net/n9BkM/8/ I need the following fucntionality:
please help me to identify which of these following is more optimized code? for(int
Please help me understand the following code snippet :- def any(l): whether any number
Please Help me to do this first i have this div <div class=loader alt=stat.php>
Please help me with the following implementation of Counting Sort in Java. I am
Please help me understand the meaning of this code. I have seen this kind

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.