N°6361 - [ERGO] Change query example order to highlight the one working on an empty iTop

This commit is contained in:
BenGrenoble
2023-08-16 11:04:56 +02:00
parent 22d04cb9fc
commit 5a0b12f078

View File

@@ -41,9 +41,9 @@ function ShowExamples($oP, $sExpression)
$aExamples = array(
'Pedagogic examples' => array(
"Web applications" => "SELECT WebApplication",
"Person" => "SELECT Person",
"Person having an 'A' in their name" => "SELECT Person AS B WHERE B.name LIKE '%A%'",
"Servers having a name like dbserver1.demo.com or dbserver023.foo.fr" => "SELECT Server WHERE name REGEXP '^dbserver[0-9]+\\\\..+\\\\.[a-z]{2,3}$'",
"Organization having a name beginning by 'My'" => "SELECT Organization WHERE name REGEXP '^My[a-z]*'",
"Changes planned on new year's day" => "SELECT Change AS ch WHERE ch.start_date >= '2009-12-31' AND ch.end_date <= '2010-01-01'",
"IPs in a range" => "SELECT DatacenterDevice AS dev WHERE INET_ATON(dev.managementip) > INET_ATON('10.22.32.224') AND INET_ATON(dev.managementip) < INET_ATON('10.22.32.255')",
"Persons below a given root organization" => "SELECT Person AS P JOIN Organization AS Node ON P.org_id = Node.id JOIN Organization AS Root ON Node.parent_id BELOW Root.id WHERE Root.id=1",