Maysa Hassan - MTA Databse Certificate - Sohag Team

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Maysa Hassan
M
Maysa Hassan
Community Contributor
Quizzes Created: 1 | Total Attempts: 721
| Attempts: 721 | Questions: 108
Please wait...
Question 1 / 108
0 %
0/100
Score 0/100
1. You have a table of products with fields for ProductID, Name, and Price. You need to write an UPDATE statement that sets the value in the In Stock field to Yes for a specific Product ID. Which clause should you use in your update statement?

Explanation

The WHERE clause should be used in the UPDATE statement to specify the condition for updating the value in the In Stock field to Yes for a specific Product ID. The WHERE clause allows you to filter the rows in the table based on a specified condition, in this case, the specific Product ID.

Submit
Please wait...
About This Quiz
Maysa Hassan - MTA Databse Certificate - Sohag Team - Quiz

أهداء إلى احلى فريق
MTA Team Sohag
From : Maysa Hassan

2. Which two keys establish a relationship between two tables? (Choose two.)

Explanation

Primary and foreign keys are used to establish relationships between two tables in a relational database. The primary key is a unique identifier for each record in a table and is used to ensure data integrity and enforce referential integrity. The foreign key is a field in one table that refers to the primary key in another table, creating a link between the two tables. This allows for the establishment of relationships and the ability to retrieve related data from multiple tables using join operations.

Submit
3. On which database structure does an update statement operate?

Explanation

An update statement operates on a database structure called a table. A table is a collection of data organized in rows and columns. It is the primary structure used to store and manipulate data in a relational database. The update statement allows users to modify existing data in the table by changing the values of specific columns or rows.

Submit
4. You have a table named Employee that includes four columns. You execute the following statement: SELECT * FROM Employee - Which columns are returned?

Explanation

When the statement "SELECT *" is executed, it retrieves all the columns from the table named Employee. Therefore, all columns from the Employee table will be returned as a result of this query.

Submit
5. You have two database tables as defined below. The State ID column is unique in the State table. The Address ID column is unique in the Address table. The two tables are related by the State ID column. https://www.examtopics.com/assets/media/exam-media/02215/0009300001.jpg    - Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point. Hot Area: https://www.examtopics.com/assets/media/exam-media/02215/0009300002.jpg
Submit
6. Which command should you use to remove a table from a database?

Explanation

The command "DROP TABLE" should be used to remove a table from a database. This command allows the user to delete a table and all its associated data from the database. It is specifically designed for removing tables and is the correct choice for this task.

Submit
7. You are writing a SQL statement to retreive rows from a table which Data Manipulation Language DML  Command should you use  ?

Explanation

The correct answer is "select" because the "select" command is used in SQL to retrieve rows from a table. It allows you to specify the columns you want to retrieve and apply conditions to filter the results if needed.

Submit
8. This question requires that you evaluate the underlined text to determine if it is correct. First normal form requires that a database excludes repeating groups. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

Explanation

The underlined text is correct. First normal form indeed requires that a database excludes repeating groups. This means that each attribute in a table must contain only atomic values, and there should be no repeating groups or arrays of values within a single attribute.

Submit
9. correct match is worth one point. Select and Place: https://www.examtopics.com/assets/media/exam-media/02215/0006500001.jpg  
Submit
10. What defines the amount of storage space that is allocated to a value in a column

Explanation

The amount of storage space allocated to a value in a column is determined by its data type. Different data types require different amounts of storage space. For example, a numeric data type may require more storage space compared to a string data type. The data type also determines the range of values that can be stored in the column and the operations that can be performed on it.

Submit
11. The Product table contains the following data.   You execute the following statement: SELECT COUNT(*) FROM Product WHERE Quantity > 18 What is the value returned by this statement?

Explanation

The value returned by the statement is 3. This is because the statement is counting the number of rows in the Product table where the Quantity is greater than 18. So, it is returning the count of products that have a quantity greater than 18, which is 3.

Submit
12. Which key uniquely identifies a row in a table?

Explanation

The primary key uniquely identifies a row in a table. It is a column or a combination of columns that have a unique value for each row in the table. This key is used to ensure data integrity and to establish relationships between tables in a database.

Submit
13. You have two database tables as defined below. The first table contains information about students. The second table contains information about courses. The two tables are related by Course ID. Match the CourseName to the StudentName. Instructions: To answer, drag the appropriate CourseName from the column on the left to its StudentName on the right. Each CourseName may be used once, more than once, or not at all. Each correct match is worth one point. Select and Place: https://www.examtopics.com/assets/media/exam-media/02215/0006800002.png  
Submit
14. Hot Area:
  • Hide Solution Discussion 2
Correct Answer:
Submit
15. You have a table that contains the following data. You break the table into the following two tables This process is referred to as

Explanation

Normalization is the process of organizing data in a database to eliminate redundancy and improve data integrity. It involves breaking a table into multiple tables, each with a specific purpose and related to each other through relationships. This helps to minimize data duplication and ensures efficient storage and retrieval of data. By normalizing the table, the data is structured in a logical and organized manner, making it easier to manage and maintain in the long run.

Submit
16. You have a table named Product. The Product table has columns for Product Description and Product Category. You need to change the Product Category value for all the spoons in the Product table to 43. Which statement should you use?

Explanation

Option A is the correct answer because it suggests using an UPDATE statement to change the Product Category value for all the spoons in the Product table to 43.

Submit
17. What should you include in the update statement?

Explanation

The correct answer is "SET Product Name = 'glass'". This is because in SQL, the "SET" keyword is used to update or modify data in a table. In this case, the update statement is setting the value of the "Product Name" column to 'glass'. The other options (LET, EXEC, ASSIGN) are not valid syntax for an update statement in SQL.

Submit
18. Which statement deletes the rows where the employee's phone number is not entered? https://www.examtopics.com/assets/media/exam-media/02215/0003400001.png

Explanation

Option A is the correct answer because it implies that there is a statement that specifically targets and deletes the rows where the employee's phone number is not entered. This suggests that there is a condition or criteria being used to filter out the rows that do not have a phone number entered for the employee.

Submit
19. A named group of SQL statements that can be executed in a database is called a:

Explanation

A stored procedure is a named group of SQL statements that can be executed in a database. It is a precompiled collection of SQL statements that can be called by name to perform a specific task or set of tasks. Stored procedures are commonly used to encapsulate complex logic and calculations, improve performance by reducing network traffic, and enhance security by controlling access to the underlying data. They can be called from various applications and can accept input parameters and return output values.

Submit
20. Which permission does a user need in order to run a stored procedure?

Explanation

In order to run a stored procedure, a user needs the EXECUTE permission. This permission allows the user to execute or run the stored procedure. The other options, ALLOW, CALL, and RUN, are not valid permissions for running a stored procedure.

Submit
21. You have the following table definition: CREATE TABLE Product - (ID INTEGER PRIMARY KEY, Name VARCHAR(20), Quantity INTEGER) The Product table contains the following data You execute the following statement: SELECT Name FROM Product WHERE Quantity IS NOT NULL How many rows are returned?

Explanation

The statement "SELECT Name FROM Product WHERE Quantity IS NOT NULL" will return 3 rows. This is because it is selecting the "Name" column from the "Product" table where the "Quantity" column is not null. Since there are 3 rows in the table where the "Quantity" column is not null, those 3 rows will be returned as the result.

Submit
22. You have two tables named Cars and Color as defined below. The two tables are related by ColorId. https://www.examtopics.com/assets/media/exam-media/02215/0008500001.png   - You run the following SQL statement: select: https://www.examtopics.com/assets/media/exam-media/02215/0008600001.jpg How many rows does the SQL statement return?

Explanation

The SQL statement will return 3 rows. This is because the statement is asking to select, but it is not specifying which columns or tables to select from. Therefore, it will select all columns from all tables. Since there are two tables named Cars and Color, and they are related by ColorId, the SQL statement will return all rows from both tables that have a matching ColorId.

Submit
23. You have the database table named Cars as defined below: https://www.examtopics.com/assets/media/exam-media/02215/0004800002.png You have the following Structured Query Language (SQL) statement: https://www.examtopics.com/assets/media/exam-media/02215/0004900001.jpg How many rows are returned by the SQL statement?

Explanation

not-available-via-ai

Submit
24. You have the following table definition: CREATE TABLE Road - (Road ID INTEGER NOT NULL, Distance INTEGER NOT NULL) The Road table contains the following data: You execute the following statement: INSERT INTO Road VALUES (1234, 36) What is the result?

Explanation

The given statement "INSERT INTO Road VALUES (1234, 36)" is a valid SQL statement that inserts a new row into the Road table. The values provided for the Road ID and Distance columns are not NULL, so there will be no error stating that NULL values are not allowed. Since the table definition does not specify any constraints on duplicate IDs, there will be no error stating that duplicate IDs are not allowed. As the statement is syntactically correct, there will be no syntax error. Therefore, the result of executing this statement will be a new row added to the table.

Submit
25.  The following illustration shows backup strategies that use the simple recovery model and the full recovery model: Instructions: Use the drop-down menus to select the answer choice that completes each statement. Each correct selection is worth one point. Hot Area:

Submit
26. This question requires that you evaluate the underlined text to determine if it is correct. You have two tables. Each table has three rows. Nine rows will be included in the Cartesian product of these two tables. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement corrector.

Explanation

The underlined text states that "Nine rows will be included in the Cartesian product of these two tables." This is correct because the Cartesian product of two tables is calculated by multiplying the number of rows in one table with the number of rows in the other table. In this case, since each table has three rows, the Cartesian product will indeed have nine rows. Therefore, no change is needed.

Submit
27. A view can be used to

Explanation

A view can be used to limit access to specific rows or columns of data in a table. By creating a view with specific filters or restrictions, only certain rows or columns of data can be accessed by users or applications. This can be useful in situations where certain sensitive or confidential information needs to be restricted from certain users or groups. Views provide a way to control and manage the access to data without altering the original table structure or data.

Submit
28. You need to list the name and price of each product, sorted by price from highest to lowest. Which statement should you use ? https://www.examtopics.com/assets/media/exam-media/02215/0003200001.png  

Explanation

Option A is the correct answer because it suggests using a statement or code that will allow you to list the name and price of each product, sorted by price from highest to lowest. This is the desired outcome according to the question prompt. Without any further information or context, it is difficult to provide a more specific explanation.

Submit
29. Match the following
Submit
30. Which keyword would you use in a select statement to return rows that meet a specific condition?

Explanation

The keyword "WHERE" is used in a select statement to filter the rows and return only those that meet a specific condition. It allows you to specify criteria that the rows must meet in order to be included in the result set.

Submit
31. You are writing a T - SQL statement that perform a long complex query the statement then send the result in an email  you want to be able to manually call the code anytime you need to .  which Database objects can you use  to store the code  ?

Explanation

