Bonjour,
je suis debutant en SQL et je cherche a fusioner des tables.
donner d'entrée:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 
+----------------------------+
| Tables_in_schema_en_etoile |
+----------------------------+
| f                          |
| f1                         |
| f2                         |
| g                          |
| g1                         |
| g2                         |
| h                          |
| h1                         |
| h2                         |
| q                          |
+----------------------------+
10 rows in set (0.00 sec)
 
mysql> select * from h;
+-------+---------+
| O     | Product |
+-------+---------+
| test5 | test6   |
+-------+---------+
1 row in set (0.00 sec)
 
mysql> select * from g;
+-------+-------+
| O     | Store |
+-------+-------+
| test3 | test4 |
+-------+-------+
1 row in set (0.00 sec)
 
mysql> select * from f;
+--------+--------+
| O      | Date   |
+--------+--------+
| test1  | test2  |
| test44 | test45 |
+--------+--------+
2 rows in set (0.00 sec)
 
mysql> select * from q;
+-------+-------+
| O     | Qty   |
+-------+-------+
| test7 | test8 |
+-------+-------+

et je cherche a obtenir le resultat suivant:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
+-------+---------+-------+--------+-------+
| O     | Product | Store | Date   | Qty   |
+-------+---------+-------+--------+-------+
| test5 | test6   |  NULL | NULL   | NULL  |     
+-------+---------+-------+--------+-------+
| test3 |  NULL   | test4 | NULL   | NULL  |  
+-------+---------+-------+--------+-------+
| test1 |  NULL   | NULL  | test2  | NULL  |
+-------+---------+-------+--------+-------+
|test44 |  NULL   | NULL  | test45 | NULL  | 
+-------+---------+-------+--------+-------+
| test7 |  NULL   | NULL  | NULL   | test8 |
+-------+---------+-------+--------+-------+
Pouvez vous m'aidez PLZ ou m'indiquer la solution?

merci d'avance.