Difference between revisions of "NL/Documentation/How Tos/Calc: functie DBMAX"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Voorbeeld:)
m
 
Line 3: Line 3:
 
== DBMAX  ==
 
== DBMAX  ==
 
Geeft de grootste waarde in een kolom van een databasetabel, uit de rijen die voldoen aan de criteria.
 
Geeft de grootste waarde in een kolom van een databasetabel, uit de rijen die voldoen aan de criteria.
 
  
 
=== Syntaxis: ===
 
=== Syntaxis: ===
Line 16: Line 15:
 
:<tt>'''criteria_tabel'''</tt> een bereik is dat criteria bevat, om te selecteren welke rijen van de <tt>'''database_tabel'''</tt> moeten worden onderzocht.
 
:<tt>'''criteria_tabel'''</tt> een bereik is dat criteria bevat, om te selecteren welke rijen van de <tt>'''database_tabel'''</tt> moeten worden onderzocht.
  
 
+
Het [[NL/Documentation/How_Tos/Calc: Database-functies|Overzicht database-functies]] beschrijft volledig het gebruik van deze parameters.
Het [[Documentation/nl/How_Tos/Calc: Database-functies|Overzicht database-functies]] beschrijft volledig het gebruik van deze parameters.
+
 
+
  
 
=== Voorbeeld: ===
 
=== Voorbeeld: ===
  
 
In dit werkblad:
 
In dit werkblad:
 
  
 
{| class="wikitable" style="text-align:center"
 
{| class="wikitable" style="text-align:center"
Line 56: Line 52:
 
|'''14'''||&nbsp;||2||&nbsp;||&nbsp;||&nbsp;
 
|'''14'''||&nbsp;||2||&nbsp;||&nbsp;||&nbsp;
 
|}
 
|}
 
  
 
<tt>'''DBMAX(A1:E10; "Afstand naar school"; A13:E14)'''</tt>
 
<tt>'''DBMAX(A1:E10; "Afstand naar school"; A13:E14)'''</tt>
Line 73: Line 68:
 
De OOo 2.3 Help impliceert dat <tt>'''0'''</tt> als een <tt>'''veld'''</tt> de gehele databasetabel zal opnemen. Dit lijkt fout te zijn - alleen het maximum in een enkele kolom kan worden gevonden.
 
De OOo 2.3 Help impliceert dat <tt>'''0'''</tt> als een <tt>'''veld'''</tt> de gehele databasetabel zal opnemen. Dit lijkt fout te zijn - alleen het maximum in een enkele kolom kan worden gevonden.
  
 +
{{NL/Documentation/ZieOok|
 +
* [[NL/Documentation/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSOM|DBSOM]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBMIN|DBMIN]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBVAR|DBVAR]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBVARP|DBVARP]]
 +
* [[NL/Documentation/How_Tos/Calc: functie DBLEZEN|DBLEZEN]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: functie MAX|MAX]]
 +
* [[NL/Documentation/How_Tos/Calc: functie MIN|MIN]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
 +
 +
* [[NL/Documentation/How_Tos/Calc: Database-functies|Database-functies]]
  
{{Documentation/nl/ZieOok|
 
* [[Documentation/nl/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBSOM|DBSOM]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBMIN|DBMIN]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBVAR|DBVAR]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBVARP|DBVARP]]
 
* [[Documentation/nl/How_Tos/Calc: functie DBLEZEN|DBLEZEN]]
 
* [[Documentation/nl/How_Tos/Calc: functie MAX|MAX]]
 
* [[Documentation/nl/How_Tos/Calc: functie MIN|MIN]]
 
* [[Documentation/nl/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
 
* [[Documentation/nl/How_Tos/Calc: Database-functies|Database-functies]]
 
 
* [[NL/Documentation/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]]
 
* [[NL/Documentation/How_Tos/Calc: Functies alfabetisch gesorteerd|Functies - alfabetisch gesorteerd]]
* [[Documentation/nl/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
+
* [[NL/Documentation/How_Tos/Calc: Functies gesorteerd per categorie|Functies - gesorteerd per categorie]]}}
 
[[Category: NL/Documentation/Reference/Calc]]
 
[[Category: NL/Documentation/Reference/Calc]]

Latest revision as of 15:54, 27 January 2024


DBMAX

Geeft de grootste waarde in een kolom van een databasetabel, uit de rijen die voldoen aan de criteria.

Syntaxis:

DBMAX(database_tabel; veld; criteria_tabel)

waar

database_tabel een bereik is dat de gegevens definieert die moeten worden verwerkt.
veld de kolom is die moet worden onderzocht. Het mag een kolomnummer zijn (1 is de eerste kolom van de databasetabel, 2 is de tweede ...), of een kolomkop (omsloten door aanhalingstekens ””), of een cel die verwijst naar een kolomkop.
criteria_tabel een bereik is dat criteria bevat, om te selecteren welke rijen van de database_tabel moeten worden onderzocht.

Het Overzicht database-functies beschrijft volledig het gebruik van deze parameters.

Voorbeeld:

In dit werkblad:

  A B C D E
1 Naam Klas Leeftijd Afstand naar school Gewicht
2 Andy 3 9 150 40
3 Betty 4 10 1000 42
4 Charles 3 10 300 51
5 Daniel 5 11 1200 48
6 Eva 2 8 650 33
7 Frank 2 7 300 42
8 Greta 1 7 200 36
9 Harry 3 9 1200 44
10 Irene 2 8 1000 42
11          
12          
13 Naam Klas Leeftijd Afstand naar school Gewicht
14   2      

DBMAX(A1:E10; "Afstand naar school"; A13:E14)

geeft de maximum afstand naar school terug die elk kind in de tweede klas moet reizen (1000 voor Irene).

DBMAX(A1:E10; 4; A13:E14)

geeft hetzelfde resultaat terug.

DBMAX(A1:E10; D1; A13:E14)

geeft ook hetzelfde resultaat terug.

Problemen:

De OOo 2.3 Help impliceert dat 0 als een veld de gehele databasetabel zal opnemen. Dit lijkt fout te zijn - alleen het maximum in een enkele kolom kan worden gevonden.


Zie ook

Personal tools