A stored procedure is a type of database object that can be used to store the T-SQL code. It allows you to define a set of SQL statements that can be executed as a single unit. By creating a stored procedure, you can easily call and execute the complex query whenever needed, such as when sending the result in an email.

Submit
32.  You need to remove a view named EmployeeView from your database. Which statement should you use?

Explanation

To remove a view named EmployeeView from the database, the correct statement to use is "DROP VIEW EmployeeView". The DROP VIEW command is used to delete a view from the database. The other options, DELETE VIEW EmployeeView, DELETE EmployeeView, and DROP EmployeeView, are incorrect as they do not follow the correct syntax for removing a view.

Submit
33. In SQL, an insert statement is used to add a

Explanation

An insert statement in SQL is used to add a row of data to a table. This means that when we want to add new information to an existing table, we use the insert statement to specify the values for each column in a new row. By doing so, we can effectively add new data to the table without altering its structure or adding new columns.

Submit
34. Which statement should you use? https://www.examtopics.com/assets/media/exam-media/02215/0004400001.png

Explanation

not-available-via-ai

Submit
35. Which two elements are required to define a column ??

Explanation

To define a column, two elements are required: a name and a data type. The name serves as the identifier for the column, while the data type specifies the type of data that can be stored in the column (e.g., text, number, date). An index and a key are not necessary to define a column, as they are optional features used for optimizing database performance and enforcing data integrity, respectively.

Submit
36.
Submit
37. One different between A function and a stored procedure

Explanation

A function is a subprogram that must return a value after performing a specific task. It is used to perform calculations or manipulate data and is typically called within an expression or statement. On the other hand, a stored procedure is a set of SQL statements that are executed as a single unit. Unlike a function, a stored procedure does not necessarily need to return a value. It can be used to perform various tasks such as inserting or updating data, generating reports, or executing multiple SQL statements. Therefore, the difference between a function and a stored procedure is that a function must return a value, whereas a stored procedure may or may not return a value.

Submit
38. When volunteer information changes, you must update the table. You need to change Tia's name to Kimberly. Which statement should you choose?

Explanation

The correct statement to choose is "UPDATE Volunteer SET given name = 'Kimberly' WHERE given name = 'Tia'". This statement uses the correct syntax for updating a table in SQL. It specifies the table name "Volunteer", sets the column "given name" to the value "Kimberly", and applies the update only to rows where the "given name" is currently "Tia".

Submit
39. You need to insert two new products into the Product table. The first product is named Book and has an ID of 125. The second product is named Movie and has an ID of 126. Which statement should you use? https://www.examtopics.com/assets/media/exam-media/02215/0003500001.png

Explanation

Option B is the correct statement to use for inserting the two new products into the Product table. It is likely that Option B contains the appropriate SQL syntax for inserting new records into the table, specifying the product names and IDs. However, without the actual content of Option B, it is not possible to provide a more specific explanation.

Submit
40. You have a table named Customer. You need to add a new column named District. Which statement should you use? https://www.examtopics.com/assets/media/exam-media/02215/0003000001.png

Explanation

Option D is the correct answer because it suggests using the ALTER TABLE statement to add a new column named District to the Customer table. The ALTER TABLE statement is used to modify an existing table by adding, modifying, or deleting columns.

Submit
41. Which constraint ensures a unique value in the ID column for each customer?

Explanation

The PRIMARY KEY constraint ensures a unique value in the ID column for each customer. This means that each customer will have a different ID value, and no two customers can have the same ID. The PRIMARY KEY constraint is commonly used to uniquely identify each row in a table and enforce data integrity.

Submit
42. What are three valid data manipulation language DML Comands choose three

Explanation

The question asks for three valid data manipulation language (DML) commands. The correct answer is insert, delete, and update. These are indeed valid DML commands used to manipulate data in a database. The insert command is used to add new records to a table, the delete command is used to remove records from a table, and the update command is used to modify existing records in a table. The other options, commit and output, are not DML commands and are not used for data manipulation.

Submit
43. 5 - Which statement will result in the creation of an index? https://www.examtopics.com/assets/media/exam-media/02215/0000800001.png choose

Explanation

Option A is the correct answer because creating an index is typically done by using a specific command or statement in a database management system. The other options may be related to database management or querying, but they do not specifically address the creation of an index.

Submit
44. You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This process is an example of a/an:

Explanation

The process described in the question, where deleting rows in the "Order" table automatically deletes the corresponding rows in the "OrderItem" table, is known as a cascade delete. This refers to the cascading effect of the deletion, where the deletion operation propagates to related tables to maintain data integrity.

Submit
45. Check the correct answer

Explanation

The explanation for the given correct answer is that the INT data type is specifically designed to store whole numbers. It does not allow for decimal values or any other type of data. Therefore, any value assigned to an INT data type will be a whole number.

Submit
46. Data in a database is stored in:

Explanation

Data in a database is stored in tables. Tables are the basic structure used to organize and store data in a database. Each table consists of rows and columns, where each row represents a record and each column represents a field or attribute of that record. Tables provide a structured way to store and retrieve data efficiently, making them a fundamental component of any database system.

Submit
47. This question requires that you evaluate the underlined text to determine if it is correct. A view can be used to ensure referential integrity. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct

Explanation

A view can be used to limit access to specific rows or columns of data in a table. Views allow users to see a subset of the data in a table, providing a way to control access and protect sensitive information. By defining a view with specific conditions or filters, only the authorized users will be able to see the restricted data. This helps to ensure referential integrity by preventing unauthorized modifications or deletions of the data. Saving an extra copy of data stored in a separate table or saving historical data before deleting it from the base table are not directly related to ensuring referential integrity.

Submit
48. You have two tables. Each table has three rows. How many rows will be included in the Cartesian product of these two tables?

Explanation

The Cartesian product of two tables is obtained by combining each row of the first table with each row of the second table. Since each table has three rows, and we are combining each row from one table with each row from the other table, the total number of rows in the Cartesian product will be 3 x 3 = 9.

Submit
49. This question requires that you evaluate the underlined text to determine if it is correct. A row holds information for a single record in a table. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct

Explanation

The underlined text is correct. A row in a table does hold information for a single record.

Submit
50. The component that holds information for a single entry in a table is called a:

Explanation

A row is the correct answer because it represents a single entry in a table. In a database, a table is made up of rows and columns, with each row containing specific information related to a particular entry. Therefore, a row holds information for a single entry in a table.

Submit
51.
  • You need to set up a database to provide a view of North American mammals. Match the Structured Query Language (SQL) statements to the SQL query. Instructions: To answer, drag the appropriate SQL statement from the column on the left to its place in the SQL query on the right Each SQL statement may be used once, more than once, or not at all. Each correct match is worth one point. Select and Place: https://www.examtopics.com/assets/media/exam-media/02215/0005800001.jpg
Submit
52. On which database structure does an insert statement operate?

Explanation

An insert statement operates on a table in a database structure. This statement is used to add new rows of data into a table. It is a common operation in databases to insert data into tables for storage and retrieval purposes.

Submit
53. One reason to add an index is to

Explanation

Adding an index to a database table can improve the performance of select statements. An index is a data structure that allows the database to quickly locate specific rows in a table. By creating an index on columns frequently used in select statements, the database can efficiently retrieve the requested data, resulting in faster query execution. This can be particularly beneficial when dealing with large tables or complex queries, as it reduces the time required to search and retrieve data, ultimately improving the overall performance of select statements.

Submit
54. What is one difference between an update statement and a delete statement?

Explanation

An update statement modifies the data in one or more rows of a table, but it does not remove any rows from the table. It allows for changing the values of specific columns in the existing rows. On the other hand, a delete statement is used to remove one or more rows from a table based on a specified condition. Therefore, the given answer correctly states that an update statement does not remove rows from a table.

Submit
55. 21 - Which category of SQL statements is used to add, remove, and modify database structures?

Explanation

The correct answer is Data definition language (DDL). DDL statements are used to add, remove, and modify database structures such as tables, indexes, and constraints. Examples of DDL statements include CREATE, ALTER, and DROP. DCL statements are used to control access and permissions to the database. DML statements are used to manipulate data within the database, such as INSERT, UPDATE, and DELETE. DAL is not a recognized category of SQL statements.

Submit
56. Check true sentences

Explanation

The INT data type is used to store whole numbers, such as 1, 2, 3, etc. It does not allow for decimal places or non-numeric characters. Therefore, the statement "The INT data type contains only whole numbers" is true.

Submit
57. A database contains two tables named Customer and Order. You execute the following statement: DELETE FROM Order - WHERE Customer ID = 209 - What is the result?

Explanation

The statement "DELETE FROM Order - WHERE Customer ID = 209 -" will delete all orders for Customer ID 209 from the Order table.

Submit
58. First normal form requires that a database excludes

Explanation

First normal form (1NF) is a fundamental principle in database design that requires eliminating repeating groups in a database. Repeating groups refer to multiple occurrences of the same set of attributes within a single table. By removing repeating groups, the database becomes more organized and efficient. Foreign keys and composite keys are not excluded in 1NF; they are used to establish relationships between tables and ensure data integrity. Duplicate rows, on the other hand, are not allowed in 1NF as they can lead to data inconsistency and redundancy. Therefore, the correct answer is "Repeating groups."

Submit
59. You have a table that contains information about all students in your school. Which SQL keyword should you use to change a student's first name in the table?

Explanation

The correct answer is UPDATE. The UPDATE keyword is used in SQL to modify or change existing records in a table. In this case, if you want to change a student's first name in the table, you would use the UPDATE keyword along with the appropriate syntax to specify the table, column, and new value for the first name.

Submit
60. This question requires that you evaluate the underlined text to determine if it is correct. You combine data from three tables into one table. The new table includes redundancy to optimize read performance. The data in the new table has been denormalized. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

Explanation

The underlined text correctly states that the data in the new table has been denormalized. Denormalization is a technique used to optimize read performance by introducing redundancy in the data. This allows for faster retrieval of data but may result in data duplication. Therefore, the statement is correct and no change is needed.

Submit
61. You have a table that contains the following data Which database term is used to describe the relationship between ProductID and ProductCategory  

Explanation

Functionally dependent is the correct answer because it describes the relationship between ProductID and ProductCategory in the table. In a functional dependency, the value of one attribute (ProductID) determines the value of another attribute (ProductCategory). In this case, the value of ProductID uniquely determines the value of ProductCategory, indicating a functional dependency between the two attributes.

Submit
62. You need to store the first name , Last name and Student ID for 100 students This information will be stored in a table as :

Explanation

The correct answer is "100 row and three columns" because in a table, each row represents a different student and each column represents a different attribute or piece of information about the student. In this case, there are 100 students, so there would be 100 rows, and there are three attributes (first name, last name, and student ID), so there would be three columns.

Submit
63. You need to delete a database table. Which data definition language (DDL) keyword should you use?

Explanation

