Design Table & Search Question

From: Gabriel Laet <gabriel(dot)laet(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Design Table & Search Question
Date: 2007-05-30 18:59:04
Message-ID: 1180551544.139880.271180@g4g2000hsf.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I'm developing an application where basically I need to store cars.
Every car has a Make and Model association. Right now, I have three
tables: MAKE, MODEL (make_id) and CAR (model_id).

1) I'm not sure if I need or not to include "make_id" to the CAR
table. To me, it's clear to associate just the Model. Am I right?

2) I'm thinking in the best way to search content. I'll need to search
data across multiple-tables, and I'm not sure about the best way to do
that. Should I use TSearch2 or just a bunch of LIKEs and JOINs
statements?

I appreciate any help :)
Thanks!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brandon Aiken 2007-05-30 19:16:26 Re: Uhm, so, yeah, speaking of /.
Previous Message Jeff Davis 2007-05-30 18:55:49 Re: Uhm, so, yeah, speaking of /.