Shared Flashcard Set

Details

SQL Functions
SQL Functions in the NSS ICT Curriculum
17
Computer Science
10th Grade
01/15/2013

Additional Computer Science Flashcards

 


 

Cards

Term
ABSOLUTE(number)
ABS(number)
[Arithmetic]
Definition
Get the absolute value of a number.
Term
AVG(field)
[Aggregate]
Definition
Get the average value.
Term
MAX(field)
[Aggregate]
Definition
Get the maximum value.
Term
MIN(field)
[Aggregate]
Definition
Get the minimum value.
Term
COUNT(*)
[Aggregate]
Definition
Count the number of records.
Term
COUNT(field)
[Aggregate]
Definition
Count the number of records where a certain field is non-null.
Term
SUM(field)
[Aggregate]
Definition
Get the sum.
Term
INT(number)
[Arithmetic]
Definition
Truncate a number to the nearest integer.
Term
CHAR_LENGTH(string)
LEN(string)
[String]

CHARACTER_LENGTH and LENGTH are not accepted.
Definition
Find the number of characters in a string.
Term
LOWER(string)
[String]

LCASE is not accepted.
Definition
Convert all the uppercase characters in a string to lowercase.
Term
UPPER(string)
[String]

UCASE is not accepted.
Definition
Convert all the lowercase characters in a string to uppercase.
Term
SUBSTRING(string, starting position, length)
SUBSTR(string, starting position, length)
MID(string, starting position, length)
[String]
Definition
Find a substring in a string starting from a certain postion.
Term
DAY(date)
Definition
Get the day of a date.
Term
MONTH(date)
Definition
Get the month of a date.
Term
YEAR(date)
Definition
Get the year of a date.
Term
CHAR(ASCII code)
Definition
Get the ASCII code of a character.
Term
VALUE(string)
VAL(string)
Definition
Get the numerical value of a string (e.g. '11' -> 11)
Supporting users have an ad free experience!