To delete a database table, the correct DDL keyword to use is "Drop." The "Drop" keyword is used to remove an entire table from the database. It permanently deletes the table and all the data stored within it. This is different from other options like "Alter," which is used to modify the structure of a table, "Truncate," which is used to remove all the data from a table but keeps the structure intact, and "Delete," which is used to remove specific rows from a table but does not delete the entire table.

Submit
64. Which statement creates a composite key?

Explanation

Option D creates a composite key. A composite key is a key that consists of two or more columns in a database table. In this case, Option D is the only option that suggests the creation of a composite key.

Submit
65. You need to store the contact information for each student in your school database. You should store each student's information in

Explanation

not-available-via-ai

Submit
66. You have a table named Product that contains the following data. https://www.examtopics.com/assets/media/exam-media/02215/0002800001.png The PrcducrID column is the primary key. The CategoryID column is a foreign key to a separate table named Category. You execute the following statement: INSERT INTO Product - VALUES (3296, 'Table', 4444) What is the result?

Explanation

The given statement is trying to insert a new row into the "Product" table with a ProductID of 3296, a ProductName of 'Table', and a CategoryID of 4444. However, the ProductID column is defined as the primary key in the table, which means it must be unique for each row. Since there is already a row in the table with a ProductID of 3296, the statement will result in a primary key constraint violation.

Submit
67. You execute a statement  inside a transaction to delete 100 rows from a table . The transaction fails after only 40 rows are deleted What is the result in the database ?

Explanation

When a transaction fails, it means that the changes made within the transaction are rolled back, and the database is reverted to its previous state. In this case, since the transaction fails after only 40 rows are deleted, none of the changes made by the transaction will be committed to the database. Therefore, no rows will be deleted from the table.

Submit
68. You need to rename  a column         in a data base table Which Data Definition Language        (   DDL )   statement should you use ?

Explanation

To rename a column in a database table, you should use the ALTER statement. The ALTER statement allows you to modify the structure of a table, including renaming columns. The INSERT statement is used to add new rows of data into a table. The CREATE statement is used to create a new table. The UPDATE statement is used to modify existing data in a table, but it does not allow you to rename columns.

Submit
69. You have a table named Employee that includes the following columns: Employee ID - Smp1oyeeName - Which statement should you use to return the number of rows in the table?

Explanation

The correct answer is "Select Count * From Employee". This statement uses the COUNT function to return the number of rows in the table "Employee". The "*" inside the COUNT function means that it will count all rows in the table.

Submit
70. You are developing A SQL statement to create a table Which two SQL Keyword are valid  to use in a create table statement choose two

Explanation

The two valid SQL keywords to use in a create table statement are "Primary Key" and "Constraint". "Primary Key" is used to define a column or a combination of columns as the primary key of the table, which ensures uniqueness and helps in identifying each row uniquely. "Constraint" is used to define rules and restrictions on the data in the table, such as defining a foreign key constraint or a check constraint.

Submit
71. You create the following table , which lists how many books you have in loan to your friend  Harry in San Francisco returns your books

Explanation

The correct answer is "Update loaned books set books = 0 where (Name = HARRY AND CITY + San Francisco ]". This answer correctly uses the SQL UPDATE statement to set the value of the "books" column to 0 in the "loaned books" table. The WHERE clause specifies that the update should only be applied to rows where the "Name" column is equal to "HARRY" and the "CITY" column is equal to "San Francisco".

Submit
72. You have a database that contains 10 terabytes of data. you need to backup the data base every two hours. which type of backup should you use?

Explanation

To backup a 10 terabyte database every two hours, using a full backup would be impractical and time-consuming. Partial backups would also not be ideal as they only backup specific portions of the database. The most suitable option in this case would be to use incremental backups. Incremental backups only backup the data that has changed since the last backup, reducing the backup time and storage space required. This allows for more frequent backups without taking up excessive resources.

Submit
73. Match the following
Submit
74. The following illustration shows the structure of a clustered index in a single partition: https://www.examtopics.com/assets/media/exam-media/02215/0005400001.jpg Instructions: Use the drop-down menus to select the answer choice that completes each statement Each correct selection is worth one point. Hot Area:
  • Hide Solution Discussion 2
Correct Answer:
Submit
75. You need to populate a table named Employee Copy with data from an existing table named Employee. Which statement should you use?

Explanation

The correct statement to use is "INSERT into Employee Copy SELECT * FROM Employee". This statement will insert all the data from the existing table named Employee into the table named Employee Copy.

Submit
76. You have a table named  student that contains 100 rows , some of the row have a NULL value  in The first name column You execute the following statement Delete from student What is the result ??

Explanation

The correct answer is that all rows in the table will be deleted. The statement "Delete from student" does not specify any conditions or criteria for deletion, so it will delete all rows in the table, regardless of the values in the first name column.

Submit
77. You have a database table named Song Information as defined below: https://www.examtopics.com/assets/media/exam-media/02215/0004900002.png You need to create a Structured Query Language (SQL) query to retrieve only the names of songs that sold more than 1000 compact discs (CDs). Which query should you use? https://www.examtopics.com/assets/media/exam-media/02215/0005000001.jpg

Explanation

Option A is the correct answer because it uses the SELECT statement to retrieve the names of songs from the Song Information table. The WHERE clause is used to filter the results and only include songs that have a sales quantity greater than 1000. This query meets the requirement of retrieving only the names of songs that sold more than 1000 CDs.

Submit
78. You need to enable a new employee to authenticate to your database which command should you use  ?

