J
jj
I have three tables: Furniture, Titles, Descriptions. There's no
relationships (joins, etc)
between any of them.
Here's the design & some sample data:
Table: Furniture
--------------------------------------------------------------------------
Field: Title Field: Description
---------------------- -------------------------------------------
-
Black Satin Sheet Bought at JC Penney's for $20
Old English Brass Lamp Lightbulb broken, needs replacing
Edwardian Chair White with one broken leg
Georgian Dresser Needs polishing with $20 polish from
Safeway
Table: Titles
----------------------
Field: Titles
----------------------
Lamp
Satin Sheet
Edwardian Chair
Table: Descriptions
----------------------
Field: Descriptions
----------------------
$20
broken
Basically the Furniture Table is a list of all possible Titles and
Descriptions, and the other two tables include stuff that I want to delete
from all entries in the Furniture Table. I've written a procedure that loops
through all of the records in the Titles Table looking for entries, using
LIKE in a SELECT statement, and then goes & does the same for the
Descriptions table -- which works, but it's very slow.
I can't seem to figure out how to make a query, because the records in both
the Titles and the Descriptions tables may or may not describe the entire
record in the Furniture table, and if it's not the whole record, it doesn't
even start in the same place. So, I need something that's dynamic for each
record.
Does anyone else have any bright ideas?
Thanks in advance,
JJ
relationships (joins, etc)
between any of them.
Here's the design & some sample data:
Table: Furniture
--------------------------------------------------------------------------
Field: Title Field: Description
---------------------- -------------------------------------------
-
Black Satin Sheet Bought at JC Penney's for $20
Old English Brass Lamp Lightbulb broken, needs replacing
Edwardian Chair White with one broken leg
Georgian Dresser Needs polishing with $20 polish from
Safeway
Table: Titles
----------------------
Field: Titles
----------------------
Lamp
Satin Sheet
Edwardian Chair
Table: Descriptions
----------------------
Field: Descriptions
----------------------
$20
broken
Basically the Furniture Table is a list of all possible Titles and
Descriptions, and the other two tables include stuff that I want to delete
from all entries in the Furniture Table. I've written a procedure that loops
through all of the records in the Titles Table looking for entries, using
LIKE in a SELECT statement, and then goes & does the same for the
Descriptions table -- which works, but it's very slow.
I can't seem to figure out how to make a query, because the records in both
the Titles and the Descriptions tables may or may not describe the entire
record in the Furniture table, and if it's not the whole record, it doesn't
even start in the same place. So, I need something that's dynamic for each
record.
Does anyone else have any bright ideas?
Thanks in advance,
JJ