Fix SQL by Yoann
This commit is contained in:
parent
b7ebfa4709
commit
be94b95f19
@ -1,5 +1,3 @@
|
||||
SELECT codNaf5 AS codNaf, libNaf5 AS libNaf
|
||||
FROM jo.tabNaf5
|
||||
UNION SELECT codNaf700 AS codNaf, libNaf700 AS libNaf
|
||||
FROM jo.tabNaf4
|
||||
ORDER BY codNaf
|
||||
SELECT codNaf5 AS codNaf, libNaf5 AS libNaf FROM jo.tabNaf5 WHERE LENGTH(codNaf5)=5
|
||||
UNION
|
||||
SELECT codNaf700 AS codNaf, libNaf700 AS libNaf FROM jo.tabNaf4 WHERE libNaf700!='' ORDER BY codNaf;
|
Loading…
Reference in New Issue
Block a user