DIV/de

From SQLZOO
< DIV
Revision as of 20:54, 21 October 2012 by Peter (Talk | contribs) (Created page with "Category:Deutsch <table align='right' border='1'> <caption>Kompatibilität</caption> <tr><th colspan='3'>a DIV b</th></tr> <tr><td align='center'>'''DBMS'''</td><td align=...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kompatibilität
a DIV b
DBMSOKAlternative
IngresNein FLOOR(a/b)
MySQLJa
OracleNein FLOOR(a/b)
PostgreSQLNein FLOOR(a/b)
SQL ServerNein FLOOR(a/b)

DIV

a DIV b liefert den Integer-Wert der Division von a durch b.

   8 DIV 3 -> 2  

In diesem Beispiel wird die Bevölkerungszahl jedes Landes in Millionen berechnet.

SELECT name,
       population DIV 1000000
  FROM bbc
SELECT name,
       FLOOR(population/1000000)
  FROM bbc

Siehe auch

Sprache: English  • Deutsch