Décidément, quand on pousse un peu, Oracle c'est vraiment pas fiable comme SGBD...

Avec une structure de table :

TIE (CODSOC number, TYPTIE varchar2(3), SIGTIE varchar2(12), TYPGRP varchar2(3), SIGGRP varchar2(12), + d'autres colonnes)

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
select 'dtc'
from tie t1
left outer join tie t2 on t2.codsoc = t1.codsoc and t2.typtie = t1.typgrp and t2.sigtie = t1.siggrp
left outer join tie t3 on t3.codsoc = t2.codsoc and t3.typtie = t2.typgrp and t3.sigtie = t2.siggrp
left outer join tie t4 on t4.codsoc = t3.codsoc and t4.typtie = t3.typgrp and t4.sigtie = t3.siggrp
left outer join tie t5 on t5.codsoc = t4.codsoc and t5.typtie = t4.typgrp and t5.sigtie = t4.siggrp
left outer join tie t6 on t6.codsoc = t5.codsoc and t6.typtie = t5.typgrp and t6.sigtie = t5.siggrp
left outer join tie t7 on t7.codsoc = t6.codsoc and t7.typtie = t6.typgrp and t7.sigtie = t6.siggrp
left outer join tie t8 on t8.codsoc = t7.codsoc and t8.typtie = t7.typgrp and t8.sigtie = t7.siggrp
where t1.codsoc = 100
and t1.typtie = 'CLI'
and t1.sigtie = '243392';
=> Si on enlève 'dtc' et qu'on met une étoile :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
ORA-00600: internal error code, arguments: [qctstc2o1], [1], [0], [0], [1], [0], [0], []
00600. 00000 -  "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"
*Cause:    This is the generic internal error number for Oracle program
           exceptions.	This indicates that a process has encountered an
           exceptional condition.
*Action:   Report as a bug - the first argument is the internal error number


Super pratique pour écrire une requête à tâtons si on ne peut plus utiliser *...