Modification validée
This commit is contained in:
parent
698002baf0
commit
a842879a99
@ -71,16 +71,16 @@ Zend_Db_Table_Abstract::setDefaultAdapter($db);
|
||||
|
||||
$requests = array(
|
||||
'REF_CodeJournal_' => array(
|
||||
'header' => array('id', 'nomJALedition', 'parution', 'parutionJours', 'aboDateDeb', 'aboDateFin', 'aboVecteur'),
|
||||
'columns' => array('id', 'nomJALedition', 'parution', 'parutionJours', 'aboDateDeb', 'aboDateFin', 'aboVecteur'),
|
||||
'sql' => "SELECT id, nomJALedition, parution, parutionJours, aboDateDeb, aboDateFin, aboVecteur FROM jo.tabJALed;",
|
||||
'header' => array('id', 'nomJALedition', 'parution', 'parutionJours', 'aboDateDeb', 'aboDateFin'),
|
||||
'columns' => array('id', 'nomJALedition', 'parution', 'parutionJours', 'aboDateDeb', 'aboDateFin'),
|
||||
'sql' => "SELECT id, nomJALedition, parution, parutionJours, aboDateDeb, aboDateFin FROM jo.tabJALed;",
|
||||
),
|
||||
'REF_CodeFormeJuridique_' => array(
|
||||
'header' => array('code', 'libelle'),
|
||||
'columns' => array('code', 'libelle'),
|
||||
'header' => array('code', 'libelle', 'libelleCourt'),
|
||||
'columns' => array('code', 'libelle', 'libelleCourt'),
|
||||
'sql' => array(
|
||||
"SET @sumSirene := (SELECT SUM(nbSirene) FROM jo.tabFJur);",
|
||||
"SELECT code, libelle, (nbSirene/@sumSirene )*100 AS pourcentage
|
||||
"SELECT code, libelle, libelleCourt, (nbSirene/@sumSirene )*100 AS pourcentage
|
||||
FROM jo.tabFJur
|
||||
WHERE code>999 AND libelle <> ''
|
||||
ORDER BY pourcentage DESC;"
|
||||
|
Loading…
Reference in New Issue
Block a user