DIV0 (Lakehouse v1)
Renvoie le quotient de la division du premier nombre par le second. Renvoie 0 si le second nombre est 0.
Voir aussi :
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.div0(<numerator>, <denominator>)Exemples Analyze
Section intitulée « Exemples Analyze »func.div0(20, 6), func.div0(20, 0), func.div0(20, null)
┌─────────────────────────────────────────────────────────────┐│ func.div0(20, 6) │ func.div0(20, 0) │ func.div0(20, null) │├────────────────────┼──────────────────┼─────────────────────┤│ 3.3333333333333335 │ 0 │ NULL │└─────────────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »DIV0(<number1>, <number2>)Exemples SQL
Section intitulée « Exemples SQL »SELECT DIV0(20, 6), DIV0(20, 0), DIV0(20, NULL);
┌───────────────────────────────────────────────────┐│ div0(20, 6) │ div0(20, 0) │ div0(20, null) │├────────────────────┼─────────────┼────────────────┤│ 3.3333333333333335 │ 0 │ NULL │└───────────────────────────────────────────────────┘