Database Test 6 Computer Subject

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

Question 1

SQL is a _____?
Show explanation Expand Question
SQL is a non-procedural language because it focuses on what data to retrieve rather than how to retrieve it.
Not clear enough?

Question 2

To form a projection with SQL _____?
Show explanation Expand Question
Projection in SQL involves naming the relation and listing the specific columns to be displayed.
Not clear enough?

Question 3

To remove duplicate rows, this _____ qualifier must be specified.
Show explanation Expand Question
The DISTINCT keyword is used in SQL to eliminate duplicate rows from the result set.
Not clear enough?

Question 4

Which SQL keyword is used to name a new table and describe the table's columns?
Show explanation Expand Question
The CREATE keyword in SQL is used to define new tables along with their column structures.
Not clear enough?

Question 5

Which SQL keyword is used to change the structure, properties or constraints of a table?
Show explanation Expand Question
ALTER is used in SQL to modify the structure of an existing table, such as adding or removing columns.
Not clear enough?

Question 6

Which one of the following is used to define the structure of the relation, deleting relations and relating schema's?
Show explanation Expand Question
DDL is used to define, modify, and delete database structures such as tables and schemas.
Not clear enough?

Question 7

If table PRODUCT has a column PRICE with data type Numeric (8,2), it stores values as _____?
Show explanation Expand Question
Numeric(8,2) allows 8 digits in total, of which 2 are after the decimal point, so it stores 6 digits before the decimal and 2 after.
Not clear enough?

Question 8

If the table PRODUCT has a column PRICE that has the data type Numeric (8, 2), the value 12345 will be displayed by the DBMS as _____?
Show explanation Expand Question
Numeric(8,2) shifts the decimal point two places, so 12345 is stored and displayed as 123.45.
Not clear enough?

Question 9

Which SQL keyword is used to delete a table's structure?
Show explanation Expand Question
DROP is used to delete a table’s structure permanently along with its data.
Not clear enough?

Question 10

When the correct SQL command is used to delete a table's structure, what happens to the data in the table?
Show explanation Expand Question
Using DROP removes the table structure and deletes all its data permanently.
Not clear enough?

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