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
Document preview thumbnail
Voorbeeld 2 van de 13 pagina's
Tentamen (uitwerkingen)

OMIS 452 EXAM 1 Questions with Correct Answers (Grade A+)

Document preview thumbnail
Voorbeeld 2 van de 13 pagina's

OMIS 452 EXAM 1 Questions with Correct Answers (Grade A+)

Voorbeeld van de inhoud

OMIS 452 EXAM 1 Questions with Correct Answers (Grade A+)

Question 1: What is Information?

Answer: Organized Data


Question 2: Name 4 different relational database management systems

Answer: Hana DB2 MySQL Oracle


Question 3: What do the following stand for DBMS SQL

Answer: DBMS is Database management system SQL is structured query language


Question 4: What is the purpose of a query

Answer: To answer a question or request


Question 5: Given the table student(zid,lname,fname,e mail,major) Write a query to display all
columns, all rows of the table student

Answer: Select zid, lname, fname, email, major from student;


Question 6: Given the table student(zid,lname,fname,e mail,major,age) Write a query to display the
columns zid and fname for all students whose age is either 23 or 24

Answer: SELECT zid, fname FROM student WHERE age = 23 or age = 24;


Question 7: Find the names of students who have a last name that starts with a N

Answer: Select lname, fname from student where lname like 'N%';


Question 8: GIVEN the following tables and relationships Underlined attributes are the primary
keys bolded attributes are foreign keys student(zid, fname, lname, zipcode, email_address, adv_id)
faculty(fid, fname, lname, zipcode, email_address) zip(zipcode, city, state) courses(c_num,
course_name, course_description, credit_hrs) classes(cl_id, c_num, fid) grades(zid,cl_id, grade) with
the following referential integrity courses(c_num) -> classes(c_num) student(zid) -> grades(zid)
classes(cl_id) -> grades(cl_id) faculty(fid) -> classes(fid) faculty(fid) -> student(adv_id) zip(zipcode)
-> student(zipcode) zip(zipcode) -> faculty(zipcode) Write a query to display all

Answer: Select classes.cl_id from classes, courses where classes.c_num=courses.c_num and
course_name='Operating Systems 649';



Page 1

, Question 9: Underlined attributes are the primary keys bolded attributes are foreign keys
student(zid, fname, lname, zipcode, email_address, adv_id) faculty(fid, fname, lname, zipcode,
email_address) zip(zipcode, city, state) courses(c_num, course_name, course_description, credit_hrs)
classes(cl_id, c_num, fid) grades(zid,cl_id, grade) with the following referential integrity
courses(c_num) -> classes(c_num) student(zid) -> grades(zid) classes(cl_id) -> grades(cl_id)
faculty(fid) -> classes(fid) faculty(fid) -> student(adv_id) zip(zipcode) -> student(zipcode)
zip(zipcode) -> faculty(zipcode) Write a query to find the names of students along with the city and
state they live in. Display the

Answer: select fname, lname, city, state from student, zip where student.zipcode= zip.zipcode order by
state, city;


Question 10: Underlined attributes are the primary keys bolded attributes are foreign keys
student(zid, fname, lname, zipcode, email_address, adv_id) faculty(fid, fname, lname, zipcode,
email_address) zip(zipcode, city, state) courses(c_num, course_name, course_description, credit_hrs)
classes(cl_id, c_num, fid) grades(zid,cl_id, grade) with the following referential integrity
courses(c_num) -> classes(c_num) student(zid) -> grades(zid) classes(cl_id) -> grades(cl_id)
faculty(fid) -> classes(fid) faculty(fid) -> student(adv_id) zip(zipcode) -> student(zipcode)
zip(zipcode) -> faculty(zipcode) Write a query to find the names and zipcode of students that live in
any of the following zipcodes,

Answer: Select lname, fname, zipcode from student where zipcode='60115' or zipcode='60543' or
zipcode='60454' order by lname;


Question 11: Underlined attributes are the primary keys bolded attributes are foreign keys
customer(cus_id, cus_first, cus_last, street_addr, zipcode, ph_number) employee(eid, fname, lname,
zipcode, street_address, zipcode,home_phone) cars(vin,make,model,year1, color,cost,new_used)
purchases(pur_id,vin,cus_id ,eid,date_purchased, price_paid) try_out(try_id,cus_id,vin,eid,
date_tried,opinion) zip(zipcode, city, state) with the following referential integrity customer(cus_id)
-> purchases(cus_id) customer(cus_id) -> try_out(cus_id) employee(eid) -> purchases(eid)
employee(eid) -> try_out(eid) cars(vin) -> purchases(vin) cars(vin) -> try_out(vin) zip(zipcode) ->
customer(zipcode) zip(zipcode) - >employee(zipcode)

Answer: Select count(*) from customer,purchases where customer.cus_id=purchases.cus_id and
customer.cus_first='Jane' and customer.cus_last='Smith';


Question 12: Underlined attributes are the primary keys bolded attributes are foreign keys
student(zid, fname, lname, zipcode, email_address, adv_id) faculty(fid, fname, lname, zipcode,
email_address) zip(zipcode, city, state) courses(c_num, course_name, course_description, credit_hrs)
classes(cl_id, c_num, fid) grades(zid,cl_id, grade) with the following referential integrity
courses(c_num) -> classes(c_num) student(zid) -> grades(zid) classes(cl_id) -> grades(cl_id)
faculty(fid) -> classes(fid) faculty(fid) -> student(adv_id) zip(zipcode) -> student(zipcode)
zip(zipcode) -> faculty(zipcode) Write a query to display the number of faculty who have taught a
class with a



Page 2

Documentinformatie

Geüpload op
22 september 2026
Aantal pagina's
13
Geschreven in
2026/2027
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
€9,90

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

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
DrJon
3,8
(160)
Verkocht
593
Volgers
188
Items
23563
Laatst verkocht
12 uur geleden


Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen