You are on page 1of 160

1. Oracle Database Software provides which of the following functionality?

(Cho ose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating System Incorrect. Refer to Section 1 Lesson 4. 2. The first step in system development is to document the requirements. Why? Mark for Review (1) Points Wrong. A blueprint for the database design is not needed. We can just start codi ng straight away. It clarifies what a business wants to accomplish, and provides measures for deci ding if the system delivers all that is required. (*) It allows application development to be conducted without having to consider dat abase design. It keeps businesses honest. Incorrect. Refer to Section 1 Lesson 3. 3. The main subject areas taught by the Oracle Academy are: Mark for Review (1) Points Computer Repairs Database performance tuning. Data Modeling, SQL and PL/SQL (*) Systems programming and computer architecture Incorrect. Refer to Section 1 Lesson 1. 4. Consider your school library. It will have a database with transaction detai ls of which student borrows which books. Is details of the total number of books out on loan in one given month Data or Information? Mark for Review (1) Points Data Information (*) Both Neither Incorrect. Refer to Section 1 Lesson 2.

Section 2 5. Data modelling is performed for the following reasons: (Choose Two) Mark fo r Review (1) Points (Choose all correct answers) The ERD s becomes a blueprint for designing the actual system. (*) It helps discussions and reviews. (*) We do not need datamodels, we can just start coding right away. We just draw the ERD s to please the users, once they are finished we never look a t them again. They serve no purpose in the real world. Incorrect. Refer to Section 2 Lesson 1. 6. Entity and Attribute names are always interchangable, so you need not worry about choosing the right type. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 2 Lesson 3. 7. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Incorrect. Refer to Section 2 Lesson 2. 8. The entity/relationship model is created before the physical database design model? True or False? Mark for Review (1) Points True (*) False Incorrect. Refer to Section 2 Lesson 2. 9. In a physical data model, a relationship is represented as a? Mark for Revi ew (1) Points Column

Row Instance Foreign Key (*) Incorrect. Refer to Section 2 Lesson 2. 10. Volatile entities have special requirements and need special attention when you are doing data modelling. True or False? Mark for Review (1) Points True (*) False 11. A/an _________ is a picture of all the information that will form the basis for the finished system. Mark for Review (1) Points ERD (*) Process Table Attribute Correct Section 3 12. When reading an ERD including Relationships you are said to be speaking: M ark for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Correct 13. All the Attributes in a system are just written on the ERD, and they all go in the Top Left Hand Corner of the paper. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 3 Lesson 2. 14. A Matrix Diagram should be developed by your users. True or False? Mark fo r Review (1) Points

not to a Subtype. Relationship Names are optional. Refer to Section 3 Lesson 1. 15. 16. Relationship Degree/Cardinality is important. True or False? Mark fo r Review (1) Points True False (*) Correct 20. The Other (1) Points True False (*) Correct 19. You can only create relationships to a Supertype. True or False? Mark for Review (1) Points subtype is mandatory. True or False? Mark fo r Review (1) Points True (*) False Correct 18. A new system would have a mixture of both Procedural and Structural Busines s Rules as part of the documentation of that new system. True or False? Mark for Revi ew (1) Points True (*) False Incorrect. True or False? Mark for Review (1) Points True False (*) Correct Section 4 17. A supertype can only have two subtypes and no more. Refer to Section 3 Lesson 4.True False (*) Incorrect. True or False? Mark for Review .

Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark for Review (1) Points CAR and WHEEL TREE and BRANCH PERSON and FINGERPRINT TEACHER and SUBJECT AREA (*) . A Supertype can have only one subtype. True or False? Mark for Review (1) Points True False (*) Correct 22. it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Correct 24.True False (*) Section 4 21. When creating entities you must follow these rules: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Correct Section 5 23. If a relationship can NOT be moved between instances of the entities it con nects.

What uncommon relationship is described by the statements: Each DNA SAMPLE m ay be taken from one and only one PERSON and each PERSON may provide one and onl y one DNA SAMPLE Mark for Review (1) Points One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory Correct 27.Incorrect. 25. 26. When you resolve a M-M you simply re-draw the relationships between the two original entities. these relationships ca n be either _____________ or _____________ ? Mark for Review (1) Points Redundant or Required (*) Replicated or Required Resourced and Really Good Redundant and Replicated Incorrect. How do you include a relationship as part of the UID for an entity? Mark f or Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. True or False? Mark for Review (1) Points True (*) . Correct 28. If two entities have two relationships between them. Intersection Entities often have the relationships participating in the UID . no new entities are created. True or False? Mark for Review (1) Points True False (*) Correct 29. Refer to Section 5 Lesson 2. so the relationships are often barred. Refer to Section 5 Lesson 2.

What do you call the entity created when you resolve a M:M relationship? M ark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity 31. When is an entity in 2nd Normal Form? Mark for Review (1) Points When all non-UID attributes are dependent upon the entire UID. There is no limit to how may UID s an entity can have. When no attritibutes are mutually independent and all are fully dependent on the primary key. (*) When no attritibutes are mutually independant and fully independent on the prima ry key. True or False? Mark f or Review (1) Points True (*) False Correct 34. Correct 32.False Incorrect. All entities must be given a new artificial UID. Normalizing an Entity to 1st Normal Form is done by removing repeated or re dundant attributes. True or False? Mark for R eview (1) Points True False (*) Correct 33. Refer to Section 5 Lesson 3. None of the Above. True or False? Mark for Review (1) Points True (*) False . 30.

If Audit trail attributes are added to an entity they must be in the entiti es they are auditing. Refer to Section 7 Lesson 2. 38. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. Which of the following would be good as a Unique Identifier for its Entity? (Choose Three) Mark for Review (1) Points (Choose all correct answers) Personal Identification number for Person (*) Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby Incorrect. True or False? Mark for Review (1) Points True (*) False Correct 37. independen t of their datatype Mandatory in data modeling Always comprised of numbers .Correct 35. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. No parts of an UID are mandatory. True or False? Mark for Review (1) Points True False (*) Correct Section 7 36. True or False? Mark for Review (1) Points True False (*) Correct 39. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have.

No commercial database systems in the world will accept tables that are not on 3rd Normal Form. There is no limit to how may UID s an entity can have. None of the Above. True or False? Mark for Review (1) Points . All entities must be given a new artificial UID. Tr ue or False? Mark for Review (1) Points True False (*) 31. (*) When no attritibutes are mutually independant and fully independent on the prima ry key. True or False? Mark for R eview (1) Points True False (*) Correct 33. All ERD s must have at least one Arc. True or False? Mark f or Review (1) Points True (*) False Correct 34. 40.Incorrect. True or False? Mark for Review (1) Points True (*) False Correct 35. Correct 32. Arcs are Mandatory in Data modeling. Normalizing an Entity to 1st Normal Form is done by removing repeated or re dundant attributes. When no attritibutes are mutually independent and all are fully dependent on the primary key. When is an entity in 2nd Normal Form? Mark for Review (1) Points When all non-UID attributes are dependent upon the entire UID. Refer to Section 7 Lesson 1.

True or False? Mark for Review (1) Points True (*) False Correct 37. Refer to Section 7 Lesson 2. True or False? Mark for Review (1) Points True False (*) Correct 39. Arcs are Mandatory in Data modeling. Refer to Section 7 Lesson 1. Which of the following would be good as a Unique Identifier for its Entity? (Choose Three) Mark for Review (1) Points (Choose all correct answers) Personal Identification number for Person (*) Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby Incorrect. 38. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. All ERD s must have at least one Arc. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. No parts of an UID are mandatory.True False (*) Correct Section 7 36. If Audit trail attributes are added to an entity they must be in the entiti es they are auditing. independen t of their datatype Mandatory in data modeling Always comprised of numbers Incorrect. 40. Tr ue or False? Mark for Review (1) Points .

True or False? Mark for Review (1) Points True (*) False Correct 44. True or False? Mark for Review (1) Points True (*) False Correct 45. An arc can also be modeled as Supertype and Subtypes. End Date must be before the Start Date. True or False? Mark for Review (1) Points True False (*) Correct 42. All relationships participating in an arc must be mandatory.True False (*) Section 7 41. When you add the concept of time to your data model. Dates must be stored with Time. your model becomes mor e complex. (*) EMPLOYEE periods can overlap causing the database to crash. . Modeling historical data is Optional. Which of the following is a logical constraint that could result from consi dering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. Refer to Section 7 Lesson 1. Section 9 43. True or False? Mark for Review (1) Points True (*) False Incorrect.

Correct 46. True or False? Mark for Review (1) Points True False (*) Correct 48. The generic entities MUST be drawn on a diagram of their o wn. 50. Refer to Section 10 Lesson 2. 49. All datamodels must be transformed from specific to generic. Making a diagram pretty is a waste of time. True or False? Mark for Review (1) Points True False (*) Correct Section 10 47. True or False? Mark for Review (1) Points True False (*) Incorrect. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw . All systems must include functionality to provide logging or journaling in conceptual data models. There is no point in trying to group your entities together on your diagram according to volume. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture. This way y ou end up with more than one ERD. that together documents the entire system. A datamodel containing generic modeling techniques must not be mixed in wit h non-generic models. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 11 Lesson 1. Which of the following statements are true for ERD s to enhance their readabi lity.

Oracle Database Software provides which of the following functionality? (Cho ose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating System Incorrect.You must ensure you have all the entities on one single. big diagram. Entities are transformed into Tables during the Database Design process. Consider your school library. Tru e or False? Mark for Review (1) Points True (*) False Correct 2. 3. It will have a database with transaction detai ls of which student borrows which books. Refer to Section 1 Lesson 4. The main subject areas taught by the Oracle Academy are: Mark for Review (1) Points Computer Repairs Database performance tuning. Data modelling is performed for the following reasons: (Choose Two) Mark for Review (1) Points (Choose all correct answers) . Is details of the total number of books out on loan in one given month Data or Information? Mark for Review (1) Points Data Information (*) Both Neither Correct 4. even if yo u have hundreds 1. SQL and PL/SQL (*) Systems programming and computer architecture . Data Modeling.

True or False? Mark for Review (1) Points True False (*) Correct 7. (*) They must exist between two different Entities. They can be either mandatory or optional. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct 8. They serve no purpose in the real world. (*) They must be mandatory to be created in the database. so you will need to change your ERD if you decide to change H ardware Vendor.The ERD s becomes a blueprint for designing the actual system. once they are finished we never look a t them again. Volatile entities have special requirements and need special attention when you are doing data modelling. we can just start coding right away. Correct 9. Which of the following statements about relationships are true? (Choose Two) Mark for Review (1) Points (Choose all correct answers) They become foreign keys in the database. All of the following could be attributes of an ENTITY called PERSON except o ne. (*) It helps discussions and reviews. (*) We do not need datamodels. Entity Relationship modeling is dependent on the hardware or software used f or implementation. True or False? Mark for Review (1) Points True (*) False . Correct 6. We just draw the ERD s to please the users.

Refer to Section 2 Lesson 11. Matrix Diagrams are mandatory when doing data modelling. 14. Refer to Section 2 Lesson 2. Refer to Section 3 Lesson 1. Refer to Section 3 Lesson 1. Section 3 12. Which of the following are valid relationship degrees? (Choose two) Mark f or Review (1) Points (Choose all correct answers) 1:1 (*) 1:M (*) 1:O O:O Incorrect. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Incorrect.Correct 10. True or False? Mark for Revi ew (1) Points True (*) False Incorrect. 13. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Incorrect. True or False? Ma rk for Review . Relationship Degree/Cardinality is important.

True or False? Mark fo r Review (1) Points True (*) False Correct 18. Refer to Section 3 Lesson 3. A new system would have a mixture of both Procedural and Structural Busines s Rules as part of the documentation of that new system. True or False? Mark fo r Review (1) Points True False (*) Correct 16. 15. Refer to Section 4 Lesson 1. 19. True or False? Mark for Review (1) Points . You can only create relationships to a Supertype. When creating entities you must follow these rules: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Incorrect.(1) Points True False (*) Incorrect. not to a Subtype. A Matrix Diagram should be developed by your users. Entity names are always singular. True or False? Mark for Review (1) Points True (*) False Correct Section 4 17.

True or False? Mark for Review (1) Points True False (*) Correct 24. When you resolve a M-M you simply re-draw the relationships between the two original entities. All ER diagrams must have one of each of the following: (Choose two) Mark for Review (1) Points (Choose all correct answers) One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype . True or False? Mark for Review . no new entities are created. 22. Section 5 23. Refer to Section 4 Lesson 1.True False (*) Correct 20. Refer to Section 5 Lesson 3. Intersection Entities are at the Master end in the relationships between it and the original entities. True or False? Mark for Review (1) Points True False (*) Incorrect. The Other (1) Points True False (*) Incorrect. subtype is mandatory. So the original entities are details or children of the newly created intersection entity. A Supertype can have only one subtype. Refer to Section 4 Lesson 1. True or False? Mark for Review (1) Points True False (*) Incorrect.

True or False? Mark for Review (1) Points True (*) False Incorrect. Refer to Section 5 Lesson 1.25. How do you include a relationship as part of the UID for an entity? Mark f or Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. True or False? Mark for Review (1) Points True . 27. 26. it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Incorrect. so the relationships are often barred. What uncommon relationship is described by the statements: Each DNA SAMPLE m ay be taken from one and only one PERSON and each PERSON may provide one and onl y one DNA SAMPLE Mark for Review (1) Points One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory Incorrect. If a relationship can NOT be moved between instances of the entities it con nects. Many to many relationships must be left in the Model. Intersection Entities often have the relationships participating in the UID . Refer to Section 5 Lesson 2. Incorrect. Refer to Section 5 Lesson 2. It is important to ha ve them documented as M-M. 29. Refer to Section 5 Lesson 3. 28.

False (*) Incorrect. Refer to Section 6 Lesson 1. True or False? Mark f or Review (1) Points True (*) False Incorrect. Mark for Review (1) Points Yes. but then it stops. There is no limit to how may UID s an entity can have. this is the way UID s are named. 30. the second is called Secondary UID and so on. it is not possible to have more than one UID for an Entity. Refer to Section 6 Lesson 1. Refer to Section 5 Lesson 2. Yes. Incorrect. Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points Yes Maybe it could stop us having to calculate someone s age every time we need it Sometimes . No. as long as you get it onto the ERD your job is done. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark for Review (1) Points CAR and WHEEL TREE and BRANCH PERSON and FINGERPRINT TEACHER and SUBJECT AREA (*) 31. 33. the secondary one. each Entity can only have one UID. (*) No. True or False? Mark for Review (1) Points True False (*) Correct 34. The first UID for an entity is called the Primary UID. No entities can have more than two UID s. 32. As a database designer you do not need to worry about where in the datamode l you store a particular attribute.

Refer to Section 6 Lesson 2. Refer to Section 6 Lesson 3. Which of the following is NOT a relationship type? Mark for Review (1) Points Some to None (*) One to One One to Many Many to Many Incorrect. Until all attributes are single-valued. Refer to Section 7 Lesson 1. Which of the following would best be represented by an arc? Mark for Revie w (1) Points . Section 7 36. 37.No it breaks the Normalization rules (*) Incorrect. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. No parts of an UID are mandatory. 38. True or False? Mark for Review (1) Points True False (*) Correct 39. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. Refer to Section 7 Lesson 1. independen t of their datatype Mandatory in data modeling Always comprised of numbers Incorrect. the database model is said to be: Mark for Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Incorrect. 35.

Average Student) Incorrect. Arcs are Mandatory in Data modeling. If a system includes the concept of time and it stores Start Dates. A recursive relationship must Mandatory at both ends. Refer to Section 7 Lesson 1. Office) (*) PARENT (Girl. Historical data must never be kept. All ERD s must have at least one Arc. True or False? Mark for Re view (1) Points True False (*) Correct 44. Refer to Section 7 Lesson 2. For each Start Date attribute you create. True or False? Mark for Review (1) Points True False (*) . Bob) DELIVERY ADDRESS (Home. True or False? Mark for Review (1) Points True False (*) Incorrect. True or False? Mark for Review (1) Points True False (*) Correct 42. 40. All systems must have an entity called WEEK with a holiday attribute. you MUST cr eate an End Date attribute and it must be mandatory. then En d Dates becomes Mandatory. so yo u know when to give your employees a holiday.TEACHER (Female. Bob) STUDENT (Grade A student. Section 9 43. Tr ue or False? Mark for Review (1) Points True False (*) 41.

you should always try to follow them. End Date must be before the Start Date. 50. Dates must be stored with Time. All datamodels must be transformed from specific to generic. Section 10 47. There is no point in trying to group your entities together on your diagram . Which of the following is a logical constraint that could result from consi dering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. Generic models are generally far more complex than a specific model. Refer to Section 9 Lesson 2. All systems must include functionality to provide logging or journaling in conceptual data models. 48. True or False? Mark for Review (1) Points True False (*) Correct 46. even though they are only guide lines. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 10 Lesson 2. True or False? Mark for Review (1) Points True (*) False Incorrect. There are formal rules for how to draw ERD s. Refer to Section 11 Lesson 1. True o r False? Mark for Review (1) Points True False (*) Correct 49.Correct 45. (*) EMPLOYEE periods can overlap causing the database to crash. Incorrect.

according to volume. Tru e or False? Mark for Review (1) Points True (*) False Correct 3. Tru e or False? Mark for Review (1) Points True (*) False . The market for IT professionals is still increasing and will continue to do so in the future. Refer to Section 1 Lesson 2. Oracle Database Software provides which of the following functionality? (Cho ose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating System Correct 2. as the world gets ever more dependent on computer systems. Making a diagram pretty is a waste of time. Information which was gained from data is the same as: (Choose Two) Mark fo r Review (1) Points (Choose all correct answers) Knowledge (*) Raw Materials Intelligence (*) There is no difference between data and information. Incorrect. True or False? Mark for Review (1) Points True False (*) Section 1 1. 4. Entities are transformed into Tables during the Database Design process.

A/an _________ is a picture of all the information that will form the basis for the finished system. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct 8. (*) They must be mandatory to be created in the database. Entity and Attribute names are always interchangable.Correct Section 2 5. 7. Which of the following statements about relationships are true? (Choose Two) Mark for Review (1) Points (Choose all correct answers) They become foreign keys in the database. An entity can have many Unique Identifiers. so you need not worry about choosing the right type. Refer to Section 2 Lesson 2. Mark for Review (1) Points ERD (*) . Correct 9. True or False? Mark for Review (1) Points True False (*) Correct 6. They can be either mandatory or optional. (*) They must exist between two different Entities. All of the following could be attributes of an ENTITY called PERSON except o ne. True or False? Mark for Review (1) Points True (*) False Incorrect.

so users do not suddenly want the new system to contain twice as much functionality. True or False? Mark for Review (1) Points True (*) . True or False? Mark for Review (1) Points True False (*) Correct 14. Relationships represents something of significance to the business. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Correct Section 2 11. Relationship Names are optional. True or False? Mark for Review (1) Points True (*) False Correct Section 3 12.Process Table Attribute Correct 10. True or False? Mark for Review (1) Points True (*) False Correct 13. When reading a relationship between 2 entities. the relationship is read bo th from left to right and right to left. Documenting Business Requirements helps developers control the scope of the systems.

and they all go in the Top Left Hand Corner of the paper. When creating entities you must follow these rules: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) .False Correct 15. You can only create relationships to a Supertype. Refer to Section 3 Lesson 4. True or False? Mark for Review (1) Points True False (*) Correct 19. True or False? Mark for Review (1) Points True False (*) Correct 16. Section 4 17. A Matrix Diagram should be developed by your users. not to a Subtype. True or False? Mark fo r Review (1) Points True False (*) Incorrect. A Supertype can have only one subtype. True or False? Mark for Review (1) Points True False (*) Correct 18. All the Attributes in a system are just written on the ERD.

Which of the following is true about subtypes? Mark for Review (1) Points One instance may belong to two subtypes of the same supertype. Transferable relationships can only be mandatory. Business rules are important to data modelers. Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable . True or False? Mark for Rev iew (1) Points True (*) False Incorrect. Subtypes must be mutually exclusive. not optional. only the supertype itself. Subtype entities may not have relationships to the other subtype entities. (*) Subtypes must not be mutually exclusive. Refer to Section 4 Lesson 2. True or Fal se? Mark for Review (1) Points True False (*) Correct 24. A relationship from an entity back to itself is called a ___________ relati onship. Correct Section 4 21. Section 5 23. True or False? Mark fo r Review (1) Points True False (*) Correct 22. A supertype can only have two subtypes and no more.Correct 20.

True or False? Mark for Review (1) Points True False (*) Correct 26. True or False? Mark for Review (1) Points True (*) False Correct 27. Correct 28. True or False? Mark for Review (1) Points True (*) False Correct 29. Intersection Entities often have the relationships participating in the UID . It is important to ha ve them documented as M-M.Correct 25. Many to many relationships must be left in the Model. True or False? Mark for Review (1) Points True False (*) Correct 30. How do you include a relationship as part of the UID for an entity? Mark f or Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. Relationships can be Redundant. so the relationships are often barred. What do you call the entity created when you resolve a M:M relationship? M ark for Review (1) Points . no new entities are created. When you resolve a M-M you simply re-draw the relationships between the two original entities.

Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points Yes Maybe it could stop us having to calculate someone s age every time we need it Sometimes No it breaks the Normalization rules (*) Correct 34. There is no limit to how may UID s an entity can have. True or False? Mark for Review (1) Points True False (*) Incorrect. True or False? Mark for R eview (1) Points True False (*) Incorrect. 33. All entities must be given a new artificial UID. Normalizing an Entity to 1st Normal Form is done by removing repeated or re dundant attributes. 35. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark f or Review (1) Points . True or False? Mark for Review (1) Points True (*) False Correct 32.Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct Section 6 31. Refer to Section 6 Lesson 1. Refer to Section 6 Lesson 4.

True (*) False Correct Section 7 36. Arcs are Mandatory in Data modeling. independen t of their datatype Mandatory in data modeling Always comprised of numbers Correct 40. Tr ue or False? Mark for Review (1) Points True False (*) Correct 39. True or False? Mark for Review (1) Points True False (*) Correct 38. True o r False? Mark for Review (1) Points True False (*) Correct 37. All relationships participating in an arc must be mandatory. Modeling historical data can produce a unique identifier that always exclud es dates. True or False? Mark for Review (1) Points True False (*) . All ERD s must have at least one Arc. A relationship can be both Recursive and Hierachal at the same time. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have.

Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Correct 42. (* ) Email current price to all employees whenever the prices change. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity. Average Student) Correct Section 9 43. Office) (*) PARENT (Girl. Refer to Section 7 Lesson Section 7 41. True or False? Mark for Review (1) Points True False (*) . You are doing a data model for a computer sales company. print out the current prices when they change a nd pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want. Arcs are used to visually represent _________ between two or more relations hips in an ERD. Bob) STUDENT (Grade A student. Update the prices in the system. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or S unday. Correct 44. Bob) DELIVERY ADDRESS (Home.Incorrect. Which of the following would best be represented by an arc? Mark for Revie w (1) Points TEACHER (Female. and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. where the price of postage is dependent on what day of the week goods are shipped. All systems must include functionality to provide logging or journaling in conceptual data models. which holds prices against week days.

then En d Dates becomes Mandatory. There are formal rules for how to draw ERD s. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture. even though they are only guide lines. that together documents the entire system. True or False? Mark for Review (1) Points True . For each Start Date attribute you create. Which of the following statements are true for ERD s to enhance their readabi lity. This way y ou end up with more than one ERD.Correct 45. you should always try to follow them. big diagram. even if yo u have hundreds Correct 49. True or False? Mark for Re view (1) Points True False (*) Correct Section 10 47. True or False? Mark for Review (1) Points True (*) False Correct 48. you MUST cr eate an End Date attribute and it must be mandatory. A datamodel containing generic modeling techniques must not be mixed in wit h non-generic models. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single. The generic entities MUST be drawn on a diagram of their o wn. True or False? Mark for Review (1) Points True (*) False Correct 46. If a system includes the concept of time and it stores Start Dates. Modeling historical data is Optional.

would change drastically if we no longer had access to databases. as the world gets ever more dependent on computer systems. All datamodels must be transformed from specific to generic. Life. Databases are used in most countries and by most governments. Consider your school library. as we kn ow it. True or False? Mark for Review (1) Points . Information which was gained from data is the same as: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Knowledge (*) Raw Materials Intelligence (*) There is no difference between data and information. It will have a database with transaction detai ls of which student borrows which books. The market for IT professionals is still increasing and will continue to do so in the future.False (*) Correct 50. Tru e or False? Mark for Review (1) Points True (*) False Section 1 Lesson 2 (Answer all questions in this section) 2. Is a record of one student borrowing on e book Data or Information? Mark for Review (1) Points Data (*) Information Both Neither 3. Section 1 Lesson 3 (Answer all questions in this section) 4. True or False? Mark for Review (1) Points True False (*) Correct Section 1 Lesson 1 (Answer all questions in this section) 1.

All of the following are examples of ENTITY: Instance except two. In a physical data model. Select the answers that are ENTITY: Instance. a relationship is represented as a? Mark for Revi ew (1) Points Column Row Instance Foreign Key (*) 8. Which of the following are types of databases? Mark for Review (1) Points (Choose all correct answers) Hierarchical (*) Relational (*) SQL Network (*) Section 2 Lesson 2 (Answer all questions in this section) 7. (Choose Two) Mark for Review (1) Points (Choose all correct answers) TRANSPORTATION METHOD: Car (*) ANIMAL: Dog (*) .True (*) False Section 1 Lesson 4 (Answer all questions in this section) 5. Oracle Database Software provides which of the following functionality? (Cho ose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating Systems 6.

True or False? Mark for Review (Choose Two) Mark for Review .MEAT PRODUCT: Lettuce BODY PART: Larry Ellison 9. True or False? Mark for Review (1) Points True (*) False 10. True or False? Mark for Review (1) Points True (*) False Section 3 Lesson 1 (Answer all questions in this section) 14. The data model is not complete until all entities have a Primary U ID. Relationship names are usually verbs. An entity can have many Unique Identifiers. The entity/relationship model is created before the physical database desig n model. True or False? Mark for Review (1) Points True (*) False 13. (*) Distinguish each instance of an entity from all others (*) Are not required You may create more than one Primary Unique Identifier for an entity 12. Primary Unique Identifiers (1) Points (Choose all correct answers) Are Required. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Section 2 Lesson 2 (Answer all questions in this section) 11. Relationship Names are optional.

t he # symbol goes in front of it. True or False? Mark for Review (1) Points True (*) False Section 3 Lesson 3 (Answer all questions in this section) 18.(1) Points True False (*) 15. To identify an attribute as part of a unique identifier on an ER diagram. When creating entities you must follow these rules: (Choose Two) Mark for R eview (1) Points (Choose all correct answers) . Tru e or False? Mark for Review (1) Points True False (*) 17. Entity Boxes are drawn with 90 degree angles. also known as Hard Boxes. When reading an ERD including Relationships you are said to be speaking: Ma rk for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Section 4 Lesson 1 (Answer all questions in this section) 19. Which of the following are valid relationship degrees? (Choose two) Mark f or Review (1) Points (Choose all correct answers) 1:1 (*) 1:M (*) 1:O O:O Section 3 Lesson 2 (Answer all questions in this section) 16.

Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) 20. not to a Subtype. You can only create relationships to a Supertype. True or False? Mark for Review (1) Points True False (*) 21. Only teachers may supervise exams ark for Review (1) Points A procedural business rule (*) An attribute that should be stored on the PERSON entity A structural business rule An attribute that is not be inherited from the PERSON supertype and is unique to is an example of which of the following? M subtype is mandatory. All instances of a subtypes may be an instance of the supertype but does no t have to. True or False? Mark for Review . The Other (1) Points True False (*) 23. Which of the following are suitable Entity names? (Choose Two) Mark for Rev iew (1) Points (Choose all correct answers) DOGS ANIMAL (*) ANIMALS DOG (*) Section 4 Lesson 2 (Answer all questions in this section) 24. True or False? Mark for Review (1) Points True False (*) 22.

A Diamond on a relationship indicates the Relationship as Non-Tranferrable. We need to trust our customers.the TEACHER subtype 25. A new system would have a mixture of both Procedural and Structural Busines s Rules as part of the documentation of that new system. Why is it important to identify and document structural rules? Mark for Re view (1) Points Ensures we know what data to store and how that data works together. There is no benefits to be gained from documenting your Structu ral Business Rules. All of the Above. Section 5 Lesson 1 (Answer all questions in this section) 28. and we know they will pay some day. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 29. A business rule such as We only ship goods after customers have completely p aid any outstanding balances on their account is best enforced by: Mark for Revie w (1) Points Making the payment attribute null. Ensures we know what Information to store and how that Information works togethe r. (*) 26. (*) Ensures nothing. Hiring a programmer to create additional programming code to verify no goods are shipped until the account has been settled in full. Making the payment attribute optional. We need to concentrate on the Procedural Business Rules only . How do you include a relationship as part of the UID for an entity? Mark f or Review (1) Points By barring the relationship in question (*) . True or False? Mark for Review (1) Points True (*) False 27.

It is important to ha ve them documented as M-M. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 31. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark for Review (1) Points CAR and WHEEL TREE and BRANCH PERSON and FINGERPRINT TEACHER and SUBJECT AREA (*) 32.By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. Many to many relationships must be left in the Model. True or False? Mark for Review (1) Points True (*) False Section 6 Lesson 3 (Answer all questions in this section) 35. All entities must be given a new artificial UID. True or False? Mark for Review (1) Points True False (*) Section 6 Lesson 2 (Answer all questions in this section) 34. 30. When is an entity in 2nd Normal Form? Mark for Review . An entity without repeated values is said to be on 1st Normal Form. Relationships can be Redundant. True or False? Mark for Review (1) Points True False (*) Section 6 Lesson 1 (Answer all questions in this section) 33.

Section 7 Lesson 1 (Answer all questions in this section) 36. None of the Above. Which of the following is NOT a relationship type? Mark for Review (1) Points Some to None (*) One to One One to Many Many to Many 40. True or False? Mark for Review (1) Points True False (*) 39. True or False? Mark for R eview (1) Points True (*) False 38.(1) Points When all non-UID attributes are dependent upon the entire UID. No parts of a UID are mandatory. (*) When no attritibutes are mutually independant and fully independent on the prima ry key. All relationships participating in an arc must be mandatory. Consider the entity ADDRESS with the attributes: ADDRESS: # House Number * Street * Town * City * Year of Build o City Population This entity is NOT in 3rd Normal Form ( no non-UID attribute can be dependent on a nother non-UID attribute). An arc can be modelled as Supertype and Subtypes. True or False? . True or False? Mark for Review (1) Points True (*) False 37. When no attritibutes are mutually independent and all are fully dependent on the primary key.

True or Fa lse? Mark for Review (1) Points True False (*) Section 8 Lesson 2 (Answer all questions in this section) 44. Historical data must never be kept. True or False? Mark for Review (1) Points True False (*) Section 8 Lesson 1 (Answer all questions in this section) 43. Which of the following are NOT valid techniques for effective public speaki ng? (Choose Two) Mark for Review (1) Points (Choose all correct answers) Whispering (*) Using specialist language and technical abbreviations when communicating technic al information (*) Being enthusiastic .Mark for Review (1) Points True False (*) Section 7 Lesson 2 (Answer all questions in this section) 41. Which of the following would be good as a Unique Identifier for its Entity? (Choose Three) Mark for Review (1) Points (Choose all correct answers) Personal Identification number for Person (*) Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby Section 7 Lesson 3 (Answer all questions in this section) 42. Database Design projects must use Consultants or they will fail.

that could result from cons idering how time impacts data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. If a system includes the concept of time. Dates must be stored with Time. When you add the concept of time to your data model.All of the Above Section 10 Lesson 1 (Answer all questions in this section) 45. For each Start Date attribute you create. 50. Modeling historical data is Optional. so yo u know when to give your employees a holiday. What would be the best way to model this? Mark for Review (1) Points . then E nd Dates becomes Mandatory. True or False? Mark for Review (1) Points True (*) False 47. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or S unday. You are doing a data model for a computer sales company. Which of the following is a logical constraint. True or False? Mark for Review (1) Points True (*) False Section 10 Lesson 2 (Answer all questions in this section) 49. you MUST c reate an End Date attribute and it must be mandatory. All systems must have an entity called WEEK with a holiday attribute. True or False? Mark for Review (1) Points True False (*) 46. where the price of postage is dependant on what day of the week goods are shipped. (*) EMPLOYEE periods can overlap causing the database to crash. End Date must be before the Start Date. and it stores Start Dates. your model becomes mor e complex. True or False? Mark for Re view (1) Points True False (*) 48.

The main subject areas taught by the Oracle Academy are: Mark for Review (1) Points Computer Repairs Database performance tuning. Is details of the total number of books out on loan in one given month Data or Information? Mark for Review (1) Points Data Information (*) Both Neither 3. Entities are transformed into Tables during the Database Design process? Tru e or False? Mark for Review . print out the current prices when they change a nd pin them on the company noticeboard Allow them to enter whatever delivery charge they want. Section 1 Lesson 3 (Answer all questions in this section) 4. Data Modeling. Consider your school library. Information which was gained from data is the same as: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Knowledge (*) Raw Materials Intelligence (*) There is no difference between data and information. Update the prices in the system.Use a Delivery Day entity. SQL and PL/SQL (*) Systems programming and computer architecture Section 1 Lesson 2 (Answer all questions in this section) 2. It will have a database with transaction detai ls of which student borrows which books. (* ) Email current price to all employees whenever the prices change. which holds prices against week days. 22222222222222222222222222222222222222222222222222222222222222222222222222222222 22222222222222222222222222222222222222222 Section 1 Lesson 1 (Answer all questions in this section) 1. and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity.

(1) Points True (*) False Section 1 Lesson 4 (Answer all questions in this section) 5. All of the following are examples of ENTITY: Instance except two. Primary Unique Identifiers (Choose Two) Mark for Review (1) Points . Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) 8. (Choose Two) Mark for Review (1) Points (Choose all correct answers) TRANSPORTATION METHOD: Car (*) ANIMAL: Dog (*) MEAT PRODUCT: Lettuce BODY PART: Larry Ellison 9. Databases perform these functions . Databases were invented in 1989. Select the answers that are ENTITY: Instance. Mark for Review (1) Points Running multiple applications on multiple client-servers Providing integrated software on fast processing servers Providing software running on a variety of platforms and configurations allowing companies a structured way to access and manage their data (*) They run purely as client-based software on personal computers Section 2 Lesson 2 (Answer all questions in this section) 7. All of the following could be attributes of an ENTITY called PERSON except o ne. True or False? Mark for Review (1) Points True False (*) 6.

Volatile entities have special requirements and need special attention when you are doing data modelling.(Choose all correct answers) Are Required. Mark for Review (1) Points ERD (*) Process Table Attribute Section 2 Lesson 2 (Answer all questions in this section) 11. The data model is not complete until all entities have a Primary U ID. A/an _________ is a picture of all the information that will form the basis for the finished system. (*) They must exist between two different Entities. Relationship Names are optional. They can be either mandatory or optional. True or False? Mark for Review . True or False? Mark for Review (1) Points True (*) False 13. Section 3 Lesson 1 (Answer all questions in this section) 14. (*) They Must be Mandatory to be created in the database. An entity can have many Unique Identifiers. Which of the following statements about relationships are true? (Choose Two ) Mark for Review (1) Points (Choose all correct answers) They become Foreign Keys in the database. True or False? Mark for Review (1) Points True (*) False 12. (*) Distinguish each instance of an entity from all others (*) Are not required You may create more than one Primary Unique Identifier for an entity 10.

(1) Points True False (*) 15. horse or cat). Entity names are always singular. True or False? Mark for Review (1) Points True (*) . All instances of the supertype must be an instance of one of the subtypes. and they all go in the Top Left Hand Corner of the paper. dog. (*) Section 3 Lesson 2 (Answer all questions in this section) 16.g. Each FOOD TYPE may be given to one or more ANIMALs. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Each FOOD TYPE must be suitable for one or more ANIMALs. All the Attributes in a system are just written on the ERD. True or False? Mark for Review (1) Points True False (*) Section 3 Lesson 3 (Answer all questions in this section) 18. In a business that sells pet food choose the best relationship name between FOOD TYPE and ANIMAL (e. True or False? Mark for Review (1) Points True (*) False 17. Each FOOD TYPE may be made from one or more ANIMALs. When reading an ERD including Relationships you are said to be speaking: Ma rk for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Section 4 Lesson 1 (Answer all questions in this section) 19. (*) Each ANIMAL must be the seller of one or more FOOD TYPES.

True or False? Mark fo r Review (1) Points True False (*) 23. True or False? Mark for Review (1) Points True False (*) 22. in which case you should let the database administrator handle them No.False 20. A supertype can only have two subtypes and no more. all constraints must be modeled and shown on the ER diagram . All ER diagrams must have one of each of the following: (Choose two) Mark for Review (1) Points (Choose all correct answers) One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype Section 4 Lesson 2 (Answer all questions in this section) 24. Can all constraints be modeled on an ER diagram? Mark for Review (1) Points No. When creating entities you must follow these rules: (Choose Two) Mark for R eview (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Section 4 Lesson 1 (Answer all questions in this section) 21. All instances of a subtypes may be an instance of the supertype but does no t have to. but you just explain them to the users so they can enforce them Yes.

There is no benefits to be gained from documenting your Structu ral Business Rules. (*) Ensures nothing.No. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False? Mark for Review (1) Points True (*) False 26. All of the Above. We need to concentrate on the Procedural Business Rules only . so you should list them on a separate document to be handled programmaticall y (*) 25. Business rules are important to data modelers. True or False? Mark for Rev iew (1) Points True (*) False Section 5 Lesson 1 (Answer all questions in this section) 28. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark for Review (1) Points CAR and WHEEL TREE and BRANCH PERSON and FINGERPRINT . Why is it important to identify and document structural rules? Mark for Re view (1) Points Ensures we know what data to store and how that data works together. Ensures we know what Information to store and how that Information works togethe r. 27. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 29. A new system would have a mixture of both Procedural and Structural Busines s Rules as part of the documentation of that new system.

these relationships ca n be either __________ or __________? Mark for Review (1) Points Redundant or Required (*) Replicated or Required Resourced and Really Good Redundant and Replicated Section 6 Lesson 1 (Answer all questions in this section) 33. True or False? Mark for Review (1) Points True False (*) Section 6 Lesson 2 (Answer all questions in this section) 34. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 31. If two entities have two relationships between them. What uncommon relationship is described by the statements: Each DNA SAMPLE m ay be taken from one and only one PERSON and each PERSON may provide one and onl y one DNA SAMPLE Mark for Review (1) Points One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory 32. All entities must be given a new artificial UID. Mark for Review (1) Points Normality Reduction Normalization (*) Multiplication . the database conforms to th e rules of ___________. Relationships can be Redundant. When data is stored in one place in a database.TEACHER and SUBJECT AREA (*) 30.

Bob) STUDENT (Grade A student.Section 6 Lesson 3 (Answer all questions in this section) 35. True or False? Mark for Review (1) Points True (*) False 38. Average Student) . Bob) DELIVERY ADDRESS ( Home. Office) (*) PARENT (Girl. Which of the following would best be represented by an arc? Mark for Revie w (1) Points TEACHER (Female. Would it be a good idea to model age as an attribute of STUDENT Mark for R eview (1) Points Yes Maybe it could stop us having to calculate someones age every time we need it Sometimes No it breaks the Normalization rules (*) Section 7 Lesson 1 (Answer all questions in this section) 36. Consider the entity ADDRESS with the attributes: ADDRESS: # House Number * Street * Town * City * Year of Build o City Population This entity is NOT in 3rd Normal Form ( no non-UID attribute can be dependent on a nother non-UID attribute). Which of the following is NOT a relationship type? Mark for Review (1) Points Some to None (*) One to One One to Many Many to Many 37.

Arcs are used to visually represent _________ between two or more relations hips in an ERD. If Audit trail attributes are added to an entity they must be in the entiti es they are auditing. True or False? Mark for Review (1) Points True False (*) Section 7 Lesson 3 (Answer all questions in this section) 42. True or False? Mark for Review (1) Points True (*) . True or Fa lse? Mark for Review (1) Points True False (*) Section 8 Lesson 2 (Answer all questions in this section) 44. True or False? Mark for Review (1) Points True (*) False Section 8 Lesson 1 (Answer all questions in this section) 43. No parts of a UID are mandatory. True or False? Mark for Review (1) Points True False (*) Section 7 Lesson 2 (Answer all questions in this section) 41. You need to look smart and p resentable. 40. Mark for Review (1) Points Sameness Differencies Exclusivity (*) An Arc is what Noah sailed on with all the animals. A relationship can be both Recursive and Hierarchal at the same time. Database Design projects must use Consultants or they will fail.39. Your apperance at a presentation is important.

True or False? Mark for Re view (1) Points True False (*) 46. then E nd Dates becomes Mandatory. True or False? Mark for Review (1) Points True False (*) 50. you MUST c reate an End Date attribute and it must be mandatory. (*) If you are doing a system for any French City.False Section 10 Lesson 1 (Answer all questions in this section) 45. you would need security clearance You need a constant record of cities because they are still cities. Modeling historical data is Optional. they get a new Mayor Section 10 Lesson 2 (Answer all questions in this section) 49.g. and it stores Start Dates. For each Start Date attribute you create. if the bord ers of a country change. True or False? Mark fo r Review (1) Points True False (*) 47. If a system includes the concept of time. All systems must include functionality to provide logging or journaling in conceptual data models. Which of the following would be a logical constraint when modeling time for a City entity? Mark for Review (1) Points People are born in the city and people die in the city. Why would you want to model a time component when designing a system that l ets people buy shares via the Internet? (Choose Two) Mark for Review (1) Points . Cites may change their name and/or which country they are placed in. even if lead ership changes over time. True or False? Mark for Review (1) Points True (*) False 48. There is only one way to model time in a Data Model. e.

It will have a database with transaction det ails of which student borrows which books. False. Oracle Database Software do not provide or does not comprise of which func tionality? Graphical User Interface Internet Browser Server Operating System (*) 7. True. 2.(Choose all correct answers) This would only be required in the US to allow the New York Stock Exchange to be notified of this information. Is details of the total number of boo ks out on loan in one given month Data or Information? Data Information (*) Both Neither 4. True or False? True (*) False 9. it is not important. so building systems are best left to the professionals. An entity is instantiated as a ? experience instance table (*) none of the above 8. It keeps businesses honest 5. The entity/relationship model is created before the physical database desi . A blueprint for the database design is not needed. Databases were invented in 1989. All that perfect systems need are correct programs. True or False? True False (*) 6. To allow the sales people to determine when the shared were bought and therefore at what price. Relationship names are usually verbs. Information which was gained from data is the same as: (Choose Two) Knowledge (*) Raw Materials Intelligence (*) There is no difference between data and information 3. The first step in system development is to document the requirements. (*) You would not want to model this. as you are perfectly capable of delivering the systems the business needs and wants. Why? Wrong. you no long er need any input or involvement from any users. Consider your school library. Users never know what they want anyway. The price of shares fluctuates and for determining price. True. (*) It allows application development to be conducted without having to conside r database design. For instance new legal re quirements may arise. and provides measures for deciding if the system delivers all that is required. We can just start coding straight away It clarifies what a business wants to accomplish. you need to know the t ime of purchase (*) 1. (*) True. All users do is delay systems delivery with their forever changing mi nds and new requirements. Once you have learned how to write programs and build systems. Business requirements can and will change.

Birthdate. Which of the following are valid relationship degrees 1:1 (*) 1:M (*) 1:O O:O 16. An entity can have many Unique Identifiers. . True or False? True (*) False 19. Attributes: Name. Relationship Names are optional. only the supertype itself. Subtype entities may not have relationships to the other subtype entities. Volatile entities have special requirements and need special attention wh en you are doing data modelling. (*) Subtypes must not be mutually exclusive. Owner (*) Entity: Car. Which of the following are suitable Entity names? (Choose Two) DOGS ANIMAL (*) ANIMALS DOG (*) 21.gn model. True or False? True (*) False 10. Subtypes must be mutually exclusive. Salary 14. Attributes: Number of Bedrooms. Attributes: Name. Occupation. Select the incorrect one: Haircolor Weight Gender Natacha Hansen (*) 11. Attributes: Owner Occupation. Date Built (* ) Entity: Pet. Birthdate. When reading a relationship between 2 entities. Address. Which symbol is used to show that a particular attribute is mandatory? * (*) O # & 17. All ER diagrams must have one of each of the following: One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype 20. Speed Entity: Mother. Which of the following is true about subtypes? One instance may belong to two subtypes of the same supertype. The many end of a Relationship is called: Gulls Foot Pigs Ear Crows Ear Crows Foot (*) 18. Which of the following entities most likely contains valid attributes? Entity: Home. Owner Salary. True or False? True False (*) 15. the relationship is read both from left to right and right to left. True or False? True (*) False 13. Owner. All of the following could be attributes of an ENTITY called PERSON excep t one. True or False? True (*) False 12.

If two entities have two relationships between them. You need to document it. 25. True or False? True False (*) 33. True or False? True False (*) 27.22. All instances of the subtypes can be an instance of the supertype but do not have to. Many to many relationships must be left in the Model. How would you model a business rule that states that girls and boys may n ot attend classes together? Use a supertype Use two subtypes with relationships from class to student gender (*) Make the attribute Gender mandatory You cannot model this. There is no benefits to be gained from documenting your St ructural Business Rules. All of the Above. What uncommon relationship is described by the statements: Each DNA SAMPLE may be taken from one and only one PERSON and each PERSON may provide one and o nly one DNA SAMPLE One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory 31. Why is it important to identify and document structural rules? Ensures we know what data to store and how that data interrelate. All instances of the supertype must be an instance of one of the subtypes . these relationships can be either _____________ or _____________ ? (Choose Two) Redundant or Required (In which case they would depict different relationsh ips) (*) Replicated or Required (In which case they would depict different relations hips) Resourced and Really Good Redundant and Replicated 30. True or False? True (*) False 29. The first UID for an entity is called the Primary UID. A non-transferable relationship means the detail cannot be changed to poi nt to a new master. 28. Business rules are not important to data modelers. 32. in which case you should let the database administrator handle them No. It is important to have them documented as M-M. but you just explain them to the users so they can enforce them Yes. We need to concentrate on the Procedural Business Rules only. True or False? True False (*) 24. Ensures we know what Information to store and how that Information interrel ate. True or False? True (*) False 23. so you should list them on a separate document to be handled programmat ically (*) 26. (*) Ensures nothing. Can all constraints be modeled on an ER diagram? No. How do you include a relationship as part of the UID for an entity? By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. all constraints must be modeled and shown on the ER diagram No. the second is call .

True or False? True (*) False 44. When is an entity in 2nd Normal Form? When all non-UID attributes are dependent upon the entire UID. (*) No. True or False? True False (*) 41. 36. True or False? True (*) False 45. the database conforms to the rules of Normality Reduction Normalization (*) Multiplication 35. True or False? True False (*) 37. When no attritibutes are mutually independent and all are fully dependent o n the primary key. Your apperance at a presentation is important. All ERD s must have at least one Arc. Which of the following is NOT a relationship type? Some to None (*) One to One One to Many Many to Many 38. Arcs are Mandatory in Data modelling. it is not possible to have more than one UID for an Entity. Yes. Office) (*) PARENT (Girl. When data is stored in one place in a database. All relationships participating in an arc must be mandatory. the secondary one. Which of the following would best be represented by an arc? STUDENT (Female. this is the way UID s are named. Average Student) 40. each Entity can only have one UID. Bob) STUDENT (Grade A student. 34. True or False? True False (*) 43. . Which of the following would be a logical constraint when modeling time f or a City entity? People are born in the city and people die in the city. Bob) DELIVERY ADDRESS ( Home. Yes. True or Fals e? True False (*) 39. No. (*) When no attritibutes are mutually independant and fully independent on the primary key. You need to look smart and presentable. Consultants often use their experience in ensuring projects stay on track and delivers within the timescales set out for the project. but then it stops. Which of the following would be good as a Unique Identifier for its Entit y? Personal Identification number for Person (*) Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby 42.ed Secondary UID and so on. No parts of a UID are mandatory. Modeling historical data can produce a unique identifier that always excl udes dates. No entities can have more than two UID s. None of the Above.

you MUST create an End Date attribute and it must be mandatory. even if leadership changes over time. which holds prices against week days. (*) Email current price to all employees whenever the prices change. Why would you want to model a time component when designing a system that lets people buy shares via the Internet? This would only be required in the US to allow the New York Stock Exchange to be notified of this information. if the borders of a country change. 49. If a system includes the concept of time. Which function will be evaluated first? Mark for Review (1) Points CONCAT SUBSTR LOWER (*) All three will be evaluated simultaneously. 4))) Default Password FROM employees. they get a new Mayor 46. The ability to track data over time.g. you need to know the time of purchase (*) 50. (*) Nothing is lost if a system does not track time. then End Dates becomes Mandatory. e. True or False? True False (*) 47. you would need security clea rance You need a constant record of cities because they are still cities. print out the current prices when they cha nge and pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want. True or False? True (*) False 48. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or Sunday.- Cites may change their name and/or which country they are placed in. (*) You would not want to model this. The price of shares fluctuates and for determining price. it is not important. What would be the best way to model this? Use a Delivery Day entity. Section 1 Lesson 1 (Answer all questions in this section) 1. and it stores Start Dates. For each Start Date attribute you create. To allow the sales people to determine when the shared were bought and ther efore at what price. (SUBSTR(LOWER(first_name). where the price of postage is ependant on what day of the week goods are shipped. and ensure the we also have an attribute for the Requested Delivery Day in the Order Entit y. Update the prices in the system. Journalling becomes slightly harder. Modeling historical data is Optional. What do users of a system without the concept of time loose? Journalling becomes much easier. You are doing a data model for a computer sales company. (*) If you are doing a system for any French City. Correct . You query the database with this SQL statement: SELECT CONCAT(last_name.

Which script did you use? SELECT SUBSTR(product_id. The email address of each employee in the EMPLOYEE table. 3. 2) FROM price WHERE manufacturer_id = 59604. The number of characters for each value in the EMAIL column in the employees tab le. Which f unction should you use? LENGTH (*) \\ LPAD COUNT SUBSTR Correct 5. 2) s .2. 3. You need to display the number of characters in each customer s last name. (*) SELECT LENGTH(product_id. Correct 3. You issue this SQL statement: SELECT INSTR ( organizational sales . al ) FROM dual. The PRICE table contains this data: PRODUCT_ID MANUFACTURER_ID 86950 59604 You query the database and return the value 95. (*) The maximum number of characters allowed in the EMAIL column. Which value is returned by this command? 1 2 13 (*) 17 Correct 4. What will this SELECT statement display? The longest e-mail address in the EMPLOYEE table. Evaluate this SELECT statement: SELECT LENGTH(email) FROM employee.

(*) Correct 7. 2) FROM price WHERE manufacturer_id = 59604. (*) The ROUND number function rounds a value to a specified decimal place or the nea rest whole number. Correct 6. SELECT SUBSTR(product_id. Which SQL function can be used to remove heading or trailing characters (or both ) from a character string? LPAD CUT NVL2 TRIM (*) Correct Section 1 Lesson 2 (Answer all questions in this section) 8. Which comparison operator retrieves a list of values? IN (*) LIKE BETWEEN IN IS NULL Correct . Which three statements about functions are true? (Choose three.) (Choose all correct answers) The SYSDATE function returns the Oracle Server date and time. SELECT TRIM(product_id. -3. (*) The CONCAT function can only be used on character strings. The SUBSTR character function returns a portion of a string beginning at a defin ed character position to a specified length.FROM price WHERE manufacturer_id = 59604. 3) FROM price WHERE manufacturer_id = 59604. not on numbers. -1.

You need to display the number of months between today s date and each employee s hi redate.248. Which value does this statement display? 700 750 (*) 751 751. You issue this SQL statement: SELECT TRUNC(751.-1) FROM dual.25 1300 (*) Correct Section 1 Lesson 3 (Answer all questions in this section) 11.9.367. -2) FROM dual.3 Correct 10. Which function should you use? ROUND BETWEEN ADD_MONTHS . What value does this statement produce? 1200 1282 1282. Which of the following Date Functions will add calendar months to a date? Months + Calendar (Month) ADD_MONTHS (*) MONTHS + Date NEXT_MONTH Correct 12. You issue this SQL statement: SELECT ROUND (1282.

Which SELECT statement will NOT return a date value? SELECT (30 + hire_date) + 1440/24 FROM employees. SELECT last_name. (SYSDATE-hire_date)AS WEEK FROM employees WHERE department_id = 90.MONTHS_BETWEEN (*) Correct 13. SELECT last_name. (SYSDATE-hire_date)/7 DISPLAY WEEKS FROM employees WHERE department id = 90. SELECT (SYSDATE FROM employees. hire_date) + 10*8 (*) SELECT SYSDATE TO_DATE( 25-JUN-02') + hire_date FROM employees. (*) SELECT last name. # of WEEKS FROM employees WHERE department_id = 90. (SYSDATE-hire_date)/7 AS WEEKS FROM employees WHERE department_id = 90. The EMPLOYEE table contains these columns: LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) HIRE_DATE DATE EVAL_MONTHS NUMBER(3) Evaluate this SELECT statement: SELECT hire_date + eval_months FROM employee. The values returned by this SELECT statement will be of which data type? DATE (*) NUMBER DATETIME SYSDATE) + TO_DATE( 25-JUN-02') . Correct 14. Correct 15. SELECT (hire_date FROM employees. Which of the following SQL statements will correctly display the last name and t he number of weeks employed for all employees in department 90? SELECT last_name.

TO_CHAR (sysdate. FROM employees. Month DD. Refer to Section 2 18. Which statement shou ld you issue? SELECT companyname. Month DD . The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2 (25) FIRST_NAME VARCHAR2 (25) HIRE_DATE DATE You need to display HIRE_DATE values in this format: January 28. Which statement concerning single row functions is true? Single row functions can accept only one argument. Refer to Section 1 Section 2 Lesson 1 (Answer all questions in this section) 16. total FROM customers NATURAL JOIN orders WHERE total >= 2500. 2000 Which SELECT statement could you use? Mark for Review (1) Points SELECT TO_CHAR(hire_date. total FROM customers NATURAL JOIN orders YYYY ) YYYY ) . Year format (For example. dd month. Single row functions can be nested. Incorrect. day. fmdd.500. YYYY) FROM employees. 13 April. Correct 17. Date Month. but can return multiple value s. The report s date should be displayed in the Day. Month DD. YYYY ) FROM employees. yyyy ). TO_DATE (date. (*) SELECT hire_date(TO_CHAR Month DD . dy month. Tuesday. SELECT TO_CHAR(hire_date. (*) Single row functions return one or more results per row. yyyy ). You have been asked to create a report that lists all customers who have placed orders of at least $2. SELECT TO_CHAR(hire_date. 2004 ).INTEGER Incorrect. SELECT companyname. FROM employees. Single row functions cannot modify a data type.

Incorrect. Each employee s salary must be displayed in the following format: $000.00 LOAFER 89098 10. Which two statements concerning SQL functions are true? (Choose two. Refer to Section 2 20.00. dy month. fmDay. total FROM customers NATURAL JOIN orders WHERE total >= 2500. All Human Resources data is stored in a table named EMPLOYEES.) (Choose all correct answers) Character functions can accept numeric input.00 SANDAL 89690 15. TO_DATE (sysdate.000.WHERE total >= 2500. Conversion functions convert a value from one data type to another data type. dd. (*) Number functions can return number or character values. You have been ask ed to create a report that displays each employee s name and salary. The STYLES STYLE_ID 895840 968950 869506 809090 890890 857689 table contains this data: STYLE_NAME CATEGORY SANDAL 85940 12. total FROM customers NATURAL JOIN orders WHERE total >= 2500. dd Month. (* ) Single-row functions manipulate groups of rows to return one result per group of rows. Not all date functions return date values. SELECT companyname. SELECT companyname.00 LOAFER 89789 14. TO_CHAR (sysdate.00 SANDAL 85909 10. yyyy ).00 COST .00 HEEL 85940 11. Which function s hould you include in a SELECT statement to achieve the desired result? TO_CHAR (*) TO_DATE TO_NUMBER CHARTOROWID Correct Section 2 Lesson 2 (Answer all questions in this section) 22. (*) Correct 19. yyyy ).

00 SANDAL 85909 10.00 SANDAL 86979 STYLE_NAME CATEGORY SANDAL 85909 12.758960 SANDAL 86979 Evaluate this SELECT statement: SELECT style_id. SELECT tuition_balance + housing_balance FROM student_accounts. Correct 24. 0).00 SANDAL 85940 12. Which result will the query provide? STYLE_ID 895840 968950 758960 STYLE_ID 895840 968950 869506 758960 STYLE_ID 895840 968950 758960 869506 STYLE_ID 968950 895840 758960 STYLE_NAME CATEGORY SANDAL 85940 12. style_name.00 SANDAL 89690 15.00 ORDER BY category. (*) SELECT NVL(tuition_balance. When executed. cost FROM styles WHERE style_name LIKE SANDAL AND NVL(cost. 0) Balance Due FROM student_accounts. 0). NVL (housing_balance). which statement displays a zero if the TUITION_BALANCE value is z ero and the HOUSING_BALANCE value is null? SELECT NVL (tuition_balance + housing_balance. 0).00 SANDAL 85909 10.00 SANDAL 85909 10.00 SANDAL 86979 COST COST COST COST Correct 23. category. SELECT TO_NUMBER(tuition_balance. cost. tuition_balance + housing _balance Balance Due FROM student_accounts. Which fun .00 STYLE_NAME CATEGORY SANDAL 85909 10.00 SANDAL 86979 STYLE_NAME CATEGORY SANDAL 85909 12.00 SANDAL 86979 SANDAL 89690 15. TO_NUMBER (housing_balance. tutition_b alance + housing_balance Balance Due FROM student_accounts. You need to replace null values in the DEPT_ID column with the text ctions should you use? TO_CHAR and NVL (*) TO_CHAR and NULL TO_CHAR and NULLIF N/A . 0) < 15.

TO_NUMBER and NULLIF Correct Section 3 Lesson 2 (Answer all questions in this section) 25. o.amount FROM customers c. The EMPLOY EES table includes the following columns: EMP_ID NUMBER(5) NOT NULL PRIMARY KEY FNAME VARCHAR2(25) LNAME VARCHAR2(25) ADDRESS VARCHAR2(35) CITY VARCHAR2(25) STATE VARCHAR2(2) ZIP NUMBER(9) TELEPHONE NUMBER(10) DEPT_ID NUMBER(5) NOT NULL FOREIGN KEY The BONUS table includes the following columns: BONUS_ID NUMBER(5) NOT NULL PRIMARY KEY ANNUAL_SALARY NUMBER(10) BONUS_PCT NUMBER(3.amount FROM customers c. o. and their corresponding order totals should be sorted f rom the highest amount to the lowest amount. orders o WHERE c.custid.custid ORDER BY companyname. o. custid. o. custid. o. Correct 26.custid = o.custid ORDER BY companyname ASC. 2) EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY You want to determine the amount of each employee s bonus. o. c.amount Q FROM customers c. custid. SELECT c. amount DESC. o.custid ORDER BY amount DESC. SELECT c. o.orderdate. Your company stores its business information in an Oracle9i database.custid. o. o. c.companyname.custid = o. companyname. amount ASC. c. The customers should be listed alphabetically be ginning with the letter A .orderdate. (*) SELECT c.orderdate. Which of the following statements should you issue? Mark for Review (1) Points SELECT c.companyname.custid. orders o WHERE c. orders o WHERE c. orders o WHERE c. You have been asked to create a report that lists all corporate customers and al l orders that they have placed. c.companyname.custid.custid = o.orderdate. o. Which of the following queries should you issue? .custid = o. o.companyname. amount. custid.amount FROM customers c.custid ORDER BY companyname.

b. Incorrect.cust_id.lname. e. total_sales FROM customers c.company.cust_id.emp_id. e. What is produced when a join condition is not specified in a multiple-table quer y? a self-join an outer join an equijoin a Cartesian product (*) Correct 28.emp_id = b. b.emp_id = b. the company and the total sa les? SELECT c.SELECT e. c.cust_id = s.lname.cust_id (+).cust_id = s.total_sales FROM customers c.annual_salary. bonus WHERE e. lname. (*) SELECT e. (*) SELECT cust_id.emp_id.fname. bonus b WHERE e. company. bonus b WHERE e. b. sales s WHERE c.cust_id. Refer to Section 3 27.total_sales FROM customers c.cust_id = s. SELECT fname. sales WHERE cust_id = cust_id.annual_salary * b. total_sales FROM customers. s. bonus_pct FROM employees e. annual_salary * bonus_pct FROM employees.fname.emp_id = b. sales s WHERE c. bonus_pct FROM employees.cust_id.lname. bonus_pct FROM employees e. SELECT cust_id. bonus NATURAL JOIN. b. c. The CUSTOMERS and SALES tables contain these columns: CUSTOMERS CUST_ID NUMBER(10) PRIMARY KEY COMPANY VARCHAR2(30) LOCATION VARCHAR2(20) SALES SALES_ID NUMBER(5) PRIMARY KEY CUST_ID NUMBER(10) FOREIGN KEY TOTAL_SALES NUMBER(30) Which SELECT statement will return the customer ID.company. s. SELECT e.annual_salary. company. e.fname. b. sales s WHERE c. . SELECT c.emp_id.

The FROM clause represents the join criteria. Which two operators can be used in an outer join condition using the outer join operator (+)? Mark for Review (1) Points AND and = (*) OR and = BETWEEN AND IN and = and IN Mark for Review . RIGHT. When joining 3 tables in a SELECT statement. The JOIN keyword must be included. The FULL. (*) Correct 30. or LEFT keyword must be included. how many join conditions are needed in the WHERE clause? Mark for Review (1) Points 0 1 2 (*) 3 Correct Section 3 Lesson 4 (Answer all questions in this section) 31.Correct 29. The OR operator cannot be used to link outer join conditions. The WHERE clause represents the join criteria. Which statement about outer joins is true? (1) Points The tables must be aliased. Correct 32. Which statement about the join syntax of a SELECT statement is true? The ON keyword must be included. (*) Outer joins are always evaluated before other types of joins in the query.

Which of the following conditions will cause an error on a NATURAL JOIN? rk for Review (1) Points When you attempt to write it as an equijoin. Which operator would you use after one of the column names in the WHERE clause w hen creating an outer join? Mark for Review (1) Points (+) (*) * + = Correct Section 4 Lesson 2 (Answer all questions in this section) 34. Refer to Section 3 33. Which type of join would you create to join the tables on both o f the columns? Mark for Review (1) Points Natural join (*) Cross join Outer join Self-join Correct 36. Ma . Which of the following best describes a natural join? (1) Points Mark for Review A join between two tables that includes columns that share the same name.Incorrect. dataty pes and lengths (*) A join that produces a Cartesian product A join between tables where matching fields do not exist A join that uses only one table Correct 35. You need to join two tables that have two columns with the same name and compati ble data types.

Which SELECT clause creates an equijoin by specifying a column name common to bo th tables? Mark for Review (1) Points A HAVING clause The FROM clause The SELECT clause A USING clause (*) Incorrect.fname as Patient . (*) Correct Section 4 Lesson 3 (Answer all questions in this section) 37. (*) . JOIN admission c ON (a. b. Which clause generates an error? Mark for Review (1) Points JOIN physician b ON (b.lname ission FROM patient a JOIN physician b ON (b.physician_id).patient_id = c. a.lname .physician_id = c.physician_id). If it selects rows from the two tables that have equal values in all matched col umns.fname as Physician . The primary advantage of using JOIN ON is: (1) Points Mark for Review The join happens automatically based on matching column names and data types It will display rows that do not meet the join condition It permits columns with different names to be joined (*) It permits columns that don t have matching data types to be joined Correct 39. Refer to Section 4 38. If the columns having the same names have different data types.When the NATURAL JOIN clause is based on all columns in the two tables that have the same name.physician_id = c. b. then an error is returned. . Evaluate this SELECT statement: SELECT a.patient_id).

2) SHIP_METHOD VARCHAR2 (5) You need to create a report that displays customers without a sales order. Primary Key CUSTOMER_NAME VARCHAR2 (30) CONTACT_NAME VARCHAR2 (30) CONTACT_TITLE VARCHAR2 (20) ADDRESS VARCHAR2 (30) CITY VARCHAR2 (25) REGION VARCHAR2 (10) POSTAL_CODE VARCHAR2 (20) COUNTRY_ID NUMBER Foreign key to COUNTRY_ID column of the COUNTRY table PHONE VARCHAR2 (20) FAX VARCHAR2 (20) CREDIT_LIMIT NUMBER(7.customer_name FROM customers c RIGHT OUTER JOIN sales_order s ON (c. Which statement could you use? Mark for Review (1) Points SELECT c. Below find the structure of the CUSTOMERS and SALES_ORDER tables: CUSTOMERS CUSTOMER_ID NUMBER NOT NULL.customer_name FROM customers c. sales_order s WHERE c.customer_id = s.2) SALES_ORDER ORDER_ID NUMBER NOT NULL.customer_id.JOIN admission c ON (a. SELECT c. SELECT c. All the matched and unmatched rows i n the EMPLOYEE table need to be displayed. Incorrect.patient_id) Incorrect. Refer to Section 4 Section 4 Lesson 4 (Answer all questions in this section) 41.customer_name FROM customers c.patient_id = c.customer_id). sales_order s WHERE c.customer_id = s. The EMPLOYEE_HIST table will be the first table in the FROM clause.customer_id not in (SELECT s. Which type of join will you use? Mark for Review (1) Points . (*) SELECT c.customer_id(+). Refer to Section 4 40.customer_id (+) = s. You need to join the EMPLOYEE_HIST and EMPLOYEE tables.customer_name FROM customers c WHERE c. Primary Key CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table ORDER_DT DATE ORDER_AMT NUMBER (7.customer_id FROM sales_order s).

Which type of join returns rows from one table that have NO direct match in the other table? Mark for Review (1) Points equijoin self join outer join (*) natural join Correct Section 5 Lesson 1 (Answer all questions in this section) 44. Group functions can be nested to a depth of? (1) Points three four two (*) Group functions cannot be nested.a cross join an inner join a left outer join a right outer join (*) Correct 42. Mark for Review . Which two sets of join keywords create a join that will include unmatched rows f rom the first table specified in the SELECT statement? Mark for Review (1) Points LEFT OUTER JOIN and FULL OUTER JOIN (*) RIGHT OUTER JOIN and LEFT OUTER JOIN USING and HAVING OUTER JOIN and USING Correct 43. Refer to Section 5 45. Incorrect.

Mark for Review . Which statement about group functions is true? (1) Points Group functions ignore null values. (*) Group functions can only be used in a SELECT list. COUNT(*) FROM employees GROUP BY job_id. A query that includes a group function in the SELECT list must include a GROUP B Y clause. Mark for Review (1) Points Displays all the employees and groups them by job. (*) Displays only the number of job_ids. VARIANCE. Group functions can be used in a WHERE clause. Correct Section 5 Lesson 2 (Answer all questions in this section) 48. Displays each job id and the number of people assigned to that job id. The AVG. SUM.If a select list contains both a column as well as a group function then what cl ause is required? Mark for Review (1) Points having clause join clause order by clause group by clause (*) Correct 46. What will the following SQL Statement do? SELECT job_id. and STDDEV functions can be used with which of the follo wing? Mark for Review (1) Points Only numeric data types (*) Integers only Any data type All except numeric Correct 47.

Correct 49. number and date data types? (Choose more than one answer) Mark for Review (1) Points (Choose all correct answers) SUM MAX (*) MIN (*) AVG COUNT (*) Correct Section 5 Lesson 2 (Answer all questions in this section) 51.2) COMM_PCT NUMBER(4.2) HIRE_DATE DATE BONUS NUMBER(7. LAST_NAME. The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) SALARY NUMBER(9. or SALARY col umns? (Choose three.Displays all the jobs with as many people as there are jobs. You need to compute the total salary for all employees in department 10.) Mark for Review (1) Points (Choose all correct answers) MAX (*) .2) Which three functions could be used with the HIRE_DATE. Which group functions below act on character. Which g roup function will you use? Mark for Review (1) Points MAX SUM (*) VARIANCE COUNT Correct 50.

The CUSTOMER table contains these columns: CUSTOMER_ID NUMBER(9) FNAME VARCHAR2(25) LNAME VARCHAR2(30) CREDIT_LIMIT NUMBER (7. Which gr oup function should you use to calculate this value? Mark for Review (1) Points AVG (*) SUM COUNT STDDEV Correct 54. Which group function would you use to display the highest salary value in the EM PLOYEE table? Mark for Review (1) Points AVG COUNT MAX (*) MIN .SUM AVG MIN (*) COUNT (*) Correct 52. Which group function would you use to display the total of all salary values in the EMPLOYEE table? Mark for Review (1) Points SUM (*) AVG COUNT MAX Correct 53.2) CATEGORY VARCHAR2(20) You need to calculate the average credit limit for all the customers in each cat egory. The average should be calculated based on all the rows in the table exclu ding any customers who have not yet been assigned a credit limit value.

Correct 55. An error occurs because no WHERE clause is included in the SELECT statement. . The total of the SALARY column for all employees that have a salary greater than 30000. Correct 57. Which statement is true? Mark for Review (1) Points The number of rows in the table is displayed. (*) The number of unique PRODUCT_IDs in the table is displayed. Which results will the query display? (1) Points Mark for Review The number of employees that have a salary less than 30000. (*) The query generates an error and returns no results. Evaluate this SELECT statement: SELECT COUNT(*) FROM products. Which group function would you use to display the average price of all products in the PRODUCTS table? Mark for Review (1) Points SUM AVG (*) COUNT MAX Correct Section 5 Lesson 3 (Answer all questions in this section) 56. Evaluate this SELECT statement: SELECT COUNT(*) FROM employee WHERE salary > 30000. An error occurs due to an error in the SELECT clause. The number of rows in the EMPLOYEE table that have a salary greater than 30000. Correct 58.

Which SELECT statement will calculate the number of rows in the PRODUCTS table? Mark for Review (1) Points SELECT COUNT(products); SELECT COUNT FROM products; SELECT COUNT (*) FROM products; (*) SELECT ROWCOUNT FROM products; Correct 59. Group functions can avoid computations involving duplicate values by including w hich keyword? Mark for Review (1) Points NULL DISTINCT (*) SELECT UNLIKE Correct Section 6 Lesson 1 (Answer all questions in this section) 60. Evaluate this SELECT statement: SELECT COUNT(emp_id), dept_id FROM employee GROUP BY dept_id; You only want to include employees who earn more than 15000. Which clause should you include in the SELECT statement? Mark for Review (1) Points WHERE salary > 15000 (*) HAVING salary > 15000 WHERE SUM(salary) > 15000 HAVING SUM(salary) > 15000 Incorrect. Refer to Section 6 Section 6 Lesson 1 (Answer all questions in this section) 61. The EMPLOYEES table contains the following columns: EMP_ID NUMBER(10) PRIMARY KEY LNAME VARCHAR2(20)

FNAME VARCHAR2(20) DEPT VARCHAR2(20) HIRE_DATE DATE SALARY NUMBER(10) You want to create a report that includes each employee s last name, employee iden tification number, date of hire and salary. The report should include only those employees who have been with the company for more than one year and whose salar y exceeds $40,000. Which of the following SELECT statements will accomplish this task? Mark for Review (1) Points SELECT emp_id, lname, salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1); SELECT emp_id, lname, hire_date, salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1); SELECT emp_id, lname, hire_date, salary FROM employees WHERE salary > 40000 AND (sysdate-hire_date) / 365 > 1; (*) SELECT emp_id, lname, salary FROM employees WHERE salary > 40000 AND hire_date IN (sysdate-hire_date) / 365 > 1); Incorrect. Refer to Section 6 62. Evaluate this statement: SELECT department_id, AVG(salary) FROM employees WHERE job_id <> 69879 GROUP BY job_id, department_id HAVING AVG(salary) > 35000 ORDER BY department_id; Which clauses restricts the result? Choose two. (1) Points (Choose all correct answers) SELECT department_id, AVG(salary) WHERE job_id <> 69879 (*) GROUP BY job_id, department_id HAVING AVG(salary) > 35000 (*) Correct

Mark for Review

63. Evaluate this SELECT statement: SELECT SUM(salary), dept_id, mgr_id FROM employee GROUP BY dept_id, mgr_id; Which SELECT statement clause allows you to restrict the rows returned, based on a group function? Mark for Review (1) Points HAVING SUM(salary) > 100000 (*) WHERE SUM(salary) > 100000 WHERE salary > 100000 HAVING salary > 100000 Incorrect. Refer to Section 6 64. Evaluate this SELECT statement: SELECT COUNT(emp_id), mgr_id, dept_id FROM employee WHERE status = I GROUP BY dept_id HAVING salary > 30000 ORDER BY 2; Why does this statement return a syntax error? (1) Points MGR_ID must be included in the GROUP BY clause. (*) The HAVING clause must specify an aggregate function. A single query cannot contain a WHERE clause and a HAVING clause. The ORDER BY clause must specify a column name in the EMPLOYEE table. Correct 65. Evaluate this SELECT statement: SELECT SUM(salary), dept_id, department_name FROM employee WHERE dept_id = 1 GROUP BY department; Which clause of the SELECT statement contains a syntax error? w (1) Points SELECT FROM WHERE GROUP BY (*) Correct

Mark for Review

Mark for Revie

team_id) WHERE UPPER(p.team_name. COUNT(p. The PLAYERS and TEAMS tables contain these columns: PLAYERS PLAYER_ID NUMBER NOT NULL.player_id) FROM players p JOIN teams t ON (p.position) = PITCHER GROUP BY t.team_name HAVING COUNT(p.team_id = t.team_id) WHERE UPPER(p. Primary Key TEAM_NAME VARCHAR2 (25) You need to create a report that lists the names of each team with more than fiv e pitchers. 0)) (*) HAVING MAX(salary) > 10000 (*) WHERE hire_date > AVG(hire_date) Correct 67.2) Which two clauses represent valid uses of aggregate functions? (Choose three.team_name.position) = PITCHER GROUP BY t.player_id) FROM players JOIN teams t ON (p.player_id) FROM players p. teams t ON (p.position) = PITCHER HAVING COUNT(p.player_id) > 5. COUNT(p. The PLAYERS table contains these columns: PLAYER_ID NUMBER PK PLAYER_NAME VARCHAR2 (30) TEAM_ID NUMBER HIRE_DATE DATE SALARY NUMBER (8.team_id = t.team_name HAVING COUNT(p.position) = PITCHER GROUP BY t. teams t ON (p. COUNT(p.team_id) WHERE UPPER(p.team_id = t.player_id) > 5. (*) .team_id = t. Primary Key LAST_NAME VARCHAR2 (30) NOT NULL FIRST_NAME VARCHAR2 (25) NOT NULL TEAM_ID NUMBER POSITION VARCHAR2 (25) TEAMS TEAM_ID NUMBER NOT NULL.team_name. COUNT(p.player_id) > 5. Which SELECT statement will produce the desired result? Mark for Review (1) Points SELECT t.team_name.team_id) WHERE UPPER(p.) Mark for Review (1) Points (Choose all correct answers) ORDER BY AVG(salary) GROUP BY MAX(salary) (*) SELECT AVG(NVL(salary. SELECT t.team_name. SELECT t.66.player_id) FROM players p. SELECT t.

after the main or outer query executes. Subqueries are often used in a WHERE clause to return values for an unknown cond itional value. Subqueries cannot contain group functions. Examine the structures of the CUSTOMER and ORDER_HISTORY tables: CUSTOMER . Which statement about subqueries is true? (1) Points Mark for Review M Subqueries should be enclosed in double quotation marks. Which comparison operator should you use? Mark for Revie w (1) Points = > <= >= (*) Correct 69.Correct Section 6 Lesson 2 (Answer all questions in this section) 68. You need to display all the players whose salaries are greater than or equal to John Brown s salary. Refer to Section 6 Section 6 Lesson 2 (Answer all questions in this section) 71. Which of the following is TRUE regarding the order of subquery execution? ark for Review (1) Points The outer query is executed first The subquery executes once after the main query The subquery executes once before the main query (*) The result of the main query is used with the subquery Correct 70. Incorrect. (*) Subqueries generally execute last.

EMPLOYEE EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) DEPARTMENT_ID NUMBER(9) DEPARTMENT DEPARTMENT_ID NUMBER(9) DEPARTMENT_NAME VARCHAR2(25) CREATION_DATE DATE ORDERS ORDER_ID NUMBER(9) EMPLOYEE_ID NUMBER(9) DATE DATE CUSTOMER_ID NUMBER(9) You want to display all employees who had an order after the Sales department wa s established. You need to display each date that a customer placed an order. Examine the structure of the EMPLOYEE. DEPARTMENT. You need to display all the orders that were placed on a certain date. Refer to Section 6 72. (*) Incorrect.CUSTOMER_ID NUMBER(5) NAME VARCHAR2(25) CREDIT_LIMIT NUMBER(8. Which of the following constructs would you use? Mark for Re Mark for Review . You need to display all the orders that were placed on the same day as order num ber 25950.2) OPEN_DATE DATE ORDER_HISTORY ORDER_ID NUMBER(5) CUSTOMER_ID NUMBER(5) ORDER_DATE DATE TOTAL NUMBER(8. Which operator can be used with a multiple-row subquery? (1) Points IN (*) <> = LIKE Correct Section 6 Lesson 3 (Answer all questions in this section) 73.2) Which of the following scenarios would require a subquery to return the desired results? Mark for Review (1) Points You need to display the date each customer account was opened. and ORDERS tables.

Which query should you issue to acco mplish this task? Mark for Review (1) Points SELECT * FROM employees WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = Carter ).view (1) Points a group function a single-row subquery (*) the HAVING clause a MERGE statement Incorrect. You need to produce a report that contains all employee-related information for those employees who have Brad Carter as a supervisor. SELECT * FROM supervisors WHERE supervisor_id = (SELECT employee_id FROM supervisors WHERE last_name = Carter ). SELECT * FROM employees WHERE supervisor_id = (SELECT employee_id FROM employees . Refer to Section 6 74. Which best describes a single-row subquery? (1) Points Mark for Review a query that returns only one row from the inner SELECT statement (*) a query that returns one or more rows from the inner SELECT statement a query that returns only one column value from the inner SELECT statement a query that returns one or more column values from the inner SELECT statement Correct 75. However. SELECT * FROM supervisors WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = Carter ). you are not sure which supervisor ID belongs to Brad Carter.

The results of the inner query are returned to the outer query. Multiple-row subqueries can be used with both single-row and multiple-row operat ors. Refer to Section 6 78. (*) An error occurs if the either the inner or outer queries do not return a value. Which statement about single-row and multiple-row subqueries is true? for Review (1) Points Multiple-row subqueries cannot be used with the LIKE operator. (*) Incorrect. Correct 77. Both the inner and outer queries must return a value. What would happen if the inner query returned null? (1) Points An error would be returned. first_name FROM customer WHERE area_code IN (SELECT area_code FROM sales WHERE salesperson_id = 20). Multiple-row subqueries can only be used in SELECT statements. Evaluate this SELECT statement that includes a subquery: SELECT last_name. or an error occurs.00). Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) 76. Evaluate this SELECT statement: SELECT customer_id. (*) Single-row operators can be used with both single-row and multiple-row subquerie s. Which statement is true about the given subquery? Mark for Review (1) Points The outer query executes before the nested subquery. No rows would be returned by the outer query. Incorrect. name FROM customer WHERE customer_id IN (SELECT customer_id FROM customer WHERE state_id = GA AND credit_limit > 500.WHERE last_name = Carter ). (*) Mark Mark for Review .

Which of the following statements contains a comparison operator that is used to restrict rows based on a list of values returned from an inner query? Mark for Review (1) Points SELECT description FROM d_types WHERE code IN (SELECT type_code FROM d_songs). Refer to Section 6 79. Only the rows with CUSTOMER_ID values equal to null would be selected. . last_name. (*) Second subquery found on the right instead of the left side of the operator. SELECT description FROM d_types WHERE code = ANY (SELECT type_code FROM d_songs). All of the above. Incorrect.All the rows in the table would be selected. SELECT description FROM d_types WHERE code <> ALL (SELECT type_code FROM d_songs). Incorrect. last_name. Refer to Section 6 80. (*) Incorrect. salary FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE salary > 30000 AND salary < 50000). Evaluate this SQL statement: SELECT employee_id. salary FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE last_name like %u% ) Mark for Revie w (1) Points First subquery not enclosed in parenthesis Single rather than multiple value operator used. Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) 81. Which of the following is a valid reason why the query below will not execute su ccessfully? SELECT employee_id. The greater than operator is not valid.

All employees who work in a department with employees who earn more than $30. Which operator or keyword cannot be used with a multiple-row subquery? for Review (1) Points ALL ANY = (*) > Correct 83. and > Correct 84.000.Which values will be displayed? (1) Points Mark for Review Only employees who earn more than $30. Only employees who earn less than $50. whi ch comparison operator(s) can you use? Mark for Review (1) Points IN. ANY. All employees who work in a department with employees who earn more than $30. Which best describes a multiple-row subquery? (1) Points Mark for Review Mark A query that returns only one row from the inner SELECT statement A query that returns one or more rows from the inner SELECT statement (*) A query that returns only one column value from the inner SELECT statement A query that returns one or more column values from the inner SELECT statement Correct 85.000 . (*) Correct 82.000. but less than $50.000.000. . and ALL (*) LIKE BETWEEN AND =.000 and more than $50. You need to create a SELECT statement that contains a multiple-row subquery. <.

Public Relations .A multiple-row operator expects how many values? (1) Points One or more (*) Only one Two or more None Correct Mark for Review 86. Which multiple-row comparison operator could you u se? Mark for Review (1) Points >ANY (*) NOT=ALL IN >IN Correct Section 7 Lesson 1 (Answer all questions in this section) 87. department_name. location_id ) VALUES (70. You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. Assume all the column names are correct. The following SQL statement will execut e which of the following? INSERT INTO departments (department_id. What c ould you use in the INSERT statement to accomplish this task? Mark for Revi ew (1) Points an ON clause a SET clause will be inserted into the manager_name column . You need to display all the products that cost more than the maximum cost of eve ry product produced in Japan. 1700). manager_id. Mark for Review (1) Points 100 will be inserted into the department_id column 1700 will be inserted into the manager_id column 70 will be inserted into the department_id column (*) Public Relations Correct 88. 100.

You execute this INSERT statement: INSERT INTO ft_students (SELECT stu_id. dob. last_name.You wan t to insert all full-time students. The STUDENTS table contains these columns: STU_ID NUMBER(9) NOT NULL LAST_NAME VARCHAR2 (30) NOT NULL FIRST_NAME VARCHAR2 (25) NOT NULL DOB DATE STU_TYPE_ID VARCHAR2(1) NOT NULL ENROLL_DATE DATE You create another table. Correct 90. first_name. An error occurs because you CANNOT use a subquery in an INSERT statement. You need to remove a row from the EMPLOYEE table. Refer to Section 7 89. who have a STU_TYPE_ID value of F . Which statement would you use? Mark for Review (1) Points UPDATE with a WHERE clause . (*) An error occurs because the FT_STUDENTS table already exists. You need to add a row to an existing table. An error occurs because the INSERT statement does NOT contain a VALUES clause. with an identical structure. into the ne w table. named FT_STUDENTS. What is the result of executing this INSERT statement? Mark for Review (1) Points All full-time students are inserted into the FT_STUDENTS table.a subquery (*) a function Incorrect. stu_type_id. Which DML statement should you use? Mark for Review (1) Points UPDATE INSERT (*) DELETE CREATE Correct Section 7 Lesson 2 (Answer all questions in this section) 91. enroll_date FROM students WHERE UPPER(stu_type_id) = F ).

Which two commands can be used to create new rows? Mark for Review (1) Points INSERT. You want to enter a new record into the CUSTOMERS table. Refer to Section 7 92. CREATE MERGE. When the WHERE clause is missing in a DELETE statement. You need to display the names of the teachers who teach classes that start withi n the next week.INSERT with a WHERE clause DELETE with a WHERE clause (*) MERGE with a WHERE clause Incorrect. You need to create a report to display the teachers who teach more classes than the average number of classes taught by each teacher. MERGE (*) INSERT. CREATE INSERT. The TEACHERS and CLASS_ASSIGNMENTS tables contain these columns: TEACHERS TEACHER_ID NUMBER(5) NAME VARCHAR2(25) SUBJECT_ID NUMBER(5) HIRE_DATE DATE SALARY NUMBER(9. UPDATE Correct 93. You need to create a report to display the teachers who were hired more than fiv e years ago. what is the result? Mark for Review (1) Points All rows are deleted from the table.2) CLASS_ASSIGNMENTS CLASS_ID NUMBER(5) TEACHER_ID NUMBER(5) START_DATE DATE MAX_CAPACITY NUMBER(3) Which scenario would require a subquery to return the desired results? for Review (1) Points You need to display the start date for each class taught by a given teacher. (*) Mark . (*) Correct 94.

Rockefeller WHERE employee_ID = 189. UPDATE players SET salary = salary * . UPDATE players SET salary = salary * 1. UPDATE INTO my_employees SET last_name = Rockefeller UPDATE my_employees SET last_name = Rockefeller WHERE employee_ID = 189. howeve r. An error message is displayed indicating incorrect syntax. Which SQL statement will allow you to refle ct this change? Mark for Review (1) Points INSERT INTO my_employees SET last_name = INSERT my_employees SET last_name = Rockefeller WHERE employee_ID = 189. The PLAYERS table contains these columns: PLAYER_ID NUMBER NOT NULL PLAYER_LNAME VARCHAR2(20) NOT NULL PLAYER_FNAME VARCHAR2(10) NOT NULL TEAM_ID NUMBER SALARY NUMBER(9. (*) . Correct 96. One of your employees was recently married. (*) UPDATE players (salary) VALUES(salary * 1. Her employee ID is still 189. her last name is now Rockefeller. Which statement should you use? Mark for Review (1) Points UPDATE players (salary) SET salary = salary * 1. WHERE employee_ID = 189. What keyword in an UPDATE statement speficies the columns you want to change? Mark for Review (1) Points SELECT WHERE SET (*) HAVING Correct 97. Correct 95.125 WHERE team_id = 5960. The TEAM_ID value for the Tiger team is 5960. Nothing.The table is removed from the database.125.125) WHERE team_id = 5960.2) You need to increase the salary of each player for all players on the Tiger team by 12. The statement will not execute.5 percent.125 WHERE team_id = 5960.

(*) DELETE FROM employees WHERE lname = jones. and TEAMS tables: PLAYERS PLAYER_ID NUMBER Primary Key LAST_NAME VARCHAR2 (30) FIRST_NAME VARCHAR2 (25) TEAM_ID NUMBER MGR_ID NUMBER SIGNING_BONUS NUMBER(9. The EMPLOYEES table contains these columns : ID_NUM NUMBER(5) PRIMARY KEY LNAME VARCHAR2(20) FNAME VARCHAR2(20) ADDRESS VARCHAR2(30) PHONE NUMBER(10) Which DELETE statement will delete the appropriate record without deleting any a dditional records? Mark for Review (1) Points DELETE FROM employees WHERE id_num = 348.2) MANAGERS MANAGER_ID NUMBER Primary Key LAST_NAME VARCHAR2 (20) FIRST_NAME VARCHAR2 (20) TEAM_ID NUMBER TEAMS TEAM_ID NUMBER Primary Key TEAM_NAME VARCHAR2 (20) OWNER_LAST_NAME VARCHAR2 (20) OWNER_FIRST_NAME VARCHAR2 (20) Which situation would require a subquery to return the desired result? for Review (1) Points To display the names each player on the Lions team To display the maximum and minimum player salary for each team To display the names of the managers for all the teams owned by a given owner (* ) To display each player. Mark . their manager. You need to delete a record in the EMPLOYEES table for Tim Jones.2) SALARY NUMBER(9. MANAGERS. Examine the structures of the PLAYERS. DELETE * FROM employees WHERE id_num = 348. whose unique e mployee identification number is 348. DELETE Correct 99. Refer to Section 7 jones FROM employees. and their team name for all teams with a id value greater than 5000 Incorrect.Correct 98.

It clarifies what a business wants to accomplish. In which clause of the UPDATE statement will you specify this condition? Mark for Review (1) Points the ON clause the WHERE clause (*) the SET clause the USING clause Incorrect. Section 1 1. Why ? Mark for Review (1) Points Wrong. A blueprint for the database design is not needed.100. The first step in system development is to document the requirements. It will have a database with transaction de tails of which student borrows which books. . Refer to Section 7 Test: Mid Term Exam Semester 1 Review your answers. and question scores below. (*) It allows application development to be conducted without having to consider dat abase design. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. We can just start codi ng straight away. Consider your school library. feedback. Databases were invented in 1989? True or False? (1) Points True False (*) Correct Correct Mark for Review 2. Is details of the total number of bo oks out on loan in one given month Data or Information? Mark for Review (1) Points Data Information (*) Both Neither Correct Correct 3. You need to update the expiration date of products manufactured before June 30th . An asterisk (*) indica tes a correct answer. and provides measures for deci ding if the system delivers all that is required.

Correct Correct 4. Salary Incorrect Incorrect. Which of the following entities most likely contains valid attributes? (C hoose two) Mark for Review (1) Points (Choose all correct answers) Entity: Home. An ERD is an example of a Physical Model. Owner Salary. Refer to Section 2 Mark for Review 8. Address. so you will need to change your ERD if you decide to chang e Hardware Vendor. The market for IT professionals is still increasing and will continue to do so in the future. Primary Unique Identifiers: (Choose Two) (1) Points (Choose all correct answers) Are required. Date Built (*) Entity: Pet. True or False? Mark for Review (1) Points True (*) False Correct Section 2 5. Refer to Section 2 Mark for Rev Correct 6. Attributes: Number of Bedrooms. Attributes: Name. Attributes: Owner Occupation. Birthdate. Birthdate. Owner (*) Entity: Car.It keeps businesses honest. True or False? Mark for Review (1) Points True False (*) Correct Correct 7. True or False? iew (1) Points True False (*) Incorrect Incorrect. Owner. The data model is not complete until all entities have a Primary U . as the world gets ever more dependent on computer systems. Attributes: Name. Occupation. Speed Entity: Mother. Entity Relationship modeling is dependent on the hardware or software use d for implementation.

Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct Correct Test: Mid Term Exam Semester 1 Review your answers. (*) Are not required. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.ID. One Relationship can be both mandatory and optional at different ends. feedback. An asterisk (*) indica tes a correct answer. T rue or False? Mark for Review (1) Points Correct . Mark for Review (1) Points ERD (*) Process Table Attribute Correct Section 3 12. Can be created multiple times for an entity. The entity/relationship model is created before the physical database des ign model? True or False? Mark for Review (1) Points True (*) False Correct Correct 10. (*) Distinguish each instance of an entity from all others. Correct Correct 9. Section 2 11. A/an _________ is a picture of all the information that will form the ba sis for the finished system. All of the following could be attributes of an ENTITY called PERSON exce pt one. and question scores below.

Matrix Diagrams show Optionality and Degrees of the ERDs they document. The single end of a Relationship is called: (1) Points Single Toe (*) Big Toe Single Foot Crows Foot Correct 16. Refer to Section 3 Mark for Revie 13. Which of the following are valid relationship degrees w (1) Points (Choose all correct answers) 1:1 (*) 1:M (*) 1:O O:O Correct Correct 14.True (*) False Incorrect Incorrect. Refer to Section 3 Mark for Review 15. True or False? Mark for Review (1) Points True False (*) Incorrect Incorrect. Correct When reading an ERD including Relationships you are said to be speaking: Mark for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Correct Section 4 Correct .

You need to document it Incorrect Incorrect. An asterisk (*) indica tes a correct answer. Business rules are important to data modelers. in which case you should let the database administrator handle them No.17. Making the payment attribute optional. Hiring a programmer to create additional programming code to verify no goods are shipped until the account has been settled in full. A business rule such as We only ship goods after customers have completel y paid any outstanding balances on their account is best enforced by: Mark fo r Review (1) Points Making the payment attribute null. True or False? or Review (1) Points True (*) False Correct Correct Mark f 18. all constraints must be modeled and shown on the ER diagram No. but you just explain them to the users so they can enforce them Yes. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. We need to trust our customers. Section 4 . Refer to Section 4 Mark for Review 19. so you should list them on a separate document to be handled programmaticall y (*) Correct Correct 20. Can all constraints be modeled on an ER diagram? (1) Points No. and we know they will pay some day. (*) Correct Correct Test: Mid Term Exam Semester 1 Review your answers. feedback. and question scores below. How would you model a business rule that states that girls and boys may not attend classes together? Mark for Review (1) Points Use a supertype Use two subtypes with relationships from class to student gender (*) Make the attribute Gender mandatory You cannot model this.

21. All ER diagrams must have one of each of the following: (Choose two) Mark for Review (1) Points (Choose all correct answers) One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype Correct Correct

22. You can only create relationships to a Supertype, not to a Subtype. True or False? Mark for Review (1) Points True False (*) Correct Correct Mark

23. Which of the following are suitable Entity names? (Choose Two) for Review (1) Points (Choose all correct answers) DOGS ANIMAL (*) ANIMALS DOG (*) Correct Correct

24. When creating entities you must follow these rules: (Choose Two) k for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Correct 25. Correct A supertype can only have two subtypes and no more. True or False?

Mar

M

ark for Review (1) Points True False (*) Correct Section 5 26. What do you call the entity created when you resolve a M:M relationship? Mark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct Correct Correct

27. If a relationship can NOT be moved between instances of the entities it connects, it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Correct Correct

28. How do you include a relationship as part of the UID for an entity? Mark for Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. Correct Correct

29. What uncommon relationship is described by the statements: Each DNA SAMPL E may be taken from one and only one PERSON and each PERSON may provide one and only one DNA SAMPLE Mark for Review (1) Points One to Many Optional

One to Many Mandatory One to One Optional (*) Many to Many Mandatory Correct Correct

30. A relationship from an entity back to itself is called a ___________ rel ationship. Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable Correct Correct

Test: Mid Term Exam Semester 1 Review your answers, feedback, and question scores below. An asterisk (*) indica tes a correct answer. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Section 5 31. Which of the following pairs of entities is most likely to be modeled as a M:M relationship? Mark for Review (1) Points CAR and WHEEL TREE and BRANCH PERSON and FINGERPRINT TEACHER and SUBJECT AREA (*) Correct Section 6 32. When is an entity in 2nd Normal Form? (1) Points Mark for Review Correct

When all non-UID attributes are dependent upon the entire UID. (*) When no attritibutes are mutually independant and fully independent on the prima ry key. When no attritibutes are mutually independent and all are fully dependent on the primary key. None of the Above. Correct 33. Correct Until all attributes are single-valued, the database model is said to be

True or False? Mark for Review (1) Points True (*) False Correct Correct Mark 35. True or False? for Review (1) Points True False (*) Correct Section 7 Correct 36.: Mark for Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Incorrect Incorrect. The Rule of 3rd Normal Form states that No Non-UID attribute can be depe ndant on another non-UID attribute. All entities must be given a new artificial UID. Refer to Section 7 Mark for Review 37. Which of the following scenarios should be modeled so that historical da ta is kept? (Choose two) Mark for Review (1) Points (Choose all correct answers) BABY and AGE CUSTOMER and PAYMENTS (*) TEACHER and AGE CUSTOMER and ORDERS (*) Incorrect Incorrect. Refer to Section 5 34. Which of the following is NOT a relationship type? (1) Points Some to None (*) One to One One to Many .

All relationships participating in an arc must be mandatory. Bob) DELIVERY ADDRESS (Home.Many to Many Correct 38. True or False? Mark for Review (1) Points True False (*) Correct Correct Test: Mid Term Exam Semester 1 Review your answers. Section 7 41. An asterisk (*) indica tes a correct answer. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. feedback. Which of the following would best be represented by an arc? Review (1) Points TEACHER (Female. Office) (*) PARENT (Girl. Bob) Mark for . All ERD s must have at least one Arc. Correct Consider the entity ADDRESS with the attributes: ADDRESS: # House Number * Street * Town * City * Year of Build o City Population This entity is NOT in 3rd Normal Form ( no non-UID attribute can be dependent on a nother non-UID attribute). True or Fal se? Mark for Review (1) Points True False (*) Correct Correct 40. and question scores below. True or False? Mark for Review (1) Points True (*) False Correct Correct 39. Arcs are Mandatory in Data modeling.

True or False? Mark for Review (1) Points True (*) False Correct Section 10 45.STUDENT (Grade A student. End Date must be before the Start Date. You need to look smart an d presentable. Your apperance at a presentation is important. True or False? Mark for Review (1) Points True False (*) Correct Correct Correct 46. Average Student) Correct Correct 42. Refer to Section 7 44. True or False? Mark for Review (1) Points True (*) False Incorrect Incorrect. True or False? Mark for Review (1) Points True False (*) Incorrect Section 8 43. Refer to Section 8 Incorrect. Consultants often use their experience in ensuring projects stay on trac k and delivers within the timescales set out for the project. . A recursive relationship must Mandatory at both ends. All systems must include functionality to provide logging or journaling in conceptual data models. (*) EMPLOYEE periods can overlap causing the database to crash. Which of the following is a logical constraint that could result from co nsidering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT.

Cites may change their name and/or which country they are placed in.Dates must be stored with Time. 4))) Default Password FROM employees. True or False? Mark for Rev iew (1) Points True False (*) Correct Correct Mark for Review 49. (*) If you are doing a system for any French City. Which function will be evaluated first? Mark for Review (1) Points . so you know when to give your employees a holiday. e. even if lead ership changes over time. (SUBSTR(LOWER(first_name). you would need security clearance You need a constant record of cities because they are still cities.g. You query the database with this SQL statement: SELECT CONCAT(last_name. True or False? Mark for Review (1) Points True False (*) Correct Correct 48. True or False? (1) Points True (*) False Correct Correct 50. For each Start Date attribute you create. you MUST create an End Date attribute and it must be mandatory. All systems must have an entity called WEEK with a holiday attribute. Which of the following would be a logical constraint when modeling time for a City entity? Mark for Review (1) Points People are born in the city and people die in the city. if the bord ers of a country change. Modeling historical data is Optional. Correct Correct 47. If a system includes the concept of time and it stores Start Dates. then End Dates becomes Mandatory. they get a new Mayor Section 1 Lesson 1 (Answer all questions in this section) 1.

You issue this SQL statement: SELECT INSTR ( organizational sales . The email address of each employee in the EMPLOYEE table. Which value is returned by this command? 1 2 13 (*) 17 Correct 4. (*) The maximum number of characters allowed in the EMAIL column. Correct 3. Evaluate this SELECT statement: SELECT LENGTH(email) FROM employee. You need to display the number of characters in each customer s last name.CONCAT SUBSTR LOWER (*) All three will be evaluated simultaneously. al ) FROM dual. The PRICE table contains this data: . Correct 2. What will this SELECT statement display? The longest e-mail address in the EMPLOYEE table. The number of characters for each value in the EMAIL column in the employees tab le. Which f unction should you use? LENGTH (*) \\ LPAD COUNT SUBSTR Correct 5.

3. (*) s The ROUND number function rounds a value to a specified decimal place or the nea rest whole number. Which SQL function can be used to remove heading or trailing characters (or both ) from a character string? LPAD CUT NVL2 TRIM (*) Correct Section 1 Lesson 2 (Answer all questions in this section) 8. (*) Correct 7. not on numbers. 2) FROM price WHERE manufacturer_id = 59604.PRODUCT_ID MANUFACTURER_ID 86950 59604 You query the database and return the value 95. 3) FROM price WHERE manufacturer_id = 59604. The SUBSTR character function returns a portion of a string beginning at a defin ed character position to a specified length. 2) FROM price WHERE manufacturer_id = 59604. -1. SELECT TRIM(product_id. -3. (*) The CONCAT function can only be used on character strings. (*) SELECT LENGTH(product_id. Which three statements about functions are true? (Choose three. Which comparison operator retrieves a list of values? . Which script did you use? SELECT SUBSTR(product_id.) (Choose all correct answers) The SYSDATE function returns the Oracle Server date and time. Correct 6. 3. 2) FROM price WHERE manufacturer_id = 59604. SELECT SUBSTR(product_id.

.3 Correct 10. -2) FROM dual.248. You issue this SQL statement: SELECT ROUND (1282.367.-1) FROM dual. You issue this SQL statement: SELECT TRUNC(751. Which of the following Date Functions will add calendar months to a date? Months + Calendar (Month) ADD_MONTHS (*) MONTHS + Date NEXT_MONTH Correct 12.25 1300 (*) Correct Section 1 Lesson 3 (Answer all questions in this section) 11.IN (*) LIKE BETWEEN IN IS NULL Correct 9. What value does this statement produce? 1200 1282 1282. Which value does this statement display? 700 750 (*) 751 751.

SELECT (SYSDATE FROM employees. The EMPLOYEE table contains these columns: LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) HIRE_DATE DATE EVAL_MONTHS NUMBER(3) Evaluate this SELECT statement: SELECT hire_date + eval_months SYSDATE) + TO_DATE( 25-JUN-02') .You need to display the number of months between today s date and each employee s hi redate. (*) SELECT last name. Correct 14. SELECT last_name. Which of the following SQL statements will correctly display the last name and t he number of weeks employed for all employees in department 90? SELECT last_name. (SYSDATE-hire_date)/7 AS WEEKS FROM employees WHERE department_id = 90. (SYSDATE-hire_date)AS WEEK FROM employees WHERE department_id = 90. Correct 15. (SYSDATE-hire_date)/7 DISPLAY WEEKS FROM employees WHERE department id = 90. hire_date) + 10*8 (*) SELECT SYSDATE TO_DATE( 25-JUN-02') + hire_date FROM employees. Which function should you use? ROUND BETWEEN ADD_MONTHS MONTHS_BETWEEN (*) Correct 13. # of WEEKS FROM employees WHERE department_id = 90. SELECT last_name. Which SELECT statement will NOT return a date value? SELECT (30 + hire_date) + 1440/24 FROM employees. SELECT (hire_date FROM employees.

YYYY ) FROM employees. Incorrect. (*) Single row functions return one or more results per row. Single row functions can be nested. Single row functions cannot modify a data type. SELECT TO_CHAR(hire_date. Month DD. Date YYYY ) YYYY ) . The report s date should be displayed in the Day. 2000 Which SELECT statement could you use? Mark for Review (1) Points SELECT TO_CHAR(hire_date.500. SELECT TO_CHAR(hire_date. Refer to Section 2 18. but can return multiple value s. FROM employees.FROM employee. Month DD. Refer to Section 1 Section 2 Lesson 1 (Answer all questions in this section) 16. Correct 17. Which statement concerning single row functions is true? Single row functions can accept only one argument. You have been asked to create a report that lists all customers who have placed orders of at least $2. Month DD . (*) SELECT hire_date(TO_CHAR Month DD . FROM employees. The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2 (25) FIRST_NAME VARCHAR2 (25) HIRE_DATE DATE You need to display HIRE_DATE values in this format: January 28. The values returned by this SELECT statement will be of which data type? DATE (*) NUMBER DATETIME INTEGER Incorrect. YYYY) FROM employees.

Month, Year format (For example, Tuesday, 13 April, 2004 ). Which statement shou ld you issue? SELECT companyname, TO_CHAR (sysdate, fmdd, dy month, yyyy ), total FROM customers NATURAL JOIN orders WHERE total >= 2500; SELECT companyname, TO_DATE (date, day, dd month, yyyy ), total FROM customers NATURAL JOIN orders WHERE total >= 2500; SELECT companyname, TO_DATE (sysdate, dd, dy month, yyyy ), total FROM customers NATURAL JOIN orders WHERE total >= 2500; SELECT companyname, TO_CHAR (sysdate, fmDay, dd Month, yyyy ), total FROM customers NATURAL JOIN orders WHERE total >= 2500; (*) Correct 19. Which two statements concerning SQL functions are true? (Choose two.) (Choose all correct answers) Character functions can accept numeric input. Not all date functions return date values. (*) Number functions can return number or character values. Conversion functions convert a value from one data type to another data type. (* ) Single-row functions manipulate groups of rows to return one result per group of rows. Incorrect. Refer to Section 2 20. All Human Resources data is stored in a table named EMPLOYEES. You have been ask ed to create a report that displays each employee s name and salary. Each employee s salary must be displayed in the following format: $000,000.00. Which function s hould you include in a SELECT statement to achieve the desired result? TO_CHAR (*) TO_DATE TO_NUMBER CHARTOROWID Correct Section 2 Lesson 2 (Answer all questions in this section)

22. The STYLES table contains this data: STYLE_ID STYLE_NAME CATEGORY COST 895840 SANDAL 85940 12.00 968950 SANDAL 85909 10.00 869506 SANDAL 89690 15.00 809090 LOAFER 89098 10.00 890890 LOAFER 89789 14.00 857689 HEEL 85940 11.00 758960 SANDAL 86979 Evaluate this SELECT statement: SELECT style_id, style_name, category, cost FROM styles WHERE style_name LIKE SANDAL AND NVL(cost, 0) < 15.00 ORDER BY category, cost; Which result will the query provide? STYLE_ID 895840 968950 758960 STYLE_ID 895840 968950 869506 758960 STYLE_ID 895840 968950 758960 869506 STYLE_ID 968950 895840 758960 STYLE_NAME CATEGORY SANDAL 85940 12.00 SANDAL 85909 10.00 SANDAL 86979 STYLE_NAME CATEGORY SANDAL 85909 12.00 SANDAL 85909 10.00 SANDAL 89690 15.00 SANDAL 86979 STYLE_NAME CATEGORY SANDAL 85909 12.00 SANDAL 85909 10.00 SANDAL 86979 SANDAL 89690 15.00 STYLE_NAME CATEGORY SANDAL 85909 10.00 SANDAL 85940 12.00 SANDAL 86979 COST

COST

COST

COST

Correct 23. When executed, which statement displays a zero if the TUITION_BALANCE value is z ero and the HOUSING_BALANCE value is null? SELECT NVL (tuition_balance + housing_balance, 0) Balance Due FROM student_accounts; (*) SELECT NVL(tuition_balance, 0), NVL (housing_balance), tuition_balance + housing _balance Balance Due FROM student_accounts; SELECT tuition_balance + housing_balance FROM student_accounts; SELECT TO_NUMBER(tuition_balance, 0), TO_NUMBER (housing_balance, 0), tutition_b alance + housing_balance Balance Due FROM student_accounts; Correct

24. You need to replace null values in the DEPT_ID column with the text ctions should you use? TO_CHAR and NVL (*) TO_CHAR and NULL TO_CHAR and NULLIF TO_NUMBER and NULLIF Correct Section 3 Lesson 2 (Answer all questions in this section)

N/A . Which fun

25. You have been asked to create a report that lists all corporate customers and al l orders that they have placed. The customers should be listed alphabetically be ginning with the letter A , and their corresponding order totals should be sorted f rom the highest amount to the lowest amount. Which of the following statements should you issue? Mark for Review (1) Points SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount FROM customers c, orders o WHERE c.custid = o.custid ORDER BY amount DESC, companyname; SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount FROM customers c, orders o WHERE c.custid = o.custid ORDER BY companyname, amount DESC; (*) SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount FROM customers c, orders o WHERE c.custid = o.custid ORDER BY companyname, amount; SELECT c.custid, c.companyname, o.orderdate, o. custid, o.amount Q FROM customers c, orders o WHERE c.custid = o.custid ORDER BY companyname ASC, amount ASC; Correct 26. Your company stores its business information in an Oracle9i database. The EMPLOY EES table includes the following columns: EMP_ID NUMBER(5) NOT NULL PRIMARY KEY FNAME VARCHAR2(25) LNAME VARCHAR2(25) ADDRESS VARCHAR2(35) CITY VARCHAR2(25) STATE VARCHAR2(2) ZIP NUMBER(9) TELEPHONE NUMBER(10)

sales s WHERE c. bonus WHERE e. 2) EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY You want to determine the amount of each employee s bonus. the company and the total sa les? SELECT c.emp_id.cust_id (+). e. b. e.cust_id. bonus b WHERE e.annual_salary. . c. b.annual_salary.emp_id = b. (*) SELECT e.lname. SELECT e. company. annual_salary * bonus_pct FROM employees. bonus NATURAL JOIN. bonus_pct FROM employees e.lname. lname. b. total_sales FROM customers. SELECT cust_id. The CUSTOMERS and SALES tables contain these columns: CUSTOMERS CUST_ID NUMBER(10) PRIMARY KEY COMPANY VARCHAR2(30) LOCATION VARCHAR2(20) SALES SALES_ID NUMBER(5) PRIMARY KEY CUST_ID NUMBER(10) FOREIGN KEY TOTAL_SALES NUMBER(30) Which SELECT statement will return the customer ID. Which of the following queries should you issue? SELECT e. Incorrect. SELECT fname. bonus_pct FROM employees e.fname. bonus b WHERE e.lname. e.cust_id = s.emp_id.company.emp_id = b. b.annual_salary * b. b. bonus_pct FROM employees.fname.emp_id. Refer to Section 3 27.total_sales FROM customers c.DEPT_ID NUMBER(5) NOT NULL FOREIGN KEY The BONUS table includes the following columns: BONUS_ID NUMBER(5) NOT NULL PRIMARY KEY ANNUAL_SALARY NUMBER(10) BONUS_PCT NUMBER(3.fname. s. sales WHERE cust_id = cust_id.emp_id = b. What is produced when a join condition is not specified in a multiple-table quer y? a self-join an outer join an equijoin a Cartesian product (*) Correct 28.

Which statement about the join syntax of a SELECT statement is true? The ON keyword must be included. (*) SELECT cust_id. The WHERE clause represents the join criteria. or LEFT keyword must be included. (*) Outer joins are always evaluated before other types of joins in the query. The FROM clause represents the join criteria. (*) Correct 30.SELECT c. Correct 32. Correct 29. s. Which two operators can be used in an outer join condition using the outer join operator (+)? Mark for Review Mark for Review . sales s WHERE c. c. sales s WHERE c.company.cust_id = s. company. The OR operator cannot be used to link outer join conditions. Which statement about outer joins is true? (1) Points The tables must be aliased. RIGHT. When joining 3 tables in a SELECT statement.cust_id = s. total_sales FROM customers c. The FULL. how many join conditions are needed in the WHERE clause? Mark for Review (1) Points 0 1 2 (*) 3 Correct Section 3 Lesson 4 (Answer all questions in this section) 31.total_sales FROM customers c.cust_id. The JOIN keyword must be included.cust_id.cust_id.

Which type of join would you create to join the tables on both o f the columns? Mark for Review (1) Points Natural join (*) Cross join Outer join Self-join . Which operator would you use after one of the column names in the WHERE clause w hen creating an outer join? Mark for Review (1) Points (+) (*) * + = Correct Section 4 Lesson 2 (Answer all questions in this section) 34. Which of the following best describes a natural join? (1) Points Mark for Review and IN A join between two tables that includes columns that share the same name. Refer to Section 3 33. You need to join two tables that have two columns with the same name and compati ble data types. dataty pes and lengths (*) A join that produces a Cartesian product A join between tables where matching fields do not exist A join that uses only one table Correct 35.(1) Points AND and = (*) OR and = BETWEEN AND IN and = Incorrect.

physician_id = c.lname ission FROM patient a JOIN physician b ON (b. Refer to Section 4 38. b. b. Which SELECT clause creates an equijoin by specifying a column name common to bo th tables? Mark for Review (1) Points A HAVING clause The FROM clause The SELECT clause A USING clause (*) Incorrect. . The primary advantage of using JOIN ON is: (1) Points Mark for Review Ma The join happens automatically based on matching column names and data types It will display rows that do not meet the join condition It permits columns with different names to be joined (*) It permits columns that don t have matching data types to be joined Correct 39.lname . .fname as Patient . (*) Correct Section 4 Lesson 3 (Answer all questions in this section) 37.physician_id). a. then an error is returned. If it selects rows from the two tables that have equal values in all matched col umns. Which of the following conditions will cause an error on a NATURAL JOIN? rk for Review (1) Points When you attempt to write it as an equijoin. When the NATURAL JOIN clause is based on all columns in the two tables that have the same name. If the columns having the same names have different data types.Correct 36.fname as Physician . Evaluate this SELECT statement: SELECT a.

sales_order s WHERE c.patient_id = c. sales_order s WHERE c. Which statement could you use? Mark for Review (1) Points SELECT c.2) SHIP_METHOD VARCHAR2 (5) You need to create a report that displays customers without a sales order.patient_id) Incorrect.patient_id).customer_id (+) = s. Which clause generates an error? (1) Points JOIN physician b Mark for Review ON (b.customer_name FROM customers c RIGHT OUTER JOIN sales_order s ON (c.2) SALES_ORDER ORDER_ID NUMBER NOT NULL.customer_name FROM customers c.patient_id = c.physician_id = c. (*) SELECT c. Primary Key CUSTOMER_NAME VARCHAR2 (30) CONTACT_NAME VARCHAR2 (30) CONTACT_TITLE VARCHAR2 (20) ADDRESS VARCHAR2 (30) CITY VARCHAR2 (25) REGION VARCHAR2 (10) POSTAL_CODE VARCHAR2 (20) COUNTRY_ID NUMBER Foreign key to COUNTRY_ID column of the COUNTRY table PHONE VARCHAR2 (20) FAX VARCHAR2 (20) CREDIT_LIMIT NUMBER(7. Below find the structure of the CUSTOMERS and SALES_ORDER tables: CUSTOMERS CUSTOMER_ID NUMBER NOT NULL.customer_name FROM customers c.customer_id not in (SELECT s.customer_id FROM sales_order s). SELECT c.customer_id).customer_id(+). SELECT c.customer_name FROM customers c WHERE c.physician_id).customer_id = s. Refer to Section 4 40. Incorrect.customer_id = s. Refer to Section 4 Section 4 Lesson 4 .customer_id.JOIN admission c ON (a. Primary Key CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table ORDER_DT DATE ORDER_AMT NUMBER (7. (*) JOIN admission c ON (a.

The EMPLOYEE_HIST table will be the first table in the FROM clause. All the matched and unmatched rows i n the EMPLOYEE table need to be displayed. Which two sets of join keywords create a join that will include unmatched rows f rom the first table specified in the SELECT statement? Mark for Review (1) Points LEFT OUTER JOIN and FULL OUTER JOIN (*) RIGHT OUTER JOIN and LEFT OUTER JOIN USING and HAVING OUTER JOIN and USING Correct 43.(Answer all questions in this section) 41. Which type of join returns rows from one table that have NO direct match in the other table? Mark for Review (1) Points equijoin self join outer join (*) natural join Correct Section 5 Lesson 1 (Answer all questions in this section) 44. You need to join the EMPLOYEE_HIST and EMPLOYEE tables. Which type of join will you use? Mark for Review (1) Points a cross join an inner join a left outer join a right outer join (*) Correct 42. Group functions can be nested to a depth of? (1) Points three Mark for Review .

SUM. COUNT(*) Mark for Review . Group functions can be used in a WHERE clause. Refer to Section 5 45.four two (*) Group functions cannot be nested. Which statement about group functions is true? (1) Points Group functions ignore null values. Correct Section 5 Lesson 2 (Answer all questions in this section) 48. The AVG. Incorrect. What will the following SQL Statement do? SELECT job_id. (*) Group functions can only be used in a SELECT list. VARIANCE. A query that includes a group function in the SELECT list must include a GROUP B Y clause. and STDDEV functions can be used with which of the follo wing? Mark for Review (1) Points Only numeric data types (*) Integers only Any data type All except numeric Correct 47. If a select list contains both a column as well as a group function then what cl ause is required? Mark for Review (1) Points having clause join clause order by clause group by clause (*) Correct 46.

(1) Points Mark for Review Displays all the employees and groups them by job.2) . Displays all the jobs with as many people as there are jobs. You need to compute the total salary for all employees in department 10. Which g roup function will you use? Mark for Review (1) Points MAX SUM (*) VARIANCE COUNT Correct 50. The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) SALARY NUMBER(9.2) HIRE_DATE DATE BONUS NUMBER(7. Which group functions below act on character. (*) Displays only the number of job_ids. Correct 49.FROM employees GROUP BY job_id. Displays each job id and the number of people assigned to that job id. number and date data types? (Choose more than one answer) Mark for Review (1) Points (Choose all correct answers) SUM MAX (*) MIN (*) AVG COUNT (*) Correct Section 5 Lesson 2 (Answer all questions in this section) 51.

LAST_NAME.COMM_PCT NUMBER(4.) Mark for Review (1) Points (Choose all correct answers) MAX (*) SUM AVG MIN (*) COUNT (*) Correct 52. The average should be calculated based on all the rows in the table exclu ding any customers who have not yet been assigned a credit limit value.2) Which three functions could be used with the HIRE_DATE. The CUSTOMER table contains these columns: CUSTOMER_ID NUMBER(9) FNAME VARCHAR2(25) LNAME VARCHAR2(30) CREDIT_LIMIT NUMBER (7. Which group function would you use to display the highest salary value in the EM PLOYEE table? Mark for Review .2) CATEGORY VARCHAR2(20) You need to calculate the average credit limit for all the customers in each cat egory. Which group function would you use to display the total of all salary values in the EMPLOYEE table? Mark for Review (1) Points SUM (*) AVG COUNT MAX Correct 53. Which gr oup function should you use to calculate this value? Mark for Review (1) Points AVG (*) SUM COUNT STDDEV Correct 54. or SALARY col umns? (Choose three.

Evaluate this SELECT statement: SELECT COUNT(*) FROM employee WHERE salary > 30000. Evaluate this SELECT statement: SELECT COUNT(*) FROM products. Which statement is true? Mark for Review (1) Points The number of rows in the table is displayed. Which results will the query display? (1) Points Mark for Review The number of employees that have a salary less than 30000. The total of the SALARY column for all employees that have a salary greater than 30000. Correct 57.(1) Points AVG COUNT MAX (*) MIN Correct 55. (*) The query generates an error and returns no results. (*) . Which group function would you use to display the average price of all products in the PRODUCTS table? Mark for Review (1) Points SUM AVG (*) COUNT MAX Correct Section 5 Lesson 3 (Answer all questions in this section) 56. The number of rows in the EMPLOYEE table that have a salary greater than 30000.

The number of unique PRODUCT_IDs in the table is displayed. Refer to Section 6 . SELECT COUNT FROM products. An error occurs because no WHERE clause is included in the SELECT statement. Which clause should you include in the SELECT statement? Mark for Review (1) Points WHERE salary > 15000 (*) HAVING salary > 15000 WHERE SUM(salary) > 15000 HAVING SUM(salary) > 15000 Incorrect. Evaluate this SELECT statement: SELECT COUNT(emp_id). Group functions can avoid computations involving duplicate values by including w hich keyword? Mark for Review (1) Points NULL DISTINCT (*) SELECT UNLIKE Correct Section 6 Lesson 1 (Answer all questions in this section) 60. An error occurs due to an error in the SELECT clause. You only want to include employees who earn more than 15000. dept_id FROM employee GROUP BY dept_id. (*) SELECT ROWCOUNT FROM products. Correct 59. SELECT COUNT (*) FROM products. Correct 58. Which SELECT statement will calculate the number of rows in the PRODUCTS table? Mark for Review (1) Points SELECT COUNT(products).

The report should include only those employees who have been with the company for more than one year and whose salar y exceeds $40. date of hire and salary. Which clauses restricts the result? Choose two. SELECT emp_id. The EMPLOYEES table contains the following columns: EMP_ID NUMBER(10) PRIMARY KEY LNAME VARCHAR2(20) FNAME VARCHAR2(20) DEPT VARCHAR2(20) HIRE_DATE DATE SALARY NUMBER(10) You want to create a report that includes each employee s last name. AVG(salary) Mark for Review . department_id HAVING AVG(salary) > 35000 ORDER BY department_id. lname. AVG(salary) FROM employees WHERE job_id <> 69879 GROUP BY job_id.Section 6 Lesson 1 (Answer all questions in this section) 61. lname. Evaluate this statement: SELECT department_id. Refer to Section 6 62. Which of the following SELECT statements will accomplish this task? Mark for Review (1) Points SELECT emp_id. hire_date. (1) Points (Choose all correct answers) SELECT department_id. lname. Incorrect. (*) SELECT emp_id. lname. employee iden tification number. SELECT emp_id. hire_date. salary FROM employees WHERE salary > 40000 AND (sysdate-hire_date) / 365 > 1. salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1).000. salary FROM employees WHERE salary > 40000 AND hire_date IN (sysdate-hire_date) / 365 > 1). salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1).

