Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

C170 PA ALREADY PASSED

Beoordeling
-
Verkocht
-
Pagina's
7
Cijfer
A+
Geüpload op
01-12-2023
Geschreven in
2023/2024

A salesperson is authorized to sell many products and a product can be sold by many salespersons. Which kind of binary relationship does this scenario describe? - Many-to-many Which kind of relationship is displayed in this entity-relationship diagram? - Many-to-many unary Which two examples are attributes? Choose 2 answers - AN Employee number, and meeting code Which delete rule sets column values in a child table to a missing value when the matching data is deleted from the parent table? - Set-to-null In this entity-relationship diagram, Salesperson 361 is related to two customers. The table follows the restrict delete rule. What happens if someone tries to delete Salesperson 361 from the customer records? - the delete is prohibited Refer to the given SQL statement. CREATE TABLE member(member_id INT UNSIGNED NOT NULL AUTO_INCREMENT,PRIMARY KEY (member_id),last_name VARCHAR(20) NOT NULL,first_name VARCHAR(20) NOT NULL,suffix VARCHAR(5) NULL,expiration DATE NULL,email VARCHAR(100) NULL,street VARCHAR(50) NULL,city VARCHAR(50) NULL,state VARCHAR(2) NULL,zip VARCHAR(10) NULL,phone VARCHAR(20) NULL,interests VARCHAR(255) NULL); Which two columns are created as something other than variable-length strings in this statement? Choose 2 answers - member_id , expiration Employee_IDEmployee_NameOffice_Address12342Jacob54123 Main Street12346Michael354 Center Avenue12846Ethan54123 Main Street12887Joshua54123 Main Street12894Daniel354 Center Avenue13097Alexander354 Center Avenue13112Anthony54123 Main Street13411William354 Center Avenue13987Christopher354 Center Avenue13998Matthew54123 Main Street This database table has ten different employee numbers in the first column. Employee_ID is the primary key. In addition, it has ten different names in the second column and two office addresses repeated five times each in the third column.Which action should be used to translate this data into third normal form? - Move the data from the third column into its own table.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

C170 PA ALREADY PASSED

A salesperson is authorized to sell many products and a product can be sold by many salespersons.
Which kind of binary relationship does this scenario describe? - ✔✔Many-to-many



Which kind of relationship is displayed in this entity-relationship diagram? - ✔✔Many-to-many unary



Which two examples are attributes? Choose 2 answers - ✔✔AN Employee number, and meeting
code



Which delete rule sets column values in a child table to a missing value when the matching data is
deleted from the parent table? - ✔✔Set-to-null



In this entity-relationship diagram, Salesperson 361 is related to two customers. The table follows the
restrict delete rule. What happens if someone tries to delete Salesperson 361 from the customer
records? - ✔✔the delete is prohibited



Refer to the given SQL statement. CREATE TABLE member(member_id INT UNSIGNED NOT NULL
AUTO_INCREMENT,PRIMARY KEY (member_id),last_name VARCHAR(20) NOT NULL,first_name
VARCHAR(20) NOT NULL,suffix VARCHAR(5) NULL,expiration DATE NULL,email VARCHAR(100)
NULL,street VARCHAR(50) NULL,city VARCHAR(50) NULL,state VARCHAR(2) NULL,zip VARCHAR(10)
NULL,phone VARCHAR(20) NULL,interests VARCHAR(255) NULL); Which two columns are created as
something other than variable-length strings in this statement? Choose 2 answers - ✔✔member_id ,
expiration



Employee_IDEmployee_NameOffice_Address12342Jacob54123 Main Street12346Michael354 Center
Avenue12846Ethan54123 Main Street12887Joshua54123 Main Street12894Daniel354 Center
Avenue13097Alexander354 Center Avenue13112Anthony54123 Main Street13411William354 Center
Avenue13987Christopher354 Center Avenue13998Matthew54123 Main Street

This database table has ten different employee numbers in the first column. Employee_ID is the
primary key. In addition, it has ten different names in the second column and two office addresses
repeated five times each in the third column.Which action should be used to translate this data into
third normal form? - ✔✔Move the data from the third column into its own table.

, A database manager starts to convert data that has been normalized into a form that conforms to
the relational model. A simple primary key has been established and all the repeating groups have
been deleted. In which form is this data? - ✔✔Second normal form



Two attributes in two related tables have the exact same domain of values. The attribute is a primary
key in one table. Which kind of key is the attribute in the other table? - ✔✔Foreign



Which command creates a database only if it does not already exist? - ✔✔CREATE DATABASE IF NOT
EXISTS db_name ;



Refer to the given SQL statement.

SELECT PRODNUM, PRODNAME FROM PRODUCT

Which line should be added to the end of the statement to return the product numbers and product
names for products that cost 20 dollars? - ✔✔WHERE PRODCOST=20;



What does WHERE identify in a basic SQL SELECT statement? - ✔✔The row to be included



Refer to the given SQL statement.



SELECT EMPNUMFROM EMPLOYEE



Which line added to the end of the statement returns employee numbers of at least 1000? -
✔✔WHERE EMPNUM >= 1000;



Refer to the given SQL statement.



SELECT PRODNUM, SUM(QUANTITY)FROM SALESPERSON



Which line, when added to the end of the statement, returns the total number of each kind of
product by product number? - ✔✔GROUP BY PRODNUM;



Which data definition language statement affects databases or objects in them? - ✔✔ALTER

Geschreven voor

Vak

Documentinformatie

Geüpload op
1 december 2023
Aantal pagina's
7
Geschreven in
2023/2024
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
eustacemaina122

Maak kennis met de verkoper

Seller avatar
eustacemaina122 USIU
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1
Lid sinds
3 jaar
Aantal volgers
1
Documenten
519
Laatst verkocht
1 jaar geleden

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen