Joining every row from 1 table to every row from another
- From: radnor <radnor@xxxxxxxxxxxxxx>
- Date: Thu, 24 Nov 2005 19:42:07 +0000
Hello!
Answer is propably simple, but I'm struggling and can't solve this
problem. I have two tables:
Table GARMENT
STYLE_NO DESCRIPTION LABOUR_COST NOTIONS
1 Trousers 18 xxx
2 Long Skirt 15 Zip/ 1 cm off
3 Shorts 10 Zip/ Clip
Table MATERIAL
MATERIAL_NO FABRIC COLOUR PATTERN COST
1 Silk Black Plain 7
2 Silk Red Abstract 10
3 Cotton Yellow Stripe 3
The thing is to estimate costs of making any garment with any
materials. I need to join all garments to all materials, like
STYLE_NO DESCRIPTION (....) METERIAL_NO
1 XXX 1
1 2
1 3
2 1
2 2
2 3
3 1
3 2
3 3
and so on.. Could anyone please help me with this by giving some
examples of Oracle or MySQL query? Many thanks in advance!
Greetings
Kamil
jak zawsze pozdrawiający
radnor
--
O (=> useer(maupa)go2.pl 05011474(maupa)napier.ac.uk
)/\_,_[__] GG: 5004286 ICQ: 45007845
T>_ [ ] Wariat: człowiek cierpiący na dużą niezależność intelektualną.
.
- Follow-Ups:
- Re: Joining every row from 1 table to every row from another
- From: Bill Karwin
- Re: Joining every row from 1 table to every row from another
- Prev by Date: Re: DBModelled Storage in JAVA
- Next by Date: Re: Information in SQLException
- Previous by thread: DBModelled Storage in JAVA
- Next by thread: Re: Joining every row from 1 table to every row from another
- Index(es):