MySqlTalk.com  

Go Back   MySqlTalk.com > MySQL > Database Design
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread
Old 11-29-2004, 09:33 PM   #1
Tsynergy
Junior Member
 
Join Date: Nov 2004
Posts: 2 Tsynergy is on a distinguished road
Needt to design rental database - How do I begin

Hi

I am to design a community rental database.
I've already done the following:

1. Read a book on php&mysql
2. Gained access to hosting where php and mysql tools are available for my use
3. Able to use an already registered domain name
4. Working experience of html

The book I read gives the syntax for php and mysql scripts. Yet its seems to me that I don't just begin coding without some kind of road map. Something that connects every aspect of the community rental requirement for this database; and, which results in a functional website from both server and client side. Please help me get started.

Tj
Tsynergy is offline   Fork this post Reply With Quote
Old 11-29-2004, 10:24 PM   #2
Administrator
Administrator
 
Join Date: Jun 2004
Posts: 383 Administrator is on a distinguished road
Re: Needt to design rental database - How do I begin

This is a huge undertaking considering you are just learning all of this. Everyone has their own take on how to begin something like this and a lot depends on how much programming you've done in the past. If you are an experienced programmer, this will be much easier of course. If not, then it will take you a very long time. I wouldn't worry about the road map at first. I'd start with one module/aspect of what you're looking to do. Build it simple first, then as you get experience, build more of it, and then you'll be ready to plan a road map.

If you have a timetable and want to get a headstart, you might want to look at some existing app that's similar and that you can modify. Or look at a templating system that can give you a huge headstart. I never used it, but I heard that "smarty" was good.
Administrator is offline   Fork this post Reply With Quote
Old 12-01-2004, 04:47 AM   #3
Vmusic
Junior Member
 
Join Date: Dec 2004
Posts: 11 Vmusic is on a distinguished road
Re: Needt to design rental database - How do I begin

Hi,
Yes designing databases is extremely important and can be tricky. I do it for a living.
What exactly are you renting? Properties?

You normally start by describing all the business entities and their relationships. For example
A person can rent zero, one, or many properties.
A property can be rented by one person at one time, and many people over time.
A property is owned by a person or company.
A property rental rate varies by calendar date(s) or seasons


Some smart practices for design, if you're not keeping history on your business entities include: each and every table should have 4 tracking columns: creation_date, creation_userid, last_update_date, last_update_userid; use auto increment to generate unique identifiers for your business entities


I can tell without knowing your requirements, you'll have to store people and organizations or companies. You can place them into one table called a 'party' table. It should minimally have
party_id, party_type, person_fnm, person_mi, person_lnm, org_nm
if a row in this table represents a person it's party_type will be 'PERSON' whereas if it represents a copmany or organization it will be 'ORGANIZATION'.

Keep a separate table to store information about the property vs. the rental. The property itself exists if or if not it is ever rented. The rental is the association or relationship of a person (or many people), a property, some time frame, some amount, etc.

OK... you have to start with defining your business entities and their relatoinships to see what information you have to capture

Good Luck
Tell E.F. Codd I said Hi!!!

Vmusic
Vmusic is offline   Fork this post Reply With Quote
Old 12-01-2004, 06:24 AM   #4
Administrator
Administrator
 
Join Date: Jun 2004
Posts: 383 Administrator is on a distinguished road
Re: Needt to design rental database - How do I begin

Quote:
Originally Posted by Vmusic
Tell E.F. Codd I said Hi!!!

Vmusic
Unfortunately he passed away recently. What a genius he was. The guy who taught me everything I know about databases knew him and talked a lot about the theory behind databases.

Last edited by Administrator : 12-01-2004 at 06:30 AM.
Administrator is offline   Fork this post Reply With Quote
Old 12-16-2004, 03:09 AM   #5
Tsynergy
Junior Member
 
Join Date: Nov 2004
Posts: 2 Tsynergy is on a distinguished road
Re: Needt to design rental database - How do I begin

Thanks for your comments.

In reviewing Smarty I was directed to also look at PHPSavant, which I did. I decided go with PHPSavant because it is consistent with the PHP coding language.

Also, I appreciate the concrete ideas for the database structure.
Tsynergy is offline   Fork this post Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.3 Creating and Using a Database Administrator Documentation 13 06-09-2004 04:56 PM
1.2 Overview of the MySQL Database Management System Administrator Documentation 0 06-07-2004 10:11 PM



All times are GMT -4. The time now is 01:21 PM.



Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Google
  Web http://www.mysqltalk.com
DISCLAIMERS:
1. We have no commercial interest in this site.
Banner Ads and Subscriptions will only be used to help pay for hosting and maintenance costs.
2. MySQLTalk.com is NOT affiliated with MySQL AB in any way.
3. MySQLTalk.com is NOT endorsed by MySQL AB in any way.
4. Please do not post any content that is harmful to MySQL or MySQL AB, meaning no misleading or obsolete information will be tolerated.
Well-founded constructive criticism meant to help the community is permitted.
5. This website is founded with the goal of improving the MySQL community.
We not only tolerate newbies, we encourage them.
Please do not ask newbies to "read the manual".