Quiz Discussion

Which is NOT one of the most common types of SQL CHECK constraints?

Course Name: SQL -Structured Query Language

  • 1]

    System date

  • 2]

    Range checks

  • 3]

    Lists of values

  • 4]

    Comparing one column value to another within the same table

Solution
No Solution Present Yet

Top 5 Similar Quiz - Based On AI&ML

Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api

# Quiz
1
Discuss

The statement in SQL which allows changing the definition of a table is

  • 1]

    Alter

  • 2]

    Update

  • 3]

    Create

  • 4]

    Select

Solution
2
Discuss

Which of the following is an SQL trigger supported by Oracle?

  • 1]

    BEFORE

  • 2]

    AFTER

  • 3]

    INSTEAD OF

  • 4]

    All of the above

Solution
3
Discuss

A reason for using an SQL view to hide columns is

  • 1]

    to simplify a result only

  • 2]

    to prevent the display of sensitive data only

  • 3]

    to accomplish both of the above

  • 4]

    None of the above

Solution
4
Discuss

Which of the following is a valid SQL type?

  • 1]

    CHARACTER

  • 2]

    NUMERIC

  • 3]

    FLOAT

  • 4]

    All of the above

Solution
5
Discuss

Which of the following is correct

  • 1]

    a SQL query automatically eliminates duplicates

  • 2]

    SQL permits attribute names to be repeated in the same relation

  • 3]

    a SQL query will not work if there are no indexes on the relations

  • 4]

    None of these

Solution
6
Discuss

Which one of the following is not true for a view

  • 1]

    View is derived from other tables

  • 2]

    View is a virtual table

  • 3]

    A view definition is permanently stored as part of the database

  • 4]

    View never contains derived columns

Solution
7
Discuss

Which of the following is an advantage of view?

  • 1]

    Data security

  • 2]

    Derived columns

  • 3]

    Hiding of complex queries

  • 4]

    All of the above

Solution
8
Discuss

The SQL ALTER statement can be used to

  • 1]

    Change the table structure

  • 2]

    Change the table data

  • 3]

    Add rows to the table

  • 4]

    Delete rows from the table

Solution
9
Discuss

To delete a particular column in a relation the command used is

  • 1]

    UPDATE

  • 2]

    DROP

  • 3]

    ALTER

  • 4]

    DELETE

Solution
10
Discuss

Count function in SQL returns the number of

  • 1]

    Values

  • 2]

    Distinct values

  • 3]

    Groups

  • 4]

    Columns

Solution
# Quiz