Correct 65. Which SELECT statement clause allows you to restrict the rows returned. dept_id. Evaluate this SELECT statement: SELECT COUNT(emp_id). Evaluate this SELECT statement: SELECT SUM(salary). Refer to Section 6 64. mgr_id. A single query cannot contain a WHERE clause and a HAVING clause. mgr_id FROM employee GROUP BY dept_id. mgr_id. department_id HAVING AVG(salary) > 35000 (*) Correct 63. dept_id. (*) The HAVING clause must specify an aggregate function. department_name FROM employee WHERE dept_id = 1 GROUP BY department. Why does this statement return a syntax error? (1) Points MGR_ID must be included in the GROUP BY clause. dept_id FROM employee WHERE status = I GROUP BY dept_id HAVING salary > 30000 ORDER BY 2. Which clause of the SELECT statement contains a syntax error? w (1) Points SELECT Mark for Review Mark for Revie . based on a group function? Mark for Review (1) Points HAVING SUM(salary) > 100000 (*) WHERE SUM(salary) > 100000 WHERE salary > 100000 HAVING salary > 100000 Incorrect.WHERE job_id <> 69879 (*) GROUP BY job_id. Evaluate this SELECT statement: SELECT SUM(salary). The ORDER BY clause must specify a column name in the EMPLOYEE table.

team_name.player_id) FROM players JOIN teams t ON (p.team_id = t.team_name.team_id) WHERE UPPER(p. 0)) (*) HAVING MAX(salary) > 10000 (*) WHERE hire_date > AVG(hire_date) Correct 67. COUNT(p.position) = PITCHER GROUP BY t.team_name. The PLAYERS table contains these columns: PLAYER_ID NUMBER PK PLAYER_NAME VARCHAR2 (30) TEAM_ID NUMBER HIRE_DATE DATE SALARY NUMBER (8.team_id = t.player_id) . Primary Key LAST_NAME VARCHAR2 (30) NOT NULL FIRST_NAME VARCHAR2 (25) NOT NULL TEAM_ID NUMBER POSITION VARCHAR2 (25) TEAMS TEAM_ID NUMBER NOT NULL.FROM WHERE GROUP BY (*) Correct 66. Primary Key TEAM_NAME VARCHAR2 (25) You need to create a report that lists the names of each team with more than fiv e pitchers.2) Which two clauses represent valid uses of aggregate functions? (Choose three. COUNT(p.position) = PITCHER HAVING COUNT(p.player_id) FROM players p.team_name. Which SELECT statement will produce the desired result? Mark for Review (1) Points SELECT t. SELECT t. COUNT(p. teams t ON (p.) Mark for Review (1) Points (Choose all correct answers) ORDER BY AVG(salary) GROUP BY MAX(salary) (*) SELECT AVG(NVL(salary.player_id) > 5. The PLAYERS and TEAMS tables contain these columns: PLAYERS PLAYER_ID NUMBER NOT NULL. SELECT t.team_id) WHERE UPPER(p.

Which statement about subqueries is true? (1) Points Mark for Review M Subqueries should be enclosed in double quotation marks. SELECT t.team_id = t.player_id) > 5.team_id) WHERE UPPER(p. Which of the following is TRUE regarding the order of subquery execution? ark for Review (1) Points The outer query is executed first The subquery executes once after the main query The subquery executes once before the main query (*) The result of the main query is used with the subquery Correct 70.player_id) FROM players p JOIN teams t ON (p. (*) Correct Section 6 Lesson 2 (Answer all questions in this section) 68.team_name.team_id = t. teams t ON (p.FROM players p.team_name HAVING COUNT(p. Which comparison operator should you use? Mark for Revie w (1) Points = > <= >= (*) Correct 69. You need to display all the players whose salaries are greater than or equal to John Brown s salary. after the main or outer query executes. COUNT(p. Subqueries cannot contain group functions.team_name HAVING COUNT(p.position) = PITCHER GROUP BY t. (*) Subqueries generally execute last.player_id) > 5.position) = PITCHER GROUP BY t. Subqueries are often used in a WHERE clause to return values for an unknown cond itional value. .team_id) WHERE UPPER(p.

Refer to Section 6 72. DEPARTMENT. Examine the structure of the EMPLOYEE. Which operator can be used with a multiple-row subquery? (1) Points IN (*) <> = LIKE Correct Section 6 Lesson 3 (Answer all questions in this section) 73. Refer to Section 6 Section 6 Lesson 2 (Answer all questions in this section) 71. You need to display all the orders that were placed on a certain date.2) OPEN_DATE DATE ORDER_HISTORY ORDER_ID NUMBER(5) CUSTOMER_ID NUMBER(5) ORDER_DATE DATE TOTAL NUMBER(8. and ORDERS tables.Incorrect. Examine the structures of the CUSTOMER and ORDER_HISTORY tables: CUSTOMER CUSTOMER_ID NUMBER(5) NAME VARCHAR2(25) CREDIT_LIMIT NUMBER(8. You need to display each date that a customer placed an order.2) Which of the following scenarios would require a subquery to return the desired results? Mark for Review (1) Points You need to display the date each customer account was opened. You need to display all the orders that were placed on the same day as order num ber 25950. (*) Incorrect. EMPLOYEE EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(25) FIRST_NAME VARCHAR2(25) DEPARTMENT_ID NUMBER(9) DEPARTMENT DEPARTMENT_ID NUMBER(9) Mark for Review .

Refer to Section 6 74. Which best describes a single-row subquery? (1) Points Mark for Review a query that returns only one row from the inner SELECT statement (*) a query that returns one or more rows from the inner SELECT statement a query that returns only one column value from the inner SELECT statement a query that returns one or more column values from the inner SELECT statement Correct 75. SELECT * FROM supervisors WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = Carter ). However. Which query should you issue to acco mplish this task? Mark for Review (1) Points SELECT * FROM employees WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = Carter ).DEPARTMENT_NAME VARCHAR2(25) CREATION_DATE DATE ORDERS ORDER_ID NUMBER(9) EMPLOYEE_ID NUMBER(9) DATE DATE CUSTOMER_ID NUMBER(9) You want to display all employees who had an order after the Sales department wa s established. You need to produce a report that contains all employee-related information for those employees who have Brad Carter as a supervisor. you are not sure which supervisor ID belongs to Brad Carter. SELECT * FROM supervisors WHERE supervisor_id = . Which of the following constructs would you use? Mark for Re view (1) Points a group function a single-row subquery (*) the HAVING clause a MERGE statement Incorrect.

SELECT * FROM employees WHERE supervisor_id = (SELECT employee_id FROM employees WHERE last_name = Carter ). Evaluate this SELECT statement: SELECT customer_id. Refer to Section 6 78. Which statement is true about the given subquery? Mark for Review (1) Points The outer query executes before the nested subquery. The results of the inner query are returned to the outer query. (*) Single-row operators can be used with both single-row and multiple-row subquerie s.(SELECT employee_id FROM supervisors WHERE last_name = Carter ). name FROM customer WHERE customer_id IN (SELECT customer_id Mark . Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) 76. Multiple-row subqueries can be used with both single-row and multiple-row operat ors. Both the inner and outer queries must return a value. (*) Incorrect. or an error occurs. Incorrect. Correct 77. Evaluate this SELECT statement that includes a subquery: SELECT last_name. (*) An error occurs if the either the inner or outer queries do not return a value. Which statement about single-row and multiple-row subqueries is true? for Review (1) Points Multiple-row subqueries cannot be used with the LIKE operator. Multiple-row subqueries can only be used in SELECT statements. first_name FROM customer WHERE area_code IN (SELECT area_code FROM sales WHERE salesperson_id = 20).

(*) Second subquery found on the right instead of the left side of the operator. Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) . Refer to Section 6 79. Incorrect. Incorrect. (*) All the rows in the table would be selected. Which of the following statements contains a comparison operator that is used to restrict rows based on a list of values returned from an inner query? Mark for Review (1) Points SELECT description FROM d_types WHERE code IN (SELECT type_code FROM d_songs).00). last_name. Refer to Section 6 80. What would happen if the inner query returned null? (1) Points An error would be returned. All of the above. No rows would be returned by the outer query. (*) Incorrect. SELECT description FROM d_types WHERE code <> ALL (SELECT type_code FROM d_songs). Which of the following is a valid reason why the query below will not execute su ccessfully? SELECT employee_id. The greater than operator is not valid. Mark for Review Only the rows with CUSTOMER_ID values equal to null would be selected. SELECT description FROM d_types WHERE code = ANY (SELECT type_code FROM d_songs).FROM customer WHERE state_id = GA AND credit_limit > 500. salary FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE last_name like %u% ) Mark for Revie w (1) Points First subquery not enclosed in parenthesis Single rather than multiple value operator used.

(*) Correct 82. Only employees who earn less than $50. All employees who work in a department with employees who earn more than $30. whi ch comparison operator(s) can you use? Mark for Review (1) Points IN.000. Which best describes a multiple-row subquery? (1) Points Mark for Review Mark A query that returns only one row from the inner SELECT statement . All employees who work in a department with employees who earn more than $30. ANY.000.000 . Which operator or keyword cannot be used with a multiple-row subquery? for Review (1) Points ALL ANY = (*) > Correct 83. salary FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE salary > 30000 AND salary < 50000). last_name. You need to create a SELECT statement that contains a multiple-row subquery.000. and ALL (*) LIKE BETWEEN AND =.000. and > Correct 84. Evaluate this SQL statement: SELECT employee_id. <. but less than $50. Which values will be displayed? Mark for Review (1) Points Only employees who earn more than $30.000 and more than $50.81.

Which multiple-row comparison operator could you u se? Mark for Review (1) Points >ANY (*) NOT=ALL IN >IN Correct Section 7 Lesson 1 (Answer all questions in this section) 87. department_name. Assume all the column names are correct. 1700). manager_id.A query that returns one or more rows from the inner SELECT statement (*) A query that returns only one column value from the inner SELECT statement A query that returns one or more column values from the inner SELECT statement Correct 85. location_id ) VALUES (70. Mark for Review (1) Points 100 will be inserted into the department_id column 1700 will be inserted into the manager_id column 70 will be inserted into the department_id column (*) Public Relations Correct will be inserted into the manager_name column Mark for Review . A multiple-row operator expects how many values? (1) Points One or more (*) Only one Two or more None Correct 86. Public Relations . The following SQL statement will execut e which of the following? INSERT INTO departments (department_id. You need to display all the products that cost more than the maximum cost of eve ry product produced in Japan. 100.

(*) An error occurs because the FT_STUDENTS table already exists. who have a STU_TYPE_ID value of F .You wan t to insert all full-time students. You execute this INSERT statement: INSERT INTO ft_students (SELECT stu_id. You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. What is the result of executing this INSERT statement? Mark for Review (1) Points All full-time students are inserted into the FT_STUDENTS table.88. into the ne w table. Correct 90. named FT_STUDENTS. first_name. An error occurs because the INSERT statement does NOT contain a VALUES clause. You need to add a row to an existing table. with an identical structure. Which DML statement should you use? Mark for Review (1) Points UPDATE INSERT (*) DELETE CREATE Correct Section 7 Lesson 2 . dob. The STUDENTS table contains these columns: STU_ID NUMBER(9) NOT NULL LAST_NAME VARCHAR2 (30) NOT NULL FIRST_NAME VARCHAR2 (25) NOT NULL DOB DATE STU_TYPE_ID VARCHAR2(1) NOT NULL ENROLL_DATE DATE You create another table. Refer to Section 7 89. An error occurs because you CANNOT use a subquery in an INSERT statement. enroll_date FROM students WHERE UPPER(stu_type_id) = F ). stu_type_id. What c ould you use in the INSERT statement to accomplish this task? Mark for Revi ew (1) Points an ON clause a SET clause a subquery (*) a function Incorrect. last_name.

(Answer all questions in this section) 91. You need to remove a row from the EMPLOYEE table. Which statement would you use? Mark for Review (1) Points UPDATE with a WHERE clause INSERT with a WHERE clause DELETE with a WHERE clause (*) MERGE with a WHERE clause Incorrect. Refer to Section 7 92. You want to enter a new record into the CUSTOMERS table. Which two commands can be used to create new rows? Mark for Review (1) Points INSERT, CREATE MERGE, CREATE INSERT, MERGE (*) INSERT, UPDATE Correct 93. The TEACHERS and CLASS_ASSIGNMENTS tables contain these columns: TEACHERS TEACHER_ID NUMBER(5) NAME VARCHAR2(25) SUBJECT_ID NUMBER(5) HIRE_DATE DATE SALARY NUMBER(9,2) CLASS_ASSIGNMENTS CLASS_ID NUMBER(5) TEACHER_ID NUMBER(5) START_DATE DATE MAX_CAPACITY NUMBER(3) Which scenario would require a subquery to return the desired results? for Review (1) Points You need to display the start date for each class taught by a given teacher. You need to create a report to display the teachers who were hired more than fiv e years ago. You need to display the names of the teachers who teach classes that start withi n the next week. You need to create a report to display the teachers who teach more classes than the average number of classes taught by each teacher. (*)

Mark

Correct 94. When the WHERE clause is missing in a DELETE statement, what is the result? Mark for Review (1) Points All rows are deleted from the table. (*) The table is removed from the database. An error message is displayed indicating incorrect syntax. Nothing. The statement will not execute. Correct 95. The PLAYERS table contains these columns: PLAYER_ID NUMBER NOT NULL PLAYER_LNAME VARCHAR2(20) NOT NULL PLAYER_FNAME VARCHAR2(10) NOT NULL TEAM_ID NUMBER SALARY NUMBER(9,2) You need to increase the salary of each player for all players on the Tiger team by 12.5 percent. The TEAM_ID value for the Tiger team is 5960. Which statement should you use? Mark for Review (1) Points UPDATE players (salary) SET salary = salary * 1.125; UPDATE players SET salary = salary * .125 WHERE team_id = 5960; UPDATE players SET salary = salary * 1.125 WHERE team_id = 5960; (*) UPDATE players (salary) VALUES(salary * 1.125) WHERE team_id = 5960; Correct 96. What keyword in an UPDATE statement speficies the columns you want to change? Mark for Review (1) Points SELECT WHERE SET (*) HAVING Correct 97. One of your employees was recently married. Her employee ID is still 189, howeve r, her last name is now Rockefeller. Which SQL statement will allow you to refle ct this change? Mark for Review (1) Points

INSERT INTO my_employees SET last_name = INSERT my_employees SET last_name =

Rockefeller

WHERE employee_ID = 189;

Rockefeller

WHERE employee_ID = 189; WHERE employee_ID = 189;

UPDATE INTO my_employees SET last_name = Rockefeller UPDATE my_employees SET last_name = Correct Rockefeller

WHERE employee_ID = 189; (*)

98. You need to delete a record in the EMPLOYEES table for Tim Jones, whose unique e mployee identification number is 348. The EMPLOYEES table contains these columns : ID_NUM NUMBER(5) PRIMARY KEY LNAME VARCHAR2(20) FNAME VARCHAR2(20) ADDRESS VARCHAR2(30) PHONE NUMBER(10) Which DELETE statement will delete the appropriate record without deleting any a dditional records? Mark for Review (1) Points DELETE FROM employees WHERE id_num = 348; (*) DELETE FROM employees WHERE lname = jones; DELETE * FROM employees WHERE id_num = 348; DELETE jones Correct 99. Examine the structures of the PLAYERS, MANAGERS, and TEAMS tables: PLAYERS PLAYER_ID NUMBER Primary Key LAST_NAME VARCHAR2 (30) FIRST_NAME VARCHAR2 (25) TEAM_ID NUMBER MGR_ID NUMBER SIGNING_BONUS NUMBER(9,2) SALARY NUMBER(9,2) MANAGERS MANAGER_ID NUMBER Primary Key LAST_NAME VARCHAR2 (20) FIRST_NAME VARCHAR2 (20) TEAM_ID NUMBER TEAMS TEAM_ID NUMBER Primary Key TEAM_NAME VARCHAR2 (20) OWNER_LAST_NAME VARCHAR2 (20) OWNER_FIRST_NAME VARCHAR2 (20) Which situation would require a subquery to return the desired result? for Review (1) Points To display the names each player on the Lions team FROM employees;

Mark

and their team name for all teams with a id value greater than 5000 Incorrect. You need to update the expiration date of products manufactured before June 30th . Refer to Section 7 100. Refer to Section 7 Review your answers. their manager. Tru e or False? Mark for Review (1) Points True (*) False Correct 3. Software cannot operate without Hardware. feedback. In which clause of the UPDATE statement will you specify this condition? Mark for Review (1) Points the ON clause the WHERE clause (*) the SET clause the USING clause Incorrect.To display the maximum and minimum player salary for each team To display the names of the managers for all the teams owned by a given owner (* ) To display each player. as the world gets ever more dependent on computer systems. An asterisk (*) indica tes a correct answer. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Is details of the total number of books out on loan in one given month Data or Information? Mark for Review (1) Points Data . True or False? Mark for Review (1) Points True (*) False Correct 2. It will have a database with transaction detai ls of which student borrows which books. and question scores below. The market for IT professionals is still increasing and will continue to do so in the future. Section 1 1. Consider your school library.

(*) They must exist between two different Entities. (*) They must be mandatory to be created in the database. Correct 7.Information (*) Both Neither Incorrect. Which of the following statements about relationships are true? (Choose Two) Mark for Review (1) Points (Choose all correct answers) They become foreign keys in the database. 4. Life. True or False? Mark for Review (1) Points True (*) False Correct . would change drastically if we no longer had access to databases. as we kn ow it. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Correct 6. They can be either mandatory or optional. Volatile entities have special requirements and need special attention when you are doing data modelling. Refer to Section 1 Lesson 2. True or False? Mark for Review (1) Points True (*) False Correct Section 2 5. Databases are used in most countries and by most governments.

a relationship is represented as a? Mark for Revi ew (1) Points Column Row Instance Foreign Key (*) Correct 9. so users do not suddenly want the new system to contain twice as much functionality.8. Relationships represents something of significance to the business. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Correct 10. Section 2 11. True or False? Mark for Review (1) Points True (*) False Correct Page 1 of 5 Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. True or False? Mark for Revi ew (1) Points True (*) False Correct Section 3 12. True or False? Mark for Review (1) Points . Entity and Attribute names are usually Nouns. Documenting Business Requirements helps developers control the scope of the systems. In a physical data model.

Relationship Degree/Cardinality is important. Matrix Diagrams are developed BEFORE the ERD. All the Attributes in a system are just written on the ERD. True or False? Ma rk for Review (1) Points True False (*) Correct Section 4 17. We need to concentrate on the Procedural Business Rules onl y. Ensures we know what Information to store and how that Information works togethe . and they all go in the Top Left Hand Corner of the paper. Matrix Diagrams are mandatory when doing data modelling. True or False? Mark for Review (1) Points True False (*) Correct 15. True or False? Mark for Revi ew (1) Points True False (*) Correct 16. There are no benefits to be gained from documenting your Struct ural Business Rules. Why is it important to identify and document structural rules? Mark for Re view (1) Points Ensures we know what data to store and how that data works together. Refer to Section 3 Lesson 1.True (*) False Incorrect. True or False? Mark for Revi ew (1) Points True (*) False Correct 14. (*) Ensures nothing. 13.

An asterisk (*) indica tes a correct answer. All of the Above. Which of the following are suitable Entity names? (Choose Two) Mark for Re view (1) Points (Choose all correct answers) DOGS ANIMAL (*) ANIMALS DOG (*) Correct 19.r. True or False? Mark for Review (1) Points True (*) False Correct Page 2 of 5 Test: Mid Term Exam Semester 1 Review your answers. True or False? Mark for Review . and question scores below. A Supertype can have only one subtype. Section 4 21. feedback. When creating entities you must follow these rules: (Choose Two) Mark for Review (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Correct 20. All instances of the supertype must be an instance of one of the subtypes. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Correct 18.

True or False? Mark for Review (1) Points True (*) False Correct 25. Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable Correct 26. All instances of a subtype may be an instance of the supertype but does not have to.(1) Points True False (*) Incorrect. A relationship from an entity back to itself is called a ___________ relati onship. Refer to Section 4 Lesson 1. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. these relationships ca n be either _____________ or _____________ ? Mark for Review (1) Points Redundant or Required (*) Replicated or Required . If two entities have two relationships between them. Relationships can be Redundant. 22. True or False? Mark for Review (1) Points True False (*) Correct Section 5 23. True or False? Mark for Review (1) Points True (*) False Correct 24.

Many to many relationships must be left in the Model. no new entities are created. Intersection Entities are at the Master end in the relationships between it and the original entities. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 5 Lesson 3. An asterisk (*) indica tes a correct answer. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. When you resolve a M-M you simply re-draw the relationships between the two original entities. True or False? Mark for Review (1) Points True False (*) Correct 28. So the original entities are details or children of the newly created intersection entity. It is important to ha ve them documented as M-M. True or False? Mark for Review (1) Points True False (*) Correct Page 3 of 5 Test: Mid Term Exam Semester 1 Review your answers. feedback. and question scores below.Resourced and Really Good Redundant and Replicated Correct 27. . What do you call the entity created when you resolve a M:M relationship? M ark for Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct 30. 29.

Modeling historical data can produce a unique identifier that always exclud . True or False? Mark for Review (1) Points True (*) False Correct 35. The Rule of 3rd Normal Form states that No Non-UID attribute can be dependa nt on another non-UID attribute. A unique identifier must be made up of more than one attribute. True or Fal se? Mark for Review (1) Points True False (*) Correct 33. Any Non-UID must be dependant on the entire UID.Section 6 31. True or False? Mark for R eview (1) Points True (*) False Correct 34. All entities must be given a new artificial UID. Until all attributes are single-valued. the database model is said to be: Mark for Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Correct Section 7 36. True or False? Mark for R eview (1) Points True False (*) Correct 32.

True or False? Mark for Review (1) Points True False (*) Correct Page 4 of 5 Test: Mid Term Exam Semester 1 Review your answers. Tr . and question scores below. All ERD s must have at least one Arc. Arcs are Mandatory in Data modeling. A recursive relationship must Mandatory at both ends. True or False? Mark for Review (1) Points True (*) False Correct 40. True or False? Mark for Review (1) Points True False (*) Correct 38. No parts of an UID are mandatory. All relationships participating in an arc must be mandatory. feedback. An asterisk (*) indica tes a correct answer. True or False? Mark for Review (1) Points True False (*) Correct 37. True or False? Mark for Review (1) Points True False (*) Correct 39. An arc can also be modeled as Supertype and Subtypes. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Section 7 41.es dates.

Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Correct Section 9 43. You are doing a data model for a computer sales company. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or S unday. . Correct 44.ue or False? Mark for Review (1) Points True False (*) Correct 42. where the price of postage is dependent on what day of the week goods are shipped. True or False? Mark for Review (1) Points True False (*) Correct 45. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity. Which of the following would be a logical constraint when modeling time for a City entity? Mark for Review (1) Points People are born in the city and people die in the city. and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. which holds prices against week days. Update the prices in the system. print out the current prices when they change a nd pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want. (* ) Email current price to all employees whenever the prices change. Arcs are used to visually represent _________ between two or more relations hips in an ERD. All systems must include functionality to provide logging or journaling in conceptual data models.

There are formal rules for how to draw ERD s. so yo u know when to give your employees a holiday. you should always try to follow them. they get a new Mayor Correct 46. Making a diagram pretty is a waste of time. (*) If you are doing a system for any French City. True or False? Mark for Review (1) Points True False (*) Correct 48.g. True or False? Mark for Review (1) Points True False (*) Correct Section 10 47. The generic entities MUST be drawn on a diagram of their o wn. even though they are only guide lines. True or False? Mark for Review (1) Points True False (*) Correct 49. True or False? Mark for Review (1) Points True (*) False Correct 50. All systems must have an entity called WEEK with a holiday attribute. you would need security clearance You need a constant record of cities because they are still cities. e. There is no point in trying to group your entities together on your diagram according to volume. True or False? Mark for Review (1) Points True .Cites may change their name and/or which country they are placed in. if the bord ers of a country change. A datamodel containing generic modeling techniques must not be mixed in wit h non-generic models. even if lead ership changes over time. All datamodels must be transformed from specific to generic.

Entities are transformed into Tables during the Database Design process. 4. Tru e or False? Mark for Review (1) Points True (*) False Correct Section 2 5. True or False? Mar k for Review . Tru e or False? Mark for Review (1) Points True (*) False Correct 2. Is a record of one student borrowing on e book Data or Information? Mark for Review (1) Points Data (*) Information Both Neither Incorrect. Refer to Section 1 Lesson 4. It will have a database with transaction detai ls of which student borrows which books. Databases perform these functions . Mark for Review (1) Points Running multiple applications on multiple client-servers Providing integrated software on fast processing servers Providing software running on a variety of platforms and configurations allowing companies a structured way to access and manage their data (*) They run purely as client-based software on personal computers Incorrect. 3. The Physical Model is derived from the Conceptual Model. Consider your school library. as the world gets ever more dependent on computer systems.False (*) Correct Page 5 of 5 1. The market for IT professionals is still increasing and will continue to do so in the future. Refer to Section 1 Lesson 2.

10. Refer to Section 2 Lesson 2. Attributes have Instances. A/an _________ is a picture of all the information that will form the basis for the finished system. True or False? Mark for Review (1) Points True False (*) Incorrect. (Choose Two) Mark for Review (1) Points (Choose all correct answers) TRANSPORTATION METHOD: Car (*) .(1) Points True (*) False Correct 6. Which of the following are examples of ENTITY: Instance. Mark for Review (1) Points ERD (*) Process Table Attribute Correct 8. 7. Relationship names are usually verbs. 9. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Incorrect. Refer to Section 2 Lesson 3. Refer to Section 2 Lesson 2. True or False? Mark for Review (1) Points True (*) False Incorrect.

15. Relationships represents something of significance to the business. True or False? Ma rk for Review (1) Points True False (*) Correct 14. Matrix Diagrams are mandatory when doing data modelling.ANIMAL: Dog (*) MEAT PRODUCT: Lettuce BODY PART: Larry Ellison Incorrect. The single end of a Relationship is called: Mark for Review (1) Points Single Toe (*) Big Toe Single Foot Crows Foot Correct 13. Volatile entities have special requirements and need special attention when you are doing data modelling. True or False? Mark for Review (1) Points True (*) False Correct Section 3 12. Section 2 11. True or False? Mark for Review (1) Points . Refer to Section 3 Lesson 4. A Matrix Diagram should be developed by your users. Refer to Section 2 Lesson 2. True or False? Mark fo r Review (1) Points True False (*) Incorrect.

only the supertype itself. 19. A new system would have a mixture of both Procedural and Structural Busines s Rules as part of the documentation of that new system. When creating entities you must follow these rules: (Choose Two) Mark for Review . Relationship Names are optional. Refer to Section 4 Lesson 1. Which of the following is true about subtypes? Mark for Review (1) Points One instance may belong to two subtypes of the same supertype. True or False? Mark fo r Review (1) Points True (*) False Correct 18. Incorrect. Subtypes must be mutually exclusive. True or False? Mark for Review (1) Points True False (*) Correct Section 4 17. Subtype entities may not have relationships to the other subtype entities.True (*) False Correct 16. (*) Subtypes must not be mutually exclusive. All ER diagrams must have one of each of the following: (Choose two) Mark for Review (1) Points (Choose all correct answers) One or more Entities (*) Relationships between entities (*) Arcs At least one supertype and subtype Correct 20.

True or False? Mark for Review (1) Points True (*) False Correct 24. True or False? Mark for Review (1) Points True False (*) Correct 22. True or False? Mark for Review (1) Points True (*) False Correct Section 5 23. A Diamond on a relationship indicates the Relationship as Non-Tranferrable. So the original entities are details or children of . not to a Subtype. You can only create relationships to a Supertype.(1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Correct Section 4 21. All instances of the supertype must be an instance of one of the subtypes. no new entities are created. True or False? Mark for Review (1) Points True False (*) Correct 25. When you resolve a M-M you simply re-draw the relationships between the two original entities. Intersection Entities are at the Master end in the relationships between it and the original entities.

True or False? Mark for Review (1) Points True False (*) Correct 26. so the relationships are often barred. Many to many relationships must be left in the Model. Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable Correct 28. How do you include a relationship as part of the UID for an entity? Mark f or Review (1) Points By barring the relationship in question (*) By reporting it in an external document By including the UID from the parent entity as an attribute in the entity You cannot model that. True or False? Mark for Review (1) Points . True or False? Mark for Review (1) Points True False (*) Correct 30.the newly created intersection entity. A relationship from an entity back to itself is called a ___________ relati onship. Relationships can be Redundant. Correct 29. True or False? Mark for Review (1) Points True (*) False Correct 27. Intersection Entities often have the relationships participating in the UID . It is important to ha ve them documented as M-M.

as long as you get it onto the ERD your job is done. So. a/an ______________ UID can be created. A shoe has a color. True or False? Mark for Review (1) Points True False (*) Correct 33. a style. customer IDs. Until all attributes are single-valued. but may not have a des criptive number . Would it be a good idea to model age as an attribute of STUDENT? Mark for Review (1) Points . etc. Mark for Review (1) Points Artificial (*) Unrealistic Structured Identification Correct 35.True (*) False Correct 31. but a lot of systems assign student numbers . to be able to uniquely and efficiently identify one instance of the entity SHOE. the database model is said to be: Mark for Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Correct 32. As a database designer you do not need to worry about where in the datamode l you store a particular attribute. a size. People are not born with numbers . True or False? Mark for R eview (1) Points True False (*) Correct 34. All entities must be given a new artificial UID.

Arcs are used to visually represent _________ between two or more relations hips in an ERD. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. Tr ue or False? Mark for Review (1) Points True False (*) Correct 38. All ERD s must have at least one Arc.Yes Maybe it could stop us having to calculate someone s age every time we need it Sometimes No it breaks the Normalization rules (*) Correct Section 7 36. Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Correct . independen t of their datatype Mandatory in data modeling Always comprised of numbers Correct 39. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. Arcs are Mandatory in Data modeling. Modeling historical data can produce a unique identifier that always exclud es dates. True or False? Mark for Review (1) Points True False (*) Correct 37.

you MUST cr eate an End Date attribute and it must be mandatory. No parts of an UID are mandatory. then En d Dates becomes Mandatory.40. True or False? Mark for Review (1) Points True False (*) Correct 42. All systems must have an entity called WEEK with a holiday attribute. For each Start Date attribute you create. Which of the following is NOT a relationship type? Mark for Review (1) Points Some to None (*) One to One One to Many Many to Many Correct 41. If a system includes the concept of time and it stores Start Dates. True or False? Mark for Re view (1) Points True False (*) . so yo u know when to give your employees a holiday. True or False? Mark for Review (1) Points True False (*) Correct 44. Which of the following would be good as a Unique Identifier for its Entity? (Choose Three) Mark for Review (1) Points (Choose all correct answers) Personal Identification number for Person (*) Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby Correct Section 9 43.

True or False? Mark for Review (1) Points True False (*) Correct 49. (*) EMPLOYEE periods can overlap causing the database to crash. Refer to Section 10 Lesson 2.Incorrect. Correct Section 10 47. 45. A datamodel containing generic modeling techniques must not be mixed in wit h non-generic models. True or False? Mark for Review (1) Points True False (*) Incorrect. There is no point in trying to group your entities together on your diagram according to volume. Dates must be stored with Time. The generic entities MUST be drawn on a diagram of their o wn. Making a diagram pretty is a waste of time. All datamodels must be transformed from specific to generic. True or False? Mark for Review (1) Points True False (*) Correct 46. All systems must include functionality to provide logging or journaling in conceptual data models. 48. Refer to Section 9 Lesson 1. End Date must be before the Start Date. Which of the following is a logical constraint that could result from consi dering how time impacts an example of data storage? Mark for Review (1) Points An ASSIGNMENT may only refer to an EMPLOYEE with a valid employee record at the Start Date of the ASSIGNMENT. True or False? Mark for Review (1) Points True False (*) .

True or False? True (*) False Data models are drawn to show users the actual Data their new system will co ntain. This way y ou end up with more than one ERD. 2010 at 5:58 pm foarte tare :D inca costy says: December 5. 2010 at 4:17 pm oracle face midtermul pe loc alegand 50 uite mai sunt 2 pe care leam gasit eu si nu le aveai. 2010 at 4:52 pm puteti sa completati k le facem un bine celor care nu au dat . that together documents the entire system. Only Data on the Diagram can be entered into the Database. Matrix Diagrams are used to verify an ERD.Correct 50. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture.. las raspunsurile aici. True or False? True (*) False mih2021 says: November 29. Which of the following statements are true for ERD s to enhance their readabi lity. 2010 at 6:55 pm folosesti ctrl+f cautand intrebarile . (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single. big diagram.sau tu ai adunat toate raspunsurile din sectiunile 1-10 ? mih2021 says: November 28. 2010 at 5:26 pm pai si unde sunt raspunsurile pentru mid-term ca sunt vreo 50 intrebari doar . aici is o gramada .) de intrebari din cateva sute ioana says: November 29.. even if yo u have hundreds Correct Comments mih2021 says: November 19. 2010 at 6:00 pm raspunsurile midterm sunt primite ca painea calda :) ) Andrei says: November 28.

2010 at 5:04 pm ba frate le am si eu costy says: December 5. True or False? Mark for Review (1) Points True (*) False Correct costy says: December 5. 2010 at 5:03 pm Which of the following scenarios should be modeled so that historical data i s kept? (Choose two) Mark for Review (1) Points (Choose all correct answers) BABY and AGE CUSTOMER and PAYMENTS (*) TEACHER and AGE CUSTOMER and ORDERS (*) Correct mih2021 says: December 5. 2010 at 5:05 pm da dar eu ti le dau si corecte costy says: December 5.What uncommon relationship is described by the statements: Each DNA SAMPLE ma y be taken from one and only one PERSON and each PERSON may provide one and only one DNA SAMPLE Mark for Review (1) Points One to Many Optional One to Many Mandatory One to One Optional (*) Many to Many Mandatory Correct costy says: December 5. 2010 at 5:06 pm Arcs are Mandatory in Data modeling. Tru e or False? Mark for Review (1) Points True . 2010 at 5:01 pm There is no limit to how may UID s an entity can have. All ERD s must have at least one Arc.

2010 at 3:07 pm Users with detailed business knowledge can provide input to the Database Dev elopment Process? True or False? True (*) False Correct nate says: March 15. even i f you have hundreds Correct Iosif Flavius Edmond Madalin says: December 13. the database confor ms to the rules of ___________. big diagram. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw You must ensure you have all the entities on one single. 2010 at 5:16 pm Which of the following statements are true for ERD s to enhance their readabil ity.) ) chiar nu am putut verifica toate alea costy says: December 5. 2011 at 9:27 pm 35. that together documents the entire system. True or False? Mark for Review (1) Points True False (*) Correct costy says: December 5. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Is is OK to break a big ERD down into subsets of the overall picture.False (*) Correct Pe asta nu o aveai :D mih2021 says: December 5. When data is only stored in one place in a database. This w ay you end up with more than one ERD. 2010 at 5:06 pm aaaaa :) ) mii de scuze . 2010 at 5:12 pm All datamodels must be transformed from specific to generic. Mark for Review (1) Points .

.. 2011 at 1:33 am ? little about relationships and dating eu says: May 20. Notify me of new posts via email.Normality Reduction Normalization (X) Multiplication datinangel says: April 29. 2011 at 6:21 am multumiri dc voi gasi ceva Leave a Reply Enter your comment here. Guest Log In Log In Log In Gravatar Email (required) (Not published) Name (required) Website Notify me of follow-up comments via email..