473,387 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to setup MySql Restaurant d/b schema

I'm a novice with MySql - needing to know how to setup the schema for a 'restaurant guide' website. Here is the search argument:

-----------------------------------------
I want a ($$$,$$,$) restaurant
in (city or state)
serving (american, mexican, etc) cuisine
and is (quiet, busy)
-----------------------------------------

How many tables would you recommend? Is Netbeans a worthwhile tool? Restaurants will be optionally able to upload a menu, choose hours of operation, parking (yes, no) etc like Yelp's parameters. There will be Google map integration and I want to eventually move this all over to a mobile app. Finally, do you know where I can get an existing populated d/b of US rest. names free?
Thanks a bunch. Bret
Oct 12 '10 #1
4 3363
JKing
1,206 Expert 1GB
You would want a main restaurant table. In this it would store the information about each restaurant. For best practices you will want to separate information like states, cities into their own tables and only store the id as a foreign key in the restaurant table.

Sounds like you have a large project ahead of you. If you are struggling with the database side of things you may want to think about outsourcing it.
Oct 29 '10 #2
Thanks JKing for your reply.

You say to create the following tables:
CITY
STATE

OK!

Do these categories need to be in separate tables also?
CUISINE
$, $$, $$$
QUIET
BUSY

Thanks
Oct 29 '10 #3
JKing
1,206 Expert 1GB
Cuisine is something I would put into a separate table as there will many different values.

I would use an enum data type for the quiet/busy field.

Not sure what the $$ fields are supposed to represent?
Nov 1 '10 #4
Thanks JKing. The $$ fields are cheap, moderate, expensive, hence $, $$, $$$.
Nov 16 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Morten Gulbrandsen | last post by:
Hi programmers, I try to investigate some of the basics behind schemas and cataloges, Which is part of SQL2 Language this is the error message I get:
4
by: Dave | last post by:
I have a MS sql 2000 db that needs to sync with a Mysql db. When a password is changed in the MS SQL table, I need to make sure that the same value is updated in the Mysql db. I dont have any...
0
by: Prawdziwa Blondynka | last post by:
Hi, I would like to do the following with C++ and Xerces: set the schema path in an XML file to parse in this way: XMLCh* schemaLocation = XMLString::transcode(namespaceAndPath);...
4
by: wink martindale | last post by:
Hello, I installed mysql server 4.1 last month. When I installed it, I set it to run as a service to start automatically. However, for some reason, that no longer occurs. I can't even see the...
0
by: mistral | last post by:
What is best selection for 'collation' parameter - for those, who need use two languages, latin(english) and cyrillic(russian) on website and need that mySQL handled and stored both languages...
3
by: h4xPace | last post by:
I am building a MySQL query application, and I have run into a small snag. MySQL has released a set of classes that extend the .NET framework base data classes (command, connection, etc), and I am...
2
by: bala_e | last post by:
Hi, We are using DB2 UDB 8.2 on AIX 5.X. My question is regarding for setting the default schema for a particular user group. Let explain below. Let say we are having the following user...
2
by: joshMcwatters | last post by:
Hi, I'm trying us mySql user defined variables in a cfquery tag, but I keep getting an error. I know the statement should work because I've tested it a mySQL GUI without problems. ...
0
JamieHowarth0
by: JamieHowarth0 | last post by:
I have been trying to find a solution to this on the Internet for months. Literally, ages and ages and ages, praying that someone in the open-source community has enough knowledge to put together an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.