Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: database query matching

by egabriel (Initiate)
on Apr 26, 2000 at 21:58 UTC ( [id://9275]=note: print w/replies, xml ) Need Help??


in reply to database query matching

Well, every resort will have a max price, a min price, one location, and many activities. So you can get away with three tables.
resorts      resort_activities  activities<
--------     ----------         ----------
resort_id*   resort_id          activity_id
name	     activity_id        description
location
This isn't too bad for a start. I personally recommend something like postgresql for this. DBD::CSV is good, but I don't know how it does with multi-table relations. You could really do all of this with one table instead of three, but your database wouldn't be 'normalized'. Look into the concept of 'normalization' before you design anything that needs to grow to any useful size.

--Gabriel

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://9275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-25 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found