Explanation

To enable a new employee to authenticate to the database, the appropriate command to use is "Create user." This command allows the creation of a new user account in the database, which includes authentication credentials such as a username and password. By creating a user account, the new employee will be able to access and authenticate to the database using their designated credentials.

Submit
79. This question requires that you evaluate the underlined text to determined if its correct Views are database objects that contain all of the data in database Instruction  Review  the underline text if it makes the statement correct select No change is needed  if the statement is incorrect

Explanation

The underlined text states that "Views are database objects that contain all of the data in the database." This statement is incorrect. Views in a database are virtual tables that display data from one or more tables in the database. They do not contain all of the data in the database, but rather provide a way to organize and present data in a specific way. Therefore, the correct answer is "No change is needed" as the underlined text is incorrect.

Submit
80. Denormalization is performed in order to

Explanation

Denormalization is the process of optimizing a database by adding redundant data to improve query performance. By denormalizing the tables, we can eliminate the need for complex joins and reduce the number of tables involved in a query. This can greatly enhance the speed at which queries are executed, as it reduces the amount of data that needs to be accessed and processed. Therefore, improving query performance is the main purpose of denormalization.

Submit
81. This question requires that you evaluate the underlined text to determine if it is correct. Views are database objects that contain all of the data in a database. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct

Explanation

not-available-via-ai

Submit
82. This question requires that you evaluate the underlined text to determine if it is correct. In a relational database a field that is a foreign key in a table can contain null values

Explanation

The given answer is correct because in a relational database, a field that is a foreign key in a table can indeed contain null values. A foreign key is a field in a table that refers to the primary key of another table. It establishes a relationship between the two tables. Null values in a foreign key field indicate that there is no corresponding record in the referenced table. Therefore, the statement "In a relational database a field that is a foreign key in a table can contain null values" is correct and no change is needed.

Submit
83. Check the correct answer

Explanation

A stored procedure is a set of SQL statements that can be executed to perform a specific task, such as deleting data from a database. Therefore, the statement "You can delete data by using stored procedure" is a correct answer. On the other hand, a function is also a set of SQL statements, but it must have a return value. This means that a function is used to perform a specific task and return a value, while a stored procedure is used to perform a task without necessarily returning a value.

Submit
84. 62- You have a database table that contains the following columns: https://www.examtopics.com/assets/media/exam-media/02215/0007100001.jpg You must insert the following record into the table: https://www.examtopics.com/assets/media/exam-media/02215/0007100002.png Which two Structured Query Language (SQL) statements can you use? (Choose two.) https://www.examtopics.com/assets/media/exam-media/02215/0007100003.jpg

Explanation

not-available-via-ai

Submit
85. Your database contains a table named Customer. You need to delete the record from the Customer table that has a Cusromer ID of 12345. Which statement should you use? https://www.examtopics.com/assets/media/exam-media/02215/0004200001.png

Explanation

To delete the record from the Customer table with a Customer ID of 12345, you should use Option D.

Submit
86. You need to add rows to a database table. Which Structured Query Language (SQL) keyword should you use?

Explanation

To add rows to a database table, the appropriate SQL keyword to use is INSERT. The INSERT keyword allows you to insert new records into a table by specifying the table name and the values to be inserted into the respective columns. This keyword is used to add data to an existing table and is commonly used in conjunction with the VALUES clause to specify the actual data to be inserted.

Submit
87. This question requires that you evaluate the underlined text to determine if it is correct. The UNION keyword combines the results of two queries and returns only rows that appear in both result sets. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct

Explanation

The correct answer is "INTERSECT." The underlined text states that the UNION keyword combines the results of two queries and returns only rows that appear in both result sets. However, the correct keyword for this operation is "INTERSECT," not "UNION." The INTERSECT keyword combines the results of two queries and returns only the common rows between the two result sets.

Submit
88. Check true or false

Explanation

A stored procedure is a set of SQL statements that can be executed to perform a specific task, such as deleting data from a database. Therefore, it is true that you can delete data by using a stored procedure. On the other hand, a function is a subprogram that returns a value, so it must have a return value. However, a stored procedure can have a return value or not, depending on the specific requirements of the task it is performing. Therefore, it is false that a stored procedure must have a return value.

Submit
89. HOTSPOT - Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. Hot Area:

Explanation

not-available-via-ai

Submit
90. True or false check box

Explanation

In a table, each row represents a unique record or entry. Therefore, it is necessary for each row in a table to be unique. This ensures that there are no duplicate entries and maintains the integrity of the data. Similarly, each column name in a table must be unique to avoid confusion and ambiguity when referencing specific columns.

Submit
91. This question requires that you evaluate the underlined text to determine if it is correct. The CREATE TABLE command removes one or more table definitions and all data, indexes, triggers, constraints, and permission specifications for those tables. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct

Explanation

The underlined text states that the CREATE TABLE command removes table definitions and all associated data, indexes, triggers, constraints, and permission specifications. However, this is incorrect as the CREATE TABLE command is used to create a new table, not remove an existing one. The correct command to remove a table is DROP TABLE. Therefore, the answer choice "DROP TABLE" makes the statement correct.

Submit
92. You assign User1 a set of permissions that include the WITH GRANT OPTION. The WITH GRANT OPTION enables User1 to:

Explanation

The correct answer is "create new database users". When the WITH GRANT OPTION is assigned to User1, it allows User1 to create new database users. This means that User1 has the ability to grant permissions to other users and control their access to the database.

Submit
93. Match the following
Submit
94. - Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. Hot Area: https://www.examtopics.com/assets/media/exam-media/02215/0007500001.jpg

Explanation

not-available-via-ai

Submit
95. Which command should you use to add a column to an existing table? Which one do you like?

Explanation

To add a column to an existing table, the ALTER command should be used. The ALTER command allows for the modification of the structure of a table, including adding, modifying, or deleting columns. In this case, the ALTER command would be used to add a new column to the existing table. INSERT, CHANGE, MODIFY, and UPDATE are not appropriate commands for adding a column to a table.

Submit
96. You work for a small trading  company  you need to remove a car from the company database information about the car is stored in the following tables  

Explanation

The correct answer is "Model engine" because the information about the car is stored in the tables "Model" and "Engine". These tables likely contain details such as the car's model name and the type of engine it has. By removing the "Model engine" from the company database, the information about the car will no longer be accessible or stored in the system.

Submit
97. This question requires that you evaluate the underlined text to determine if it is correct. ALTER TABLE removes all rows from a table without logging the individual row deletions. Instructions: Review the underlined text. If it makes the statement correct, select "No change is needed." If the statement is incorrect, select the answer choice that makes the statement correct.

Explanation

The underlined text is correct. The TRUNCATE TABLE statement is used to remove all rows from a table without logging the individual row deletions. This is different from the DROP TABLE statement, which deletes the entire table and all of its data, and the CREATE TABLE statement, which creates a new table.

Submit
98. Which keyword must be included in a create view statement?

Explanation

The keyword that must be included in a create view statement is SELECT. This is because the SELECT keyword is used to specify the columns and data that will be included in the view. The SELECT statement is essential in defining the data that will be displayed when the view is queried.

Submit
99. You need to combine the results of two queries into a single result that contains all of the rows from both queries. Which Structured Query Language (SQL) statement should you use?

Explanation

The correct answer is UNION. The UNION operator is used to combine the results of two SELECT statements into a single result set. It retrieves all the rows from both queries and removes any duplicate rows. This allows you to merge the results of two separate queries into one result set.

Submit
100. You have two tables named Salesperson and Sales. You need to ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table. Which database object should you add to the Sales table?

Explanation

To ensure that each record in the Sales table has a valid associated salesperson record in the Salesperson table, a foreign key should be added to the Sales table. A foreign key is a column or a set of columns in one table that refers to the primary key in another table. By adding a foreign key to the Sales table, it will establish a relationship between the Sales and Salesperson tables, ensuring that only valid salesperson records can be inserted or updated in the Sales table.

Submit
101. A relational database management system employs the concept of attribute to ensure that data entered into a field in a column is valid

Explanation

A constraint is a rule or condition that is applied to a field in a column to ensure that the data entered into that field is valid. In the context of a relational database management system, using a constraint helps to enforce data integrity by restricting the type or range of values that can be entered into a field. This ensures that the data entered into a field in a column is valid and meets the specified criteria. Therefore, the concept of a constraint is employed in a relational database management system to ensure the validity of data entered into a field.

Submit
102. True or false HOTSPOT - Instructions: For each of the following statements, select Yes if the statement is true. Otherwise, select No. Each correct selection is worth one point. True or false Hot Area:

Explanation

A full database backup is a complete copy of all the data in the entire database. It includes all tables, indexes, and other objects. On the other hand, a file or file group restore is used to recover a specific portion of the database, such as a single file or a group of files. Therefore, the statement "A full database backup is a copy of all the data in the entire database" is true, while the statement "A file or file group restore specifies a portion of the database to recover" is also true.

Submit
103. You develop a database to store data about text books the data must be stored to process at a later time Which database object should you use to store the data

Explanation

A stored procedure is the correct answer because it is a database object that allows you to store a set of SQL statements that can be executed at a later time. It can be used to store and process data in a database, making it suitable for storing data about textbooks that can be processed at a later time. A stored procedure can be called and executed whenever needed, providing a convenient way to store and retrieve data efficiently.

Submit
104. This question requires that you evaluate the underlined text to determine if it is correct. You create a table of recently released  video games and their review scores . To create a view that return a list of game names that is alphabetically sorted, the completed SQL statement should be the following  : create view My Games As select Name from Games   Instruction : Review the underlined text . If it makes the statement correct select "No change is needed " if the statement  is incorrect select the answer choice that makes the statement correct

Explanation

The underlined text is correct. The SQL statement "create view My Games As select Name from Games" will create a view that returns a list of game names from the table "Games" in alphabetical order. Therefore, no change is needed.

Submit
105. You need to retrieve data from two related database tables based on a column that exists in both tables. Which command should you use in a query?

Explanation

To retrieve data from two related database tables based on a common column, the appropriate command to use in a query is JOIN. The JOIN command allows you to combine rows from two or more tables based on a related column, enabling you to retrieve the desired data by linking the tables together. The INTERSECT command is used to retrieve common rows between two queries, the UNION command is used to combine the results of two queries into a single result set, and the TRUNCATE command is used to delete all data from a table.

Submit
106. Check the correct answer

Explanation

The correct answer is "You can insert data multiple rows into a table by using one insert statement". This statement is correct because in SQL, you can use a single INSERT statement to insert multiple rows of data into a table. This can be done by specifying multiple sets of values in the VALUES clause of the INSERT statement, separated by commas. This allows for efficient and concise data insertion into a table.

The statement "You can insert data that is in one table into another table" is also correct. In SQL, you can use the INSERT INTO SELECT statement to insert data from one table into another table. This is useful when you want to copy data from one table to another or when you want to combine data from multiple tables into a single table.

