Received: from issv0171.isis.de (issv0171.isis.de [195.158.131.223]) by postgresql.org (8.11.3/8.11.4) with SMTP id fAG8nmm85961 for ; Fri, 16 Nov 2001 03:49:49 -0500 (EST) (envelope-from vygen@planwerk6.de) Received: (qmail 3282 invoked by uid 1010); 16 Nov 2001 08:49:44 -0000 Received: from unknown (HELO janning.planwerk6.local) ([195.158.137.36]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 16 Nov 2001 08:49:44 -0000 Received: from janning (localhost [127.0.0.1]) by janning.planwerk6.local (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id fAG8kKI30244 for ; Fri, 16 Nov 2001 09:46:20 +0100 From: Janning Vygen Organization: Planwerk 6 /websolutions To: Subject: image db with keywords? n:n or 1:n relation Date: Fri, 16 Nov 2001 09:46:20 +0100 X-Mailer: KMail [version 1.1.99] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Message-Id: <01111609462004.29964@janning> Content-Transfer-Encoding: 8bit X-Archive-Number: 200111/280 X-Sequence-Number: 5662 Hi folks, a friend and me are discussing about the following problem: if you have a small image database and you want to add descriptions to every image like "Car" "Smoking Man" Do you reuse the Keyword Car for every image with a car?? (n:n relation) or do you have two entries in the description table with content "car"?? For me it looks like solution with n:n relation is much more complicated, its not natural, but its normalized. second solution might not be normalized, but its much easier to understand and to handle, easier to change a keyword for a given image. thanks for any hints or opinions. janning