Database Test 6 Computer Subject

Database Test 6 Computer Subject
Available Sections
2. Career
4. Job
1234

Question 21

To remove a relation from an SQL database, _____ is used.
Show explanation Expand Question
DROP TABLE is the correct SQL command to remove a table permanently from the database.
Not clear enough?

Question 22

A subquery must be _____?
Show explanation Expand Question
A subquery must be enclosed in parentheses to be valid inside SQL queries.
Not clear enough?

Question 23

Which is true about a 'join'?
Show explanation Expand Question
A join is conceptually a Cartesian product followed by a selection and projection operation.
Not clear enough?

Question 24

An outer join _____?
Show explanation Expand Question
Outer join is defined by ANSI SQL standard and is also supported by many DBMS products.
Not clear enough?

Question 25

Which is true of a "join"?
Show explanation Expand Question
Joins can be used as alternatives to many subqueries, particularly EXISTS and IN queries.
Not clear enough?

Question 26

The following query have not any error. Which should be replaced to get the desired output? SELECT ID, name, dept name, salary*10 WHERE instructor;
Show explanation Expand Question
The query should include FROM instructor instead of WHERE instructor to specify the table.
Not clear enough?

Question 27

EXISTS and NOT EXISTS?
Show explanation Expand Question
EXISTS and NOT EXISTS are logical operators returning true or false depending on whether subquery rows exist.
Not clear enough?

Question 28

When using INSERT _____?
Show explanation Expand Question
INSERT allows adding rows individually or multiple rows in bulk using SELECT.
Not clear enough?

Question 29

When using DELETE _____?
Show explanation Expand Question
DELETE allows removal of single rows or multiple rows based on a condition.
Not clear enough?

Question 30

This is Employee table.
Employee_id Name Salary
1005 Asad 32000
1011 Asim 24000
1019 Waqas 28000
Which of the following employee_id will be displayed for the given query? SELECT * FROM employee WHERE employee_id>1007;
Show explanation Expand Question
The query selects employees with id greater than 1007. Only 1011 and 1019 satisfy this condition.
Not clear enough?

1234
In this page
Database test-6 Computer Subject
Open Model!