Question 1
Which SQL function is used to calculate the average value of a numeric column?
- SUM()
- COUNT()
- MAX()
- AVG()
- AVERAGE()
Question 2
What does the SQL function 'COUNT()' do?
- Calculates the sum of values in a column
- Finds the maximum value in a column
- Computes the median value of a column
- Counts the number of rows in a result set
- Count the roll
Question 3
Which SQL function is used to find the highest value in a column?
- AVG()
- SUM()
- COUNT()
- HIGHEST()
- MAX()
Question 4
What does the SQL function 'SUM()' do?
- Computes the median value of a column
- Calculates the average value of a column
- Counts the number of rows in a result set
- Finds the total sum of values in a column
- Some it up
Question 5
Which SQL constraint is used to ensure that all values in a column are unique?
- PRIMARY KEY
- CHECK
- FOREIGN KEY
- UNIQUE
- Uniq
Question 6
What does the SQL constraint 'PRIMARY KEY' do?
- Ensures that all values in a column are unique
- Specifies a default value for a column
- Enforces a condition on the values allowed in a column
- Defines a column to uniquely identify each row in a table
- Primary
Question 7
Which SQL constraint is used to ensure that a column only contains values from a specified set?
- PRIMARY KEY
- UNIQUE
- FOREIGN KEY
- CHECK
- Checkmate
Question 8
What does the SQL constraint 'FOREIGN KEY' do?
- Ensures that all values in a column are unique
- Specifies a default value for a column
- Enforces a condition on the values allowed in a column
- Links a column to a primary key in another table
- Forin Key
Question 9
Which SQL constraint is used to enforce a condition on the values allowed in a column?
- PRIMARY KEY
- UNIQUE
- FOREIGN KEY
- CHECK
- Enforce
Question 10
What does the SQL constraint 'DEFAULT' do?
- Ensures that all values in a column are unique
- Defines a column to uniquely identify each row in a table
- Enforces a condition on the values allowed in a column
- Specifies a default value for a column
- Defolt
Question 11
Which function returns the number of different values in a column?
- COUNT()
- SUM()
- AVG()
- COUNT(DISTINCT column_name)
- DISTINCT()
Question 12
Which constraint prevents duplicate values in a column or combination of columns?
- NOT NULL
- CHECK
- UNIQUE
- FOREIGN KEY
- DEFAULT
Question 13
Which constraint ensures that a column cannot have a null value?
- UNIQUE
- PRIMARY KEY
- FOREIGN KEY
- NOT NULL
- CHECK
Question 14
Which function is used to calculate the total sum of a numeric column?
- AVG()
- MIN()
- MAX()
- COUNT()
- SUM()
Question 15
Which function returns the smallest value in a column?
- AVG()
- MAX()
- SUM()
- COUNT()
- MIN()