Submit
107. You have a Department table and an Employee table in your database. You need to ensure that an employee can be assigned to only an existing department. What should you apply to the Employee table?

Explanation

To ensure that an employee can be assigned to only an existing department, a foreign key should be applied to the Employee table. A foreign key establishes a relationship between two tables, in this case, the Employee and Department tables. By applying a foreign key constraint on the Employee table, it will be required for the value in the department column of the Employee table to match an existing department in the Department table. This constraint ensures data integrity and prevents the assignment of employees to non-existent departments.

Submit
108. You accept an IT internship at a local charity. The charity asks you to keep a record of its volunteers by using a database table named Volunteer . When volunteers  ask to be removed from mailing list . the table must be updated . You need to use a transaction to ensure that  the database has data integrity and referential integrity . Which statement should you use ?

Explanation

not-available-via-ai

Submit
View My Results

Quiz Review Timeline (Updated): Jun 10, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 10, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Oct 12, 2019
    Quiz Created by
    Maysa Hassan
Cancel
  • All
    All (108)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
You have a table of products with fields for ProductID, Name, and...
Which two keys establish a relationship between two tables? (Choose...
On which database structure does an update statement operate?
You have a table named Employee that includes four columns. ...
You have two database tables as defined below. The State ID column is...
Which command should you use to remove a table from a database?
You are writing a SQL statement to retreive rows from a table which...
This question requires that you evaluate the underlined text to...
Correct match is worth one point. Select and Place:  
What defines the amount of storage space that is allocated to a value...
The Product table contains the following data. ...
Which key uniquely identifies a row in a table?
You have two database tables as defined below. The first table...
Hot Area: Hide Solution Discussion 2 Correct Answer:
You have a table that contains the following data. ...
You have a table named Product. The Product table has columns for...
What should you include in the update statement?
Which statement deletes the rows where the employee's phone number...
A named group of SQL statements that can be executed in a database is...
Which permission does a user need in order to run a stored procedure?
You have the following table definition: ...
You have two tables named Cars and Color as defined below. The two...
You have the database table named Cars as defined below: ...
You have the following table definition: ...
 The following illustration shows backup strategies that use the...
This question requires that you evaluate the underlined text to...
A view can be used to
You need to list the name and price of each product, sorted by price...
Match the following
Which keyword would you use in a select statement to return rows that...
You are writing a T - SQL statement that perform a long complex query...
 You need to remove a view named EmployeeView from your...
In SQL, an insert statement is used to add a
Which statement should you use?
Which two elements are required to define a column ??
One different between A function and a stored procedure
When volunteer information changes, you must update the table. ...
You need to insert two new products into the Product table. The first...
You have a table named Customer. You need to add a new column named...
Which constraint ensures a unique value in the ID column for each...
What are three valid data manipulation language DML Comands choose...
5 - Which statement will result in the creation of an index? choose
You delete rows in a table named Order. The corresponding rows in the...
Check the correct answer
Data in a database is stored in:
This question requires that you evaluate the underlined text to...
You have two tables. Each table has three rows. ...
This question requires that you evaluate the underlined text to...
The component that holds information for a single entry in a table is...
You need to set up a database to provide a view of North American...
On which database structure does an insert statement operate?
One reason to add an index is to
What is one difference between an update statement and a delete...
21 - Which category of SQL statements is used to add, remove, and...
Check true sentences
A database contains two tables named Customer and Order. ...
First normal form requires that a database excludes
You have a table that contains information about all students in your...
This question requires that you evaluate the underlined text to...
You have a table that contains the following data ...
You need to store the first name , Last name and Student ID for 100...
You need to delete a database table. ...
Which statement creates a composite key?
You need to store the contact information for each student in your...
You have a table named Product that contains the following data. ...
You execute a statement  inside a transaction to delete 100 rows...
You need to rename  a...
You have a table named Employee that includes the following columns: ...
You are developing A SQL statement to create a table ...
You create the following table , which lists how many books you have...
You have a database that contains 10 terabytes of data. you need to...
Match the following
The following illustration shows the structure of a clustered index in...
You need to populate a table named Employee Copy with data from an...
You have a table named  student that contains 100 rows , some of...
You have a database table named Song Information as defined below: ...
You need to enable a new employee to authenticate to your database...
This question requires that you evaluate the underlined text to...
Denormalization is performed in order to
This question requires that you evaluate the underlined text to...
This question requires that you evaluate the underlined text to...
Check the correct answer
62- You have a database table that contains the following columns: ...
Your database contains a table named Customer. ...
You need to add rows to a database table. ...
This question requires that you evaluate the underlined text to...
Check true or false
HOTSPOT - ...
True or false check box
This question requires that you evaluate the underlined text to...
You assign User1 a set of permissions that include the WITH GRANT...
Match the following
- Instructions: For each of the following statements, select Yes if...
Which command should you use to add a column to an existing table?...
You work for a small trading  company  you need to remove a...
This question requires that you evaluate the underlined text to...
Which keyword must be included in a create view statement?
You need to combine the results of two queries into a single result...
You have two tables named Salesperson and Sales. ...
A relational database management system employs the concept of...
True or false ...
You develop a database to store data about text books the data must be...
This question requires that you evaluate the underlined text to...
You need to retrieve data from two related database tables based on a...
Check the correct answer
You have a Department table and an Employee table in your database. ...
You accept an IT internship at a local charity. The charity asks you...
Alert!

Advertisement