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