# Quiz Discussion

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

Course Name: SQL -Structured Query Language

• 1]

Upper

• 2]

String

• 3]

Trim

• 4]

Lower

##### 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

Using which language can a user request information from a database?

• 1]

Query

• 2]

Relational

• 3]

Structural

• 4]

Compiler

##### Solution
2
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
3
Discuss

The _______ operator takes the results of two queries and returns only rows that appear in both result sets.

• 1]

Union

• 2]

Intersect

• 3]

Difference

• 4]

Projection

##### Solution
4
Discuss

The tuples of the relations can be of ________ order.

• 1]

Any

• 2]

Same

• 3]

Sorted

• 4]

Constant

##### Solution
5
Discuss

The_____ operation allows the combining of two relations by merging pairs of tuples, one from each relation, into a single tuple.

• 1]

Select

• 2]

Join

• 3]

Union

• 4]

Intersection

##### Solution
6
Discuss

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

• 1]

Join

• 2]

Cartesian product

• 3]

Intersection

• 4]

Set difference

##### Solution
7
Discuss
SELECT emp_name
FROM department
WHERE dept_name LIKE ’ _____ Computer Science’;

Which one of the following has to be added into the blank to select the dept_name which has Computer Science as its ending string?

• 1]

%

• 2]

_

• 3]

||

• 4]

\$

##### Solution
8
Discuss
SELECT instructor.*
FROM instructor, teaches
WHERE instructor.ID= teaches.ID;

This query does which of the following operation?

• 1]

All attributes of instructor and teaches are selected

• 2]

All attributes of instructor are selected on the given condition

• 3]

All attributes of teaches are selected on given condition

• 4]

Only the some attributes from instructed and teaches are selected

##### Solution
9
Discuss

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

• 1]

Union

• 2]

Join

• 3]

Product

• 4]

Intersect

##### Solution
10
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

# Quiz