Docsity

IS 340 Exam 1: Database Concepts and SQL, Exams of Nursing

Toggle sidebar
bg1
IS 340 Exam 1
a record - correct answer Which of the following represents a row in a table?
one-to-many - correct answer Which of the following defines a relationship in
which each occurrence of data in one entity is represented by multiple occurrences of the data in the
other entity?
some-to-many - correct answer Which of the following is not an E-R model
relationship?
a straight line with a crow's foot at both ends - correct answer Which of the
following symbols represents a many-to-many relationship in an E-R model?
unnormalized data - correct answer Which of the following can contain
repeating groups?
one-to-one - correct answer Which of the following defines a relationship in
which each occurrence of data in one entity
is represented by only one occurrence of data in the other entity?
3NF - correct answer Which of the following has no partial or transitive
dependencies?
a straight line with a crow's foot at one end - correct answer Which of the
following symbols represents a one-to-many relationship in an E-R model?
2NF - correct answer Which of the following has no partial dependencies but
can contain transitive
dependencies?
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download IS 340 Exam 1: Database Concepts and SQL and more Exams Nursing in PDF only on Docsity!

IS 340 Exam 1

a record - correct answer Which of the following represents a row in a table? one-to-many - correct answer Which of the following defines a relationship in which each occurrence of data in one entity is represented by multiple occurrences of the data in the other entity? some-to-many - correct answer Which of the following is not an E-R model relationship? a straight line with a crow's foot at both ends - correct answer Which of the following symbols represents a many-to-many relationship in an E-R model? unnormalized data - correct answer Which of the following can contain repeating groups? one-to-one - correct answer Which of the following defines a relationship in which each occurrence of data in one entity is represented by only one occurrence of data in the other entity? 3NF - correct answer Which of the following has no partial or transitive dependencies? a straight line with a crow's foot at one end - correct answer Which of the following symbols represents a one-to-many relationship in an E-R model? 2NF - correct answer Which of the following has no partial dependencies but can contain transitive dependencies?

1NF - correct answer Which of the following has no repeating groups but can contain partial or transitive dependencies? primary key - correct answer The unique identifier for a record is called the: foreign key - correct answer Which of the following fields also serves as a primary key in another table when two tables are joined together on that value? composite primary key - correct answer A unique identifier for a data row that consists of more than one field is commonly called a: a dashed line - correct answer Which of the following symbols represents an optional relationship in an E-R model? many-to-many relationship - correct answer Which of the following, when used in an E-R model, indicates the need for an additional table? a column - correct answer Which of the following represents a field in a table? many-to-many - correct answer Which of the following defines a relationship in which data can have multiple occurrences in each entity? transitive dependency - correct answer When part of the data in a table depends on a field in the table that isn't the table's primary key, it's known as: common field - correct answer Which of the following is used to join data contained in two or more tables?

    • correct answer Which of the following symbols is used in a SELECT clause to display all columns from a table? when listing more than one field name and the fields aren't concatenated - correct answer When must a comma be used in the SELECT clause of a query? SELECT title, books, category FROM books; - correct answer Which of the following commands displays a listing of the category for each book in the BOOKS table? WHERE - correct answer Which clause is NOT required in a SELECT statement? WHERE - correct answer Which clause is used to restrict rows or perform selection? SELECT firstname, lastname FROM customers ORDER BY state desc, city desc; - correct answer Which of the following returns a list of all customers' names sorted in descending order by city within state? SELECT lastname FROM customers WHERE lastname = "THOMPSON"; - correct answer Which of the following doesn't return a customer with the last name THOMPSON in the query results? SELECT * FROM books WHERE pubid = 1 AND retail >= 25; - correct answer Which of the following displays all books published by Publisher 1 with a retail price of at least $25.00? ascending - correct answer What's the default sort sequence for the ORDER BY clause? SELECT * FROM books WHERE pubid = 2, retail >=$35.00; - correct answer Which of the following doesn't include the display of books published by Publisher 2 and having a retail price of at least $35.00?

