Quiz Discussion

The result which the operation contains all pairs of tuples from the two relations, regardless of whether their attribute values match.

Course Name: SQL -Structured Query Language

  • 1]

    Join

  • 2]

    Cartesian product

  • 3]

    Intersection

  • 4]

    Set difference

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

_____ operator is used for appending two strings.

  • 1]

    &

  • 2]

    %

  • 3]

    ||

  • 4]

    _

Solution
2
Discuss

Which one of the following is procedural language?

  • 1]

    Domain relational calculus

  • 2]

    Tuple relational calculus

  • 3]

    Relational algebra

  • 4]

    Query language

Solution
3
Discuss

The ______ clause allows us to select only those rows in the result relation of the ____ clause that satisfy a specified predicate.

  • 1]

    Where, from

  • 2]

    From, select

  • 3]

    Select, from

  • 4]

    From, where

Solution
4
Discuss

A ________ is a pictorial depiction of the schema of a database that shows the relations in the database, their attributes, and primary keys and foreign keys.

  • 1]

    Schema diagram

  • 2]

    Relational algebra

  • 3]

    Database diagram

  • 4]

    Schema flow

Solution
5
Discuss

Department (dept name, building, budget) and Employee (employee_id, name, dept name, salary)
Here the dept_name attribute appears in both the relations. Here using common attributes in relation schema is one way of relating ___________ relations.

  • 1]

    Attributes of common

  • 2]

    Tuple of common

  • 3]

    Tuple of distinct

  • 4]

    Attributes of distinct

Solution
6
Discuss

The _______operation performs a set union of two “similarly structured” tables

  • 1]

    Union

  • 2]

    Join

  • 3]

    Product

  • 4]

    Intersect

Solution
7
Discuss
SELECT name ____ instructor name, course id
FROM instructor, teaches
WHERE instructor.ID= teaches.ID;

Which keyword must be used here to rename the field name?

  • 1]

    From

  • 2]

    Rename

  • 3]

    As

  • 4]

    Join

Solution
8
Discuss

In SQL the spaces at the end of the string are removed by _______ function.

  • 1]

    Upper

  • 2]

    String

  • 3]

    Trim

  • 4]

    Lower

Solution
9
Discuss

Database __________ which is the logical design of the database, and the database _______ which is a snapshot of the data in the database at a given instant in time.

  • 1]

    Instance, Schema

  • 2]

    Relation, Schema

  • 3]

    Relation, Domain

  • 4]

    Schema, Instance

Solution
10
Discuss
SELECT name
FROM instructor
WHERE salary <= 100000 AND salary >= 90000;

This query can be replaced by which of the following ?

  • 1]
    SELECT name
    FROM instructor
    WHERE salary BETWEEN 90000 AND 100000;

     

  • 2]
    SELECT name
    FROM employee
    WHERE salary <= 90000 AND salary>=100000;

     

  • 3]
    SELECT name
    FROM employee
    WHERE salary BETWEEN 90000 AND 100000;

     

  • 4]
    SELECT name
    FROM instructor
    WHERE salary BETWEEN 100000 AND 90000;

     

Solution
# Quiz