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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Voorbeeld:)
m (Syntaxis:)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
== DBMIN  ==
 
== DBMIN  ==
 
Geeft de minimum (laagste) waarde in een kolom van een Calc databasetabel, uit de rijen die voldoen aan de gespecificeerde criteria.
 
Geeft de minimum (laagste) waarde in een kolom van een Calc databasetabel, uit de rijen die voldoen aan de gespecificeerde 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>'''DBMIN(A1:E10; "Afstand naar school"; A13:E14)'''</tt>
 
<tt>'''DBMIN(A1:E10; "Afstand naar school"; A13:E14)'''</tt>
  
: geeft de minimum afstand naar school dat elk kind in de tweede klas moet reizen (300 voor Frank).
+
: geeft de minimum afstand naar school terug die elk kind in de tweede klas moet reizen (300 voor Frank).
  
 
<tt>'''DBMIN(A1:E10; 4; A13:E14)'''</tt>
 
<tt>'''DBMIN(A1:E10; 4; 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.
  
{{Documentation/nl/ZieOok|
+
{{NL/Documentation/ZieOok|
* [[Documentation/nl/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBAANTAL|DBAANTAL]]
* [[Documentation/nl/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBAANTALC|DBAANTALC]]
* [[Documentation/nl/How_Tos/Calc: functie DBSOM|DBSOM]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBSOM|DBSOM]]
* [[Documentation/nl/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBPRODUCT|DBPRODUCT]]
* [[Documentation/nl/How_Tos/Calc: functie DBMAX|DBMAX]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBMAX|DBMAX]]
* [[Documentation/nl/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBGEMIDDELDE|DBGEMIDDELDE]]
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEV|DBSTDEV]]
* [[Documentation/nl/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBSTDEVP|DBSTDEVP]]
* [[Documentation/nl/How_Tos/Calc: functie DBVAR|DBVAR]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBVAR|DBVAR]]
* [[Documentation/nl/How_Tos/Calc: functie DBVARP|DBVARP]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBVARP|DBVARP]]
* [[Documentation/nl/How_Tos/Calc: functie DBLEZEN|DBLEZEN]]
+
* [[NL/Documentation/How_Tos/Calc: functie DBLEZEN|DBLEZEN]]
* [[Documentation/nl/How_Tos/Calc: functie MAX|MAX]]
+
 
* [[Documentation/nl/How_Tos/Calc: functie MIN|MIN]]
+
* [[NL/Documentation/How_Tos/Calc: functie MAX|MAX]]
* [[Documentation/nl/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
+
* [[NL/Documentation/How_Tos/Calc: functie MIN|MIN]]
* [[Documentation/nl/How_Tos/Calc: Database-functies|Database-functies]]
+
 
 +
* [[NL/Documentation/How_Tos/Calc: Database-functies#Overzicht|Overzicht database-functies]]
 +
 
 +
* [[NL/Documentation/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:57, 27 January 2024


DBMIN

Geeft de minimum (laagste) waarde in een kolom van een Calc databasetabel, uit de rijen die voldoen aan de gespecificeerde criteria.

Syntaxis:

DBMIN(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      

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

geeft de minimum afstand naar school terug die elk kind in de tweede klas moet reizen (300 voor Frank).

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

geeft hetzelfde resultaat terug.

DBMIN(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