Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS430 Midterm 2 Exam Practice Questions and Answers

Rating
-
Sold
-
Pages
12
Grade
A+
Uploaded on
23-10-2024
Written in
2024/2025

CS430 Midterm 2 Exam Practice Questions and Answers One key difference between a natural join and an inner join is: - Ans:-the number of columns returned We define a view in SQL by using the create view command. - Ans:-True To remove an authorization, we use the ________________command. - Ans:-revoke Views are considered updatable if which of the following conditions are satisfied: - Ans:-The from clause only had one database relation The select clause contains only attribute names of the relation and does not have an expressions, aggregates or distinct specification. Any attribute not listed in the select clause can be set to null. A transaction is a single operation that performs multiple logical functions within a database. - Ans:- False ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 2/12 ____________________ are a scheme that allows authorizations to be assigned to a set of responsibilities, and people to be assigned to those responsibilities. - Ans:-Roles Outer join query operations can be implemented by a simple extension of join algorithms. - Ans:- True Indices are created by using the "GRANT index {index-name} on {relation-name} using {field-name}" command. - Ans:-False What are the two possible SQL statements that must end a transaction? - Ans:-Commit work Rollback work What is the concept of referential integrity? - Ans:-That a foreign key entry in one table must point to a valid record in the table associated with the foreign key. Which of the following is true about SQL? - Ans:-SQL is both a Data Manipulation Language (DML) and a Data Definition Language (DDL). SQL specifies strings by enclosing them in double quotes. - Ans:-False The _________________ command is used to insert data into a relation. - Ans:-insert Match the domain type to its description. ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 3/12 char(n) varchar(n) int smallint numeric real, double-precision - Ans:-char(n) - a fixed-length character string varchar(n) - a variable length character string int - integer smallint - small integer numeric - a fixed-point number with user specified precision real, double-precision - floating-point and double-precision floating point numbers Which of the following are common subqueries - a select-from-where expression nested within another query? - Ans:-set membership test for empty relations set comparison ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 4/12 test for the absence of duplicate tuples An attribute takes a null value when the value of the attribute is computed to be zero. - Ans:-False Which of the following are aggregate functions? min avg left inner join left outer join count - Ans:-avg count ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER 2024 Page 5/12 min When using the GROUP BY clause, you cannot have a column in the select clause that is not in the grouping-list. - Ans:-False What are the 3 mechanisms to modify a database? - Ans:-Insertion Deletion Update Do the queries below return the same result? SELECT name, employee_deptFROM employee, emp_deptWHERE = emp_; SELECT name, employee_deptFROM employee NATURAL JOIN emp_dept; - Ans:-Same What are the three basic clauses of a SELECT statement? - Ans:-FROM clause SELECT clause WHERE clause Which clauses of the SELECT statement can the AS clause appear? - Ans:-from clause

Show more Read less
Institution
2024/2025
Course
2024/2025

Content preview

©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED

FIRST PUBLISH OCTOBER 2024




CS430 Midterm 2 Exam Practice
Questions and Answers


One key difference between a natural join and an inner join is: - Ans:✔✔-the number of columns

returned


We define a view in SQL by using the create view command. - Ans:✔✔-True


To remove an authorization, we use the ________________command. - Ans:✔✔-revoke


Views are considered updatable if which of the following conditions are satisfied: - Ans:✔✔-The from

clause only had one database relation


The select clause contains only attribute names of the relation and does not have an expressions,

aggregates or distinct specification.


Any attribute not listed in the select clause can be set to null.


A transaction is a single operation that performs multiple logical functions within a database. - Ans:✔✔-

False




Page 1/12

, ©GRACEAMELIA 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED

FIRST PUBLISH OCTOBER 2024




____________________ are a scheme that allows authorizations to be assigned to a set of

responsibilities, and people to be assigned to those responsibilities. - Ans:✔✔-Roles


Outer join query operations can be implemented by a simple extension of join algorithms. - Ans:✔✔-

True


Indices are created by using the "GRANT index {index-name} on {relation-name} using {field-name}"

command. - Ans:✔✔-False


What are the two possible SQL statements that must end a transaction? - Ans:✔✔-Commit work


Rollback work


What is the concept of referential integrity? - Ans:✔✔-That a foreign key entry in one table must point to

a valid record in the table associated with the foreign key.


Which of the following is true about SQL? - Ans:✔✔-SQL is both a Data Manipulation Language (DML)

and a Data Definition Language (DDL).


SQL specifies strings by enclosing them in double quotes. - Ans:✔✔-False


The _________________ command is used to insert data into a relation. - Ans:✔✔-insert


Match the domain type to its description.




Page 2/12

Written for

Institution
2024/2025
Course
2024/2025

Document information

Uploaded on
October 23, 2024
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GraceAmelia West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
99
Member since
2 year
Number of followers
32
Documents
8971
Last sold
1 month ago
GraceAmelia\'s Emporium

Get a well Researched and Accurate Study Materials to Boost Your Grades and Excel Academically Offered by Seller Grace.

2.8

8 reviews

5
2
4
1
3
1
2
1
1
3

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions