100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
DBI202 Exam Questions and Answers Updated 2024 $12.49   Add to cart

Exam (elaborations)

DBI202 Exam Questions and Answers Updated 2024

 0 view  0 purchase
  • Course
  • 2024/2025
  • Institution
  • 2024/2025

DBI202 Exam Questions and Answers Updated 2024 A CASE SQL statement is which of the following? Select one: A way to establish a loop in SQL A way to establish a data definition in SQL All of the above A way to establish an IF-THEN-ELSE in SQL - Answer-A way to establish an IF-THEN-ELSE in S...

[Show more]

Preview 4 out of 57  pages

  • October 16, 2024
  • 57
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • 2024/2025
  • 2024/2025
avatar-seller
Emillect
EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024




DBI202 Exam Questions and Answers
Updated 2024


A CASE SQL statement is which of the following?


Select one:


A way to establish a loop in SQL


A way to establish a data definition in SQL


All of the above


A way to establish an IF-THEN-ELSE in SQL - Answer✔✔-A way to establish an IF-THEN-ELSE in

SQL


A domain of PaymentMethod attributes in Invoice relation have 2 types: Cash, Transfer. Which

statement is used to validate the data entries?


Select one:


...CHECK PaymentMethod = ('Cash','Transfer')


...CHECK PaymentMethod IN ('Cash','Transfer')


...CHECK (PaymentMethod IN ('Cash','Transfer')




Page 1/57

,EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024


...CHECK (PaymentMethod = 'Cash' AND PaymentMethod = 'Transfer') - Answer✔✔-...CHECK

(PaymentMethod IN ('Cash','Transfer')


A relationship is when both participants in the relationship are the same entity set is called


Select one:


Ternary


N-ary


Binary


Unary - Answer✔✔-Unary


A trigger belongs to_______________


Select one:


a single table in the database


all tables in the database


none of the others


more than one table in the database - Answer✔✔-a single table in the database


Choose the correct statement.


Select one:


All of the others



Page 2/57

,EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024


The syntax to remove a trigger is: DROP TRIGGER < trigger_name >


You can remove a trigger by dropping it or by dropping the trigger table.


Use ALTER TRIGGER to change the definition of a trigger - Answer✔✔-All of the others


Give the SQL statement: SELECT * FROM Worker WHERE first_name like '%a%'


Select one:


This statement is used to print details of the workers whose first_name begins with 'a'


This statement is used to print details of the workers whose first_name ends with 'a'


This statement is used to print details of the workers whose first_name begins and ends with 'a'


This statement is used to print details of the workers whose first_name contains 'a' -

Answer✔✔-This statement is used to print details of the workers whose first_name contains 'a'


How many tables may be included with a join?


Select one:


Four


One


Three


Two - Answer✔✔-Two


In SQL, Students(Stu_ID, Stu_Name, Stu_Age, Stu_Sex) . How can you return the number of

record in the "Students" table? Choose the correct

Page 3/57

, EMILLECT 2024/2025 ACADEMIC YEAR ©2024 EMILLECT. ALL RIGHTS RESERVED FIRST PUBLISH OCTOBER, 2024


answer(s).


Select one or more:


Select count (Stu_ID) from Students group by Stu_ID


Select * from Students


Select count(Stu_ID) from Students


Select count(*) from Students - Answer✔✔-Select count (Stu_ID) from Students group by

Stu_ID


Select count(Stu_ID) from Students


SELECT SUBSTRING('SQL_SERVER', 2, 3) AS 'Substring', len(SUBSTRING('SQL_SERVER', 2, 3)) AS

'x'


Select one:


Substring is 'SQL' and x=3


Substring is 'QL_' and x=3


Substring is '_S' and x=2


Substring is 'QL_' and x=2 - Answer✔✔-Substring is 'QL_' and x=3


SQL data definition commands make up a(n)___________.


Select one:


DML

Page 4/57

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Emillect. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80630 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart