Date: 06/17/01
- Next message: Rogers, Paul: "[phplib] OOHForms & Templates?"
- Previous message: Ralf Pfeiffer: "[phplib] Compare data-records (all fields) of 2 tables of DB on their contents"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
select
c.id,
o.id
from
client c, object o
where
c.f1=o.f1 and
c.f2=o.f2 and
c.f3=o.f3
-Stewart
-----Original Message-----
From: Ralf Pfeiffer [mailto:rpfeiffer <email protected>]
Sent: 16 June 2001 20:30
To: phplib <email protected>
Subject: [phplib] Compare data-records (all fields) of 2 tables of DB on
their contents
Hello;
I have 2 tables of a database, a table 'clients' and a table 'objects'.
Both tables have identical fields. Each data record (that means all fields
of a data record) of the table 'clients' has to be compared with each data
record of
the table 'objects' (that means with all fields of that data record) on
their
contents according to certain criteria. If one (or more) data record(s) of
the table 'clients' correspond with data record(s) of the table 'objects',
then an email notification has to be send to me for information, that the
data record i of the table 'clients' correspond with the data record j of
the table 'objects'. Anyone has an idea how to realize this?
Thanks Ralf
In German:
Hallo,
Ich habe 2 Tabellen einer Datenbank, eine Tabelle 'Kunden' und eine Tabelle
'Objekte'. Beide Tabellen haben identische Felder. Jeder Datensatz (d.h.
alle Felder eines Datensatzes) der Tabelle 'Kunden' soll mit jedem Datensatz
der Tabelle 'Objekte' (d.h. alle Felder eines Datensatzes) auf deren Inhalt
nach bestimmten Kriterien verglichen werden. Stimmen die Felderinhalte der
Kunden-Datensätze mit den Felderinhalten der Objekt-Datensätze überein, so
soll eine E-mail-Benachrichtigung erfolgen, daß der Kundendatensatz i mit
dem Objektdatensatz j übereinstimmt.
Hat jemand eine Idee wie man so was realisieren kann, oder hat jemand sowas
schon mal gemacht?
Danke euch, cu Ralf
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Rogers, Paul: "[phplib] OOHForms & Templates?"
- Previous message: Ralf Pfeiffer: "[phplib] Compare data-records (all fields) of 2 tables of DB on their contents"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