SELECT * FROM customers WHERE firstname LIKE '%N%'; - correct answer Which of the following includes a customer with the first name BONITA in the results? _ - correct answer Which of the following represents exactly one character in a pattern search? SELECT * FROM books WHERE title like 'H_N_C%'; - correct answer Which of the following returns the book HANDCRANKED COMPUTERS in the results? SELECT * FROM books WHERE pubdate > '20-MAR-05'; - correct answer Which of the following SQL statements returns all books published after March 20, 2005? SELECT * FROM orders WHERE orderdate <'05-APR-09' AND shipdate is NULL; - correct answer Which of the following finds all orders placed before April 5, 2009 that haven't yet shipped? % - correct answer Which of the following symbols represents any number of characters in a pattern search? SELECT title, retail-cost profit FROM books WHERE retail-cost >=10.00 ORDER BY "PROFIT" desc; - correct answer Which of the following lists each book having a profit of at least $10.00 in descending order by profit? SELECT * FROM books WHERE title LIKE '%AS_E%'; - correct answer Which of the following includes the book HOW TO GET FASTER PIZZA in the query results? Select LastName, FirstName, State from customers where state='NJ'; - correct answer Which customers live in New Jersey? List each customer's last name, first name, and state. Select Title, Category from Books where Category <> 'FITNESS'; - correct answer Which books aren't in the Fitness category? List each book title and category.

SELECT *

FROM customers CROSS JOIN orders; SELECT title FROM books NATURAL JOIN publisher WHERE name = 'PRINTING IS US'; - correct answer Which of the following lists all books published by the publisher named Printing Is Us? To include unmatched records in the results, the record is paired with a NULL record in the deficient table. - correct answer Which of the following statements about an outer join between two tables is true? 30 - correct answer What is the maximum number of characters allowed in a table alias? Select BOOKS.TITLE as BOOK_TITLE, PUBLISHER.NAME AS PUBLISHER_NAME, PUBLISHER.PHONE as PUBLISHER_NAME from BOOKS, PUBLISHER where BOOKS.PUBID=PUBLISHER.PUBID; - correct answer Create a list that displays the title of each book and the name and phone number of the contact at the publisher's office for reordering each book. Select ORDERITEMS.ORDER# as ORDER_ID, CUSTOMERS.FIRSTNAME, CUSTOMERS.LASTNAME as LASTNAME from ORDERITEMS, ORDERS, CUSTOMERS WHERE ORDERITEMS.ORDER#!=ORDERS.ORDER# AND ORDERS.CUSTOMER#=CUSTOMERS.CUTOMER# order by ORDERS.ORDERDATE; - correct answer Determine which orders haven't yet shipped and the name of the customer who placed the order. Sort the results by the date on which the order was placed. SELECT customer#, c.firstname||' '||c.lastname as name, order#, ISBN, b.category, c.state FROM customers c JOIN orders o USING (customer#) JOIN orderitems oi USING (order#) JOIN books USING (ISBN) WHERE state = 'FL' AND category ='COMPUTER'; - correct answer Produce a list of all customers who live in the state of Florida and have ordered books about computers. SELECT a.lname, a.fname, b.title FROM books b, orders o, orderitems i, customers c, bookauthor , author a WHERE c.customer# = o.customer#

AND firstname= 'BECCA' AND lastname = 'NELSON' AND o.order# = i order# AND i.isbn = b.isbn AND b.isbn = t.isbn AND t.authorid = a.authorid - correct answer Identify the authors of the books Becca Nelson ordered. Perform the search using the customer name. ORDER BY clause - correct answer Used to specify the sorted order for displaying query results NULL value - correct answer means no value has been stored in that field ORDER BY clause - correct answer used to display query results in a sorted order, is listed at the end of the SELECT statement DESC - correct answer To view publishers in descending alphabetical order by name, enter _____ after the column name The LIKE comparison operator - correct answer used with the percent and underscore symbols (% and _) to establish search patterns

a row - correct answer a record is called a table - correct answer a file is known as Systems Development Life Cycle (SDLC) - correct answer The design and development of a system Systems Development Life Cycle (SDLC) steps - correct answer 1. Systems investigation: Understanding the problem

  1. Systems analysis: Understanding the solution to the previously identified problem
  2. Systems design: Defining the logical and physical components
  3. Systems implementation: Creating the system
  4. Systems integration and testing: Placing the system into operation for testing
  5. Systems deployment: Placing the system into production
  6. Systems maintenance and review: Evaluating the implemented system an entity - correct answer is any person, place, or thing with characteristics or attributes that will be included in the system An E-R model - correct answer is a diagram that identifies the entities (customers, books, orders, and such) in the database, and it shows how the entities are related to one another First-normal form

(1NF) - correct answer indicates that all values of the columns are atomic— meaning they contain no repeating values