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

(Choose 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 coding straight away. It clarifies what a business wants to accomplish, and provides measures for deciding if the system delivers all that is required. (*) It allows application development to be conducted without having to consider database 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 details 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 for 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 at 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 Review (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

True or False? Mark for Review (1) Points True False (*) 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 13. 15. All the Attributes in a system are just written on the ERD. A Matrix Diagram should be developed by your users. 14. 16. Refer to Section 3 Lesson 1. Refer to Section 3 Lesson 4. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 3 Lesson 2. True or False? Mark for Review (1) Points True (*) False Incorrect.12. Relationship Degree/Cardinality is important. Relationship Names are optional. and they all go in the Top Left Hand Corner of the paper. True or False? Mark for Review (1) Points True False (*) Incorrect.

True or False? Mark for Review (1) Points True (*) False Correct 18. You can only create relationships to a Supertype. A Supertype can have only one subtype. A supertype can only have two subtypes and no more. True or False? Mark for Review (1) Points True False (*) Correct 20.Section 4 17. True or False? Mark for Review (1) Points True False (*) Correct . True or False? Mark for Review (1) Points True False (*) Section 4 21. not to a Subtype. The “Other” subtype is mandatory. True or False? Mark for Review (1) Points True False (*) Correct 19. A new system would have a mixture of both Procedural and Structural Business Rules as part of the documentation of that new system.

it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Correct 24. 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 (*) Incorrect. 25. If a relationship can NOT be moved between instances of the entities it connects. 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. these relationships can be either _____________ or _____________ ? Mark for Review (1) Points Redundant or Required (*) . Refer to Section 5 Lesson 2. If two entities have two relationships between them.22.

True or False? Mark for Review (1) Points True False (*) Correct 29. 26. Correct 28. 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 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 27.Replicated or Required Resourced and Really Good Redundant and Replicated Incorrect. so the relationships are often barred. Refer to Section 5 Lesson 2. Intersection Entities often have the relationships participating in the UID. True or False? Mark for Review (1) Points . 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. no new entities are created. When you resolve a M-M you simply re-draw the relationships between the two original entities.

Refer to Section 5 Lesson 3. Correct 32. 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 primary key. There is no limit to how may UID‟s an entity can have. 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 31. 30. None of the Above. When is an entity in 2nd Normal Form? Mark for Review (1) Points When all non-UID attributes are dependent upon the entire UID. All entities must be given a new artificial UID. True or False? Mark for Review (1) Points True (*) False Correct .True (*) False Incorrect. True or False? Mark for Review (1) Points True False (*) Correct 33.

Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. If Audit trail attributes are added to an entity they must be in the entities they are auditing. No parts of an UID are mandatory. 38. 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.34. True or False? Mark for Review (1) Points True (*) False Correct 37. True or False? Mark for Review (1) Points . No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark for Review (1) Points True (*) False Correct 35. Refer to Section 7 Lesson 2. True or False? Mark for Review (1) Points True False (*) Correct Section 7 36.

Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. True or False? Mark for Review (1) Points True False (*) Correct . 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. Arcs are Mandatory in Data modeling. None of the Above. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. independent of their datatype Mandatory in data modeling Always comprised of numbers Incorrect.True False (*) Correct 39. Correct 32. True or False? Mark for Review (1) Points True False (*) 31. (*) When no attritibutes are mutually independant and fully independent on the primary key. 40. All entities must be given a new artificial UID. All ERD‟s must have at least one Arc.

True or False? Mark for Review (1) Points True (*) False Correct 37. There is no limit to how may UID‟s an entity can have. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. True or False? Mark for Review (1) Points True False (*) Correct Section 7 36. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. If Audit trail attributes are added to an entity they must be in the entities they are auditing.33. True or False? Mark for Review (1) Points True (*) False Correct 34. 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 (*) . True or False? Mark for Review (1) Points True (*) False Correct 35.

Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. All relationships participating in an arc must be mandatory. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity.ISBN Number for Book (*) Date of birth for Baby Incorrect. Arcs are Mandatory in Data modeling. independent of their datatype Mandatory in data modeling Always comprised of numbers Incorrect. True or False? Mark for Review (1) Points True False (*) Correct 39. Refer to Section 7 Lesson 2. 38. True or False? Mark for Review (1) Points True False (*) Correct . True or False? Mark for Review (1) Points True False (*) Section 7 41. Refer to Section 7 Lesson 1. No parts of an UID are mandatory. All ERD‟s must have at least one Arc. 40.

All systems must include functionality to provide logging or journaling in conceptual data models. True or False? Mark for Review (1) Points True (*) False Correct 45. True or False? Mark for Review (1) Points True (*) False Correct 44. True or False? Mark for Review (1) Points True (*) False Incorrect. Which of the following is a logical constraint that could result from considering 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.42. When you add the concept of time to your data model. Refer to Section 7 Lesson 1. Dates must be stored with Time. Modeling historical data is Optional. (*) EMPLOYEE periods can overlap causing the database to crash. An arc can also be modeled as Supertype and Subtypes. Section 9 43. End Date must be before the Start Date. True or False? Mark for Review (1) Points True . your model becomes more complex. Correct 46.

Which of the following statements are true for ERD‟s to enhance their readability. All datamodels must be transformed from specific to generic. that together documents the entire system. Refer to Section 11 Lesson 1. (*) Try to avoid crossing lines (*) The crows feet (many ends) can point whichever way is the easiest to draw . There is no point in trying to group your entities together on your diagram according to volume. The generic entities MUST be drawn on a diagram of their own. True or False? Mark for Review (1) Points True False (*) Incorrect. A datamodel containing generic modeling techniques must not be mixed in with nongeneric models. True or False? Mark for Review (1) Points True False (*) Incorrect.False (*) Correct Section 10 47. 49. Refer to Section 10 Lesson 2. (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 you end up with more than one ERD. Making a diagram pretty is a waste of time. True or False? Mark for Review (1) Points True False (*) Correct 48. 50.

. It will have a database with transaction details of which student borrows which books. 3. Oracle Database Software provides which of the following functionality? (Choose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating System Incorrect. 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. 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. Entities are transformed into Tables during the Database Design process. even if you have hundreds 1. big diagram. Consider your school library.You must ensure you have all the entities on one single. True or False? Mark for Review (1) Points True (*) False Correct 2.

SQL and PL/SQL (*) Systems programming and computer architecture . we can just start coding right away. once they are finished we never look at them again. Correct 6. We just draw the ERD‟s to please the users. so you will need to change your ERD if you decide to change Hardware Vendor. All of the following could be attributes of an ENTITY called PERSON except one.Data Modeling. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct 8. (*) We do not need datamodels. Which of the following statements about relationships are true? (Choose Two) Mark for Review (1) Points (Choose all correct answers) . They serve no purpose in the real world. Data modelling is performed for the following reasons: (Choose Two) Mark for Review (1) Points (Choose all correct answers) The ERD‟s becomes a blueprint for designing the actual system. (*) It helps discussions and reviews. Entity Relationship modeling is dependent on the hardware or software used for implementation. True or False? Mark for Review (1) Points True False (*) Correct 7.

True or False? Mark for Review (1) Points True (*) False Correct 10. Correct 9. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Incorrect. (*) They must exist between two different Entities. Section 3 . Refer to Section 2 Lesson 11. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) Incorrect. They can be either mandatory or optional. (*) They must be mandatory to be created in the database. Refer to Section 2 Lesson 2. Volatile entities have special requirements and need special attention when you are doing data modelling.They become foreign keys in the database.

Relationship Degree/Cardinality is important. True or False? Mark for Review (1) Points True (*) False . 13. Refer to Section 3 Lesson 3. Which of the following are valid relationship degrees? (Choose two) Mark for Review (1) Points (Choose all correct answers) 1:1 (*) 1:M (*) 1:O O:O Incorrect. Refer to Section 3 Lesson 1. A Matrix Diagram should be developed by your users. Refer to Section 3 Lesson 1. True or False? Mark for Review (1) Points True False (*) Correct 16. True or False? Mark for Review (1) Points True False (*) Incorrect. True or False? Mark for Review (1) Points True (*) False Incorrect. Entity names are always singular.12. 15. 14. Matrix Diagrams are mandatory when doing data modelling.

19. 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. You can only create relationships to a Supertype.Correct Section 4 17. A new system would have a mixture of both Procedural and Structural Business Rules as part of the documentation of that new system. 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 . Refer to Section 4 Lesson 1. True or False? Mark for Review (1) Points True (*) False Correct 18. True or False? Mark for Review (1) Points True False (*) Correct 20. not to a Subtype.

At least one supertype and subtype . The “Other” subtype is mandatory. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 4 Lesson 1. 22. A Supertype can have only one subtype. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 4 Lesson 1. Section 5 23. Intersection Entities are at the Master end in the relationships between it and the original entities. So the original entities are details or children of the newly created intersection entity. 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, no new entities are created. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 5 Lesson 3. 25. Intersection Entities often have the relationships participating in the UID, so the relationships are often barred. True or False? Mark for Review (1) Points True (*) False

Incorrect. Refer to Section 5 Lesson 3. 26. 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 (*) Incorrect. Refer to Section 5 Lesson 1. 27. 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 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 Incorrect. Refer to Section 5 Lesson 2. 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. Incorrect. Refer to Section 5 Lesson 2. 29. Many to many relationships must be left in the Model. It is important to have them documented as M-M. True or False? Mark for Review (1) Points True

False (*) Incorrect. Refer to Section 5 Lesson 2. 30. 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. The first UID for an entity is called the Primary UID, the second is called Secondary UID and so on. Mark for Review (1) Points Yes, this is the way UID‟s are named. (*) No, it is not possible to have more than one UID for an Entity. Yes, but then it stops. No entities can have more than two UID‟s. No, each Entity can only have one UID, the secondary one. Incorrect. Refer to Section 6 Lesson 1. 32. There is no limit to how may UID‟s an entity can have. True or False? Mark for Review (1) Points True (*) False Incorrect. Refer to Section 6 Lesson 1. 33. As a database designer you do not need to worry about where in the datamodel you store a particular attribute, as long as you get it onto the ERD your job is done. True or False? Mark for Review (1) Points True False (*) Correct

Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. Section 7 36. 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 (*) Incorrect. the database model is said to be: Mark for Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Incorrect. independent of their datatype Mandatory in data modeling Always comprised of numbers Incorrect. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity. Refer to Section 6 Lesson 2. 35. Which of the following is NOT a relationship type? Mark for Review (1) Points Some to None (*) One to One One to Many .34. Until all attributes are single-valued. 37. Refer to Section 6 Lesson 3. Refer to Section 7 Lesson 1.

Average Student) Incorrect. True or False? Mark for Review (1) Points True False (*) Correct 42. True or False? Mark for Review (1) Points True False (*) Correct 39. 38. Office) (*) PARENT (Girl. True or False? Mark for Review (1) Points True False (*) .Many to Many Incorrect. 40. Refer to Section 7 Lesson 1. Refer to Section 7 Lesson 1. No parts of an UID are mandatory. Historical data must never be kept. Arcs are Mandatory in Data modeling. Bob) DELIVERY ADDRESS (Home. A recursive relationship must Mandatory at both ends. True or False? Mark for Review (1) Points True False (*) 41. Which of the following would best be represented by an arc? Mark for Review (1) Points TEACHER (Female. All ERD‟s must have at least one Arc. Bob) STUDENT (Grade A student.

. All systems must include functionality to provide logging or journaling in conceptual data models. so you know when to give your employees a holiday. All systems must have an entity called WEEK with a holiday attribute. then End Dates becomes Mandatory. True or False? Mark for Review (1) Points True False (*) Correct 46.Incorrect. you MUST create an End Date attribute and it must be mandatory. Incorrect. True or False? Mark for Review (1) Points True False (*) Correct 44. Refer to Section 9 Lesson 2. Section 9 43. End Date must be before the Start Date. Dates must be stored with Time. For each Start Date attribute you create. (*) EMPLOYEE periods can overlap causing the database to crash. Refer to Section 7 Lesson 2. True or False? Mark for Review (1) Points True False (*) Correct 45. Which of the following is a logical constraint that could result from considering 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. If a system includes the concept of time and it stores Start Dates.

True or False? Mark for Review (1) Points True False (*) Correct 49. Refer to Section 10 Lesson 2. True or False? Mark for Review (1) Points True False (*) Incorrect. Generic models are generally far more complex than a specific model. All datamodels must be transformed from specific to generic. There are formal rules for how to draw ERD‟s. even though they are only guidelines. 50. True or False? Mark for Review (1) Points True (*) False Incorrect. Oracle Database Software provides which of the following functionality? (Choose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) . 48. There is no point in trying to group your entities together on your diagram according to volume. Making a diagram pretty is a waste of time.Section 10 47. Refer to Section 11 Lesson 1. you should always try to follow them. True or False? Mark for Review (1) Points True False (*) Section 1 1.

Internet Browser Server (*) Operating System Correct 2. The market for IT professionals is still increasing and will continue to do so in the future, as the world gets ever more dependent on computer systems. True or False? Mark for Review (1) Points True (*) False Correct 3. 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. Incorrect. Refer to Section 1 Lesson 2. 4. Entities are transformed into Tables during the Database Design process. True or False? Mark for Review (1) Points True (*) False Correct Section 2 5. 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 (*) Correct 6. An entity can have many Unique Identifiers. True or False? Mark for Review (1) Points True (*) False Incorrect. Refer to Section 2 Lesson 2. 7. All of the following could be attributes of an ENTITY called PERSON except one. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct 8. 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. (*) They must be mandatory to be created in the database. They can be either mandatory or optional. (*) They must exist between two different Entities. Correct 9. 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 10. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Correct Section 2 11. Documenting Business Requirements helps developers control the scope of the systems, so users do not suddenly want the new system to contain twice as much functionality. True or False? Mark for Review (1) Points True (*) False Correct Section 3 12. When reading a relationship between 2 entities, the relationship is read both from left to right and right to left. True or False? Mark for Review (1) Points True (*) False Correct 13. Relationship Names are optional. True or False? Mark for Review (1) Points True False (*)

You can only create relationships to a Supertype.Correct 14. True or False? Mark for Review (1) Points True False (*) Incorrect. Section 4 17. True or False? Mark for Review (1) Points True False (*) Correct 16. True or False? Mark for Review (1) Points True False (*) Correct 18. A Supertype can have only one subtype. A Matrix Diagram should be developed by your users. True or False? Mark for Review (1) Points True (*) False Correct 15. 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 (*) . Refer to Section 3 Lesson 4. not to a Subtype. Relationships represents something of significance to the business.

Subtypes must be mutually exclusive. True or False? Mark for Review (1) Points True False (*) Correct 22. Correct Section 4 21.Correct 19. Subtype entities may not have relationships to the other subtype entities. 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. Which of the following is true about subtypes? Mark for Review (1) Points One instance may belong to two subtypes of the same supertype. only the supertype itself. True or False? Mark for Review (1) Points True (*) False Incorrect. A supertype can only have two subtypes and no more. . Refer to Section 4 Lesson 2. Business rules are important to data modelers. (*) Subtypes must not be mutually exclusive.

True or False? Mark for Review (1) Points True False (*) Correct 24. not optional.Section 5 23. Transferable relationships can only be mandatory. Many to many relationships must be left in the Model. 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 (*) . Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable Correct 25. A relationship from an entity back to itself is called a ___________ relationship. Relationships can be Redundant. True or False? Mark for Review (1) Points True False (*) Correct 26. It is important to have them documented as M-M. True or False? Mark for Review (1) Points True (*) False Correct 27.

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 28. True or False? Mark for Review (1) Points True (*) False Correct 29. 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 (*) . no new entities are created. 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 Section 6 31. Intersection Entities often have the relationships participating in the UID. Normalizing an Entity to 1st Normal Form is done by removing repeated or redundant attributes. True or False? Mark for Review (1) Points True False (*) Correct 30. so the relationships are often barred.

A relationship can be both Recursive and Hierachal at the same time. True or False? Mark for Review (1) Points . 35. No commercial database systems in the world will accept tables that are not on 3rd Normal Form. 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. All entities must be given a new artificial UID. Refer to Section 6 Lesson 1. True or False? Mark for Review (1) Points True False (*) Incorrect. Refer to Section 6 Lesson 4. 33. True or False? Mark for Review (1) Points True (*) False Correct Section 7 36.False Correct 32. True or False? Mark for Review (1) Points True False (*) Incorrect. There is no limit to how may UID‟s an entity can have.

Arcs are Mandatory in Data modeling. All ERD‟s must have at least one Arc. True or False? Mark for Review (1) Points True False (*) Correct 39. All relationships participating in an arc must be mandatory. independent of their datatype Mandatory in data modeling Always comprised of numbers Correct 40. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have. True or False? Mark for Review (1) Points True False (*) Incorrect. Modeling historical data can produce a unique identifier that always excludes dates. True or False? Mark for Review (1) Points True False (*) Correct 38. Refer to Section 7 Lesson .True False (*) Correct 37. but is not mandatory (*) Useful as an alternative means of identifying instances of an entity.

Correct . which holds prices against week days. where the price of postage is dependent on what day of the week goods are shipped. 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 Sunday. Which of the following would best be represented by an arc? Mark for Review (1) Points TEACHER (Female. print out the current prices when they change and 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. Update the prices in the system. Bob) STUDENT (Grade A student. Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Correct 42. Average Student) Correct Section 9 43. Office) (*) PARENT (Girl. and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. Arcs are used to visually represent _________ between two or more relationships in an ERD.Section 7 41. Bob) DELIVERY ADDRESS (Home. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity.

(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. you MUST create an End Date attribute and it must be mandatory. Which of the following statements are true for ERD‟s to enhance their readability. All systems must include functionality to provide logging or journaling in conceptual data models. If a system includes the concept of time and it stores Start Dates. Modeling historical data is Optional. (*) .44. then End Dates becomes Mandatory. For each Start Date attribute you create. True or False? Mark for Review (1) Points True (*) False Correct 46. even though they are only guidelines. True or False? Mark for Review (1) Points True (*) False Correct 48. True or False? Mark for Review (1) Points True False (*) Correct Section 10 47. True or False? Mark for Review (1) Points True False (*) Correct 45. This way you end up with more than one ERD. There are formal rules for how to draw ERD‟s. you should always try to follow them. that together documents the entire system.

True or False? Mark for Review (1) Points True False (*) Correct Section 1 Lesson 1 (Answer all questions in this section) 1. big diagram. It will have a database with transaction details of which student borrows which books. even if you have hundreds Correct 49. The generic entities MUST be drawn on a diagram of their own.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. All datamodels must be transformed from specific to generic. True or False? Mark for Review (1) Points True False (*) Correct 50. Consider your school library. True or False? Mark for Review (1) Points True (*) False Section 1 Lesson 2 (Answer all questions in this section) 2. The market for IT professionals is still increasing and will continue to do so in the future. as the world gets ever more dependent on computer systems. A datamodel containing generic modeling techniques must not be mixed in with nongeneric models. Is a record of one student borrowing one book Data or Information? Mark for Review (1) Points Data (*) .

Information Both Neither 3. 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. Section 1 Lesson 3 (Answer all questions in this section) 4. Databases are used in most countries and by most governments. Life, as we know it, would change drastically if we no longer had access to databases. True or False? Mark for Review (1) Points True (*) False Section 1 Lesson 4 (Answer all questions in this section) 5. Oracle Database Software provides which of the following functionality? (Choose two) Mark for Review (1) Points (Choose all correct answers) Graphical User Interface (*) Internet Browser Server (*) Operating Systems 6. 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. In a physical data model, a relationship is represented as a? Mark for Review (1) Points Column Row Instance Foreign Key (*) 8. All of the following are examples of ENTITY: Instance except two. Select the answers that are ENTITY: Instance. (Choose Two) Mark for Review (1) Points (Choose all correct answers) TRANSPORTATION METHOD: Car (*) ANIMAL: Dog (*) MEAT PRODUCT: Lettuce BODY PART: Larry Ellison 9. Relationship names are usually verbs. True or False? Mark for Review (1) Points True (*) False 10. 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. Primary Unique Identifiers… (Choose Two) Mark for Review (1) Points (Choose all correct answers) Are Required. The data model is not complete until all entities have a Primary UID. (*) 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. The entity/relationship model is created before the physical database design model. True or False? Mark for Review (1) Points True (*) False 13. An entity can have many Unique Identifiers. True or False? Mark for Review (1) Points True (*) False Section 3 Lesson 1 (Answer all questions in this section) 14. Relationship Names are optional. True or False? Mark for Review (1) Points True False (*) 15. Which of the following are valid relationship degrees? (Choose two) Mark for Review (1) Points (Choose all correct answers) 1:1 (*) 1:M (*)

Entity Boxes are drawn with 90 degree angles. True or False? Mark for Review (1) Points True (*) False Section 3 Lesson 3 (Answer all questions in this section) 18.1:O O:O Section 3 Lesson 2 (Answer all questions in this section) 16. When reading an ERD including Relationships you are said to be speaking: Mark for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Section 4 Lesson 1 (Answer all questions in this section) 19. the # symbol goes in front of it. 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 (*) . also known as Hard Boxes. To identify an attribute as part of a unique identifier on an ER diagram. True or False? Mark for Review (1) Points True False (*) 17.

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

Why is it important to identify and document structural rules? Mark for Review (1) Points Ensures we know what data to store and how that data works together. (*) Ensures nothing. A business rule such as “We only ship goods after customers have completely paid any outstanding balances on their account” is best enforced by: Mark for Review (1) Points Making the payment attribute null. and we know they will pay some day. True or False? Mark for Review (1) Points True (*) False . A new system would have a mixture of both Procedural and Structural Business Rules as part of the documentation of that new system. A Diamond on a relationship indicates the Relationship as Non-Tranferrable.A structural business rule An attribute that is not be inherited from the PERSON supertype and is unique to the TEACHER subtype 25. Making the payment attribute optional. (*) 26. True or False? Mark for Review (1) Points True (*) False 27. We need to trust our customers. Ensures we know what Information to store and how that Information works together. All of the Above. There is no benefits to be gained from documenting your Structural Business Rules. We need to concentrate on the Procedural Business Rules only. Hiring a programmer to create additional programming code to verify no goods are shipped until the account has been settled in full. Section 5 Lesson 1 (Answer all questions in this section) 28.

True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 31. 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. True or False? Mark for Review (1) Points . True or False? Mark for Review (1) Points True False (*) Section 6 Lesson 1 (Answer all questions in this section) 33. Many to many relationships must be left in the Model. It is important to have them documented as M-M.Section 5 Lesson 2 (Answer all questions in this section) 29. 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. Relationships can be Redundant. 30. All entities must be given a new artificial UID.

True False (*) Section 6 Lesson 2 (Answer all questions in this section) 34. True or False? Mark for Review (1) Points True (*) False . (*) When no attritibutes are mutually independant and fully independent on the primary key. 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 another non-UID attribute). Section 7 Lesson 1 (Answer all questions in this section) 36. 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. An entity without repeated values is said to be on 1st Normal Form. None of the Above. True or False? Mark for Review (1) Points True (*) False Section 6 Lesson 3 (Answer all questions in this section) 35.

True or False? Mark for Review (1) Points True False (*) 39. 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. 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 . All relationships participating in an arc must be mandatory. No parts of a UID are mandatory. An arc can be modelled as Supertype and Subtypes.37. True or False? Mark for Review (1) Points True (*) False 38. True or False? Mark for Review (1) Points True False (*) Section 7 Lesson 2 (Answer all questions in this section) 41.

Database Design projects must use Consultants or they will fail. Which of the following are NOT valid techniques for effective public speaking? (Choose Two) Mark for Review (1) Points (Choose all correct answers) Whispering (*) Using specialist language and technical abbreviations when communicating technical information (*) Being enthusiastic All of the Above Section 10 Lesson 1 (Answer all questions in this section) 45. so you know when to give your employees a holiday. All systems must have an entity called WEEK with a holiday attribute. Historical data must never be kept.Section 7 Lesson 3 (Answer all questions in this section) 42. True or False? 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 (*) . True or False? Mark for Review (1) Points True False (*) Section 8 Lesson 1 (Answer all questions in this section) 43.

and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. Modeling historical data is Optional.46. then End Dates becomes Mandatory. (*) EMPLOYEE periods can overlap causing the database to crash. True or False? Mark for Review (1) Points True (*) False Section 10 Lesson 2 (Answer all questions in this section) 49. you MUST create an End Date attribute and it must be mandatory. When you add the concept of time to your data model. your model becomes more complex. If a system includes the concept of time. where the price of postage is dependant on what day of the week goods are shipped. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or Sunday. 50. What would be the best way to model this? Mark for Review (1) Points Use a Delivery Day entity. True or False? Mark for Review (1) Points True (*) False 47. Dates must be stored with Time. Which of the following is a logical constraint. For each Start Date attribute you create. and it stores Start Dates. True or False? Mark for Review (1) Points True False (*) 48. (*) Email current price to all employees whenever the prices change. . which holds prices against week days. that could result from considering 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. End Date must be before the Start Date. You are doing a data model for a computer sales company.

SQL and PL/SQL (*) Systems programming and computer architecture Section 1 Lesson 2 (Answer all questions in this section) 2. Consider your school library. The main subject areas taught by the Oracle Academy are: Mark for Review (1) Points Computer Repairs Database performance tuning. Data Modeling. 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. 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. 222222222222222222222222222222222222222222222222222222222222222222222222222 2222222222222222222222222222222222222222222222 Section 1 Lesson 1 (Answer all questions in this section) 1. Section 1 Lesson 3 (Answer all questions in this section) .Update the prices in the system. It will have a database with transaction details of which student borrows which books. print out the current prices when they change and pin them on the company noticeboard Allow them to enter whatever delivery charge they want.

(Choose Two) Mark for Review (1) Points (Choose all correct answers) . 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. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) 8. All of the following are examples of ENTITY: Instance except two.4. Databases perform these functions…. Select the answers that are ENTITY: Instance. All of the following could be attributes of an ENTITY called PERSON except one. Databases were invented in 1989. Entities are transformed into Tables during the Database Design process? True or False? Mark for Review (1) Points True (*) False Section 1 Lesson 4 (Answer all questions in this section) 5. True or False? Mark for Review (1) Points True False (*) 6.

True or False? Mark for Review (1) Points True (*) False . Primary Unique Identifiers… (Choose Two) Mark for Review (1) Points (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. 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. Volatile entities have special requirements and need special attention when you are doing data modelling. The data model is not complete until all entities have a Primary UID.TRANSPORTATION METHOD: Car (*) ANIMAL: Dog (*) MEAT PRODUCT: Lettuce BODY PART: Larry Ellison 9. A/an _________ is a picture of all the information that will form the basis for the finished system. 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. (*) They Must be Mandatory to be created in the database. (*) Section 3 Lesson 2 (Answer all questions in this section) 16. Relationship Names are optional. (Choose Two) Mark for Review (1) Points (Choose all correct answers) Each FOOD TYPE must be suitable for one or more ANIMALs. (*) Each ANIMAL must be the seller of one or more FOOD TYPES. Each FOOD TYPE may be made from one or more ANIMALs. horse or cat). True or False? Mark for Review (1) Points True False (*) 15. and they all go in the Top Left Hand Corner of the paper. Entity names are always singular. In a business that sells pet food choose the best relationship name between FOOD TYPE and ANIMAL (e. They can be either mandatory or optional.g.13. Each FOOD TYPE may be given to one or more ANIMALs. dog. True or False? Mark for Review (1) Points True (*) False 17. Section 3 Lesson 1 (Answer all questions in this section) 14. True or False? Mark for Review (1) Points . (*) They must exist between two different Entities. All the Attributes in a system are just written on the ERD.

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 (*) Section 4 Lesson 1 (Answer all questions in this section) 21. When reading an ERD including Relationships you are said to be speaking: Mark for Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Section 4 Lesson 1 (Answer all questions in this section) 19. True or False? Mark for Review (1) Points True (*) False 20.True False (*) Section 3 Lesson 3 (Answer all questions in this section) 18. All instances of the supertype must be an instance of one of the subtypes. All instances of a subtypes may be an instance of the supertype but does not have to. True or False? Mark for Review (1) Points .

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. A new system would have a mixture of both Procedural and Structural Business Rules as part of the documentation of that new system. in which case you should let the database administrator handle them No.True False (*) 22. so you should list them on a separate document to be handled programmatically (*) 25. Why is it important to identify and document structural rules? Mark for Review (1) Points Ensures we know what data to store and how that data works together. Can all constraints be modeled on an ER diagram? Mark for Review (1) Points No. True or False? Mark for Review (1) Points True (*) False 26. but you just explain them to the users so they can enforce them Yes. all constraints must be modeled and shown on the ER diagram No. (*) . A supertype can only have two subtypes and no more. True or False? Mark for Review (1) Points True False (*) 23.

There is no benefits to be gained from documenting your Structural Business Rules.Ensures nothing. All of the Above. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) . Relationships can be Redundant. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 2 (Answer all questions in this section) 29. We need to concentrate on the Procedural Business Rules only. Business rules are important to data modelers. 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 (*) 30. Ensures we know what Information to store and how that Information works together. 27. True or False? Mark for Review (1) Points True (*) False Section 5 Lesson 1 (Answer all questions in this section) 28. A Diamond on a relationship indicates the Relationship as Non-Tranferrable.

these relationships can 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. Mark for Review (1) Points Normality Reduction Normalization (*) Multiplication . All entities must be given a new artificial UID. the database conforms to the rules of ___________. If two entities have two relationships between them.31. When data is stored in one place in a database. 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 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 32.

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. True or False? Mark for Review (1) Points True (*) False 38. Bob) . 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 another non-UID attribute).Section 6 Lesson 3 (Answer all questions in this section) 35. Which of the following would best be represented by an arc? Mark for Review (1) Points TEACHER (Female. 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 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.

True or False? Mark for Review (1) Points True False (*) Section 7 Lesson 3 (Answer all questions in this section) 42.DELIVERY ADDRESS ( Home. Mark for Review (1) Points Sameness Differencies Exclusivity (*) An Arc is what Noah sailed on with all the animals. If Audit trail attributes are added to an entity they must be in the entities they are auditing. Arcs are used to visually represent _________ between two or more relationships in an ERD. True or False? Mark for Review (1) Points True False (*) Section 7 Lesson 2 (Answer all questions in this section) 41. Office) (*) PARENT (Girl. Average Student) 39. A relationship can be both Recursive and Hierarchal at the same time. No parts of a UID are mandatory. 40. True or False? Mark for Review (1) Points True (*) False Section 8 Lesson 1 (Answer all questions in this section) . Bob) STUDENT (Grade A student.

and it stores Start Dates. True or False? Mark for Review (1) Points True (*) False Section 10 Lesson 1 (Answer all questions in this section) 45. Your apperance at a presentation is important. True or False? Mark for Review (1) Points True False (*) 47. For each Start Date attribute you create. . Modeling historical data is Optional. 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. You need to look smart and presentable. you MUST create an End Date attribute and it must be mandatory. Database Design projects must use Consultants or they will fail.43. True or False? Mark for Review (1) Points True (*) False 48. If a system includes the concept of time. True or False? Mark for Review (1) Points True False (*) 46. There is only one way to model time in a Data Model. then End Dates becomes Mandatory. True or False? Mark for Review (1) Points True False (*) Section 8 Lesson 2 (Answer all questions in this section) 44.

Users never know what they want anyway. 2. Once you have learned how to write programs and build systems. Business requirements can and will change.Raw Materials . (*) You would not want to model this. even if leadership changes over time. (*) If you are doing a system for any French City. Information which was gained from data is the same as: (Choose Two) .Knowledge (*) . . True or False? Mark for Review (1) Points True False (*) 50. All systems must include functionality to provide logging or journaling in conceptual data models.There is no difference between data and information .True. as you are perfectly capable of delivering the systems the business needs and wants. All users do is delay systems delivery with their forever changing minds and new requirements.Cites may change their name and/or which country they are placed in. All that perfect systems need are correct programs. you need to know the time of purchase (*) 1. it is not important.True. For instance new legal requirements may arise. (*) . To allow the sales people to determine when the shared were bought and therefore at what price. if the borders of a country change. .Intelligence (*) . The price of shares fluctuates and for determining price. e. you no longer need any input or involvement from any users. you would need security clearance You need a constant record of cities because they are still cities. . Why would you want to model a time component when designing a system that lets people buy shares via the Internet? (Choose Two) Mark for Review (1) Points (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. they get a new Mayor Section 10 Lesson 2 (Answer all questions in this section) 49.g.True.False. so building systems are best left to the professionals.

. Relationship names are usually verbs. True or False? . (*) .Graphical User Interface . Why? .It clarifies what a business wants to accomplish.False 10. Consider your school library. True or False? . An entity can have many Unique Identifiers.Internet Browser .It allows application development to be conducted without having to consider database design. True or False? . An entity is instantiated as a ? . We can just start coding straight away .instance .table (*) .False 12.Weight .It keeps businesses honest 5. The first step in system development is to document the requirements.Wrong. All of the following could be attributes of an ENTITY called PERSON except one. Is details of the total number of books out on loan in one given month Data or Information? .Information (*) .Both .Data . The entity/relationship model is created before the physical database design model. Date Built (*) . Select the incorrect one: . True or False? . A blueprint for the database design is not needed. Address.experience .True (*) .Gender . It will have a database with transaction details of which student borrows which books. Which of the following entities most likely contains valid attributes? . True or False? . and provides measures for deciding if the system delivers all that is required.Natacha Hansen (*) 11.Haircolor . Attributes: Number of Bedrooms.False 13.True (*) .3.False 9. Databases were invented in 1989. Oracle Database Software do not provide or does not comprise of which functionality? .False (*) 6.True . Volatile entities have special requirements and need special attention when you are doing data modelling.Operating System (*) 7.Server .True (*) .True (*) .Entity: Home.Neither 4.none of the above 8. Owner.

True . 22.Entity: Pet. True or False? .ANIMAL (*) .False 19.At least one supertype and subtype 20. All ER diagrams must have one of each of the following: . Birthdate.Pigs Ear . Attributes: Owner Occupation.DOG (*) 21.. only the supertype itself.False 23.1:O .True .One instance may belong to two subtypes of the same supertype. Owner Salary.False (*) 15. .# .One or more Entities (*) . Which of the following are suitable Entity names? (Choose Two) . True or False? . Birthdate.Crows Foot (*) 18. All instances of the subtypes can be an instance of the supertype but do not have to.ANIMALS .1:M (*) . (*) .Crows Ear .O .True (*) .True (*) . When reading a relationship between 2 entities. Owner (*) .Relationships between entities (*) . Relationship Names are optional.O:O 16. Speed . True or False? . The many end of a Relationship is called: .Subtypes must not be mutually exclusive.& 17. True or False? .Subtype entities may not have relationships to the other subtype entities. Occupation.Gulls Foot . Attributes: Name.Arcs .DOGS .False (*) 24. the relationship is read both from left to right and right to left.1:1 (*) .* (*) .Entity: Car. Which of the following is true about subtypes? . How would you model a business rule that states that girls and boys may not attend classes together? . Which of the following are valid relationship degrees . All instances of the supertype must be an instance of one of the subtypes. Salary 14.Subtypes must be mutually exclusive. .Entity: Mother. Which symbol is used to show that a particular attribute is mandatory? . Attributes: Name.

.You cannot model that. .False (*) 33.Redundant or Required (In which case they would depict different relationships) (*) . the secondary one.Many to Many Mandatory 31. the second is called Secondary UID and so on. (*) ..Yes. in which case you should let the database administrator handle them . 32.Use two subtypes with relationships from class to student gender (*) .False (*) 27.Resourced and Really Good . You need to document it. but you just explain them to the users so they can enforce them .Yes. If two entities have two relationships between them.One to Many Optional . True or False? .True (*) .Ensures we know what data to store and how that data interrelate.By barring the relationship in question (*) .Use a supertype . There is no benefits to be gained from documenting your Structural Business Rules.Make the attribute Gender mandatory .Replicated or Required (In which case they would depict different relationships) . Can all constraints be modeled on an ER diagram? . .Redundant and Replicated 30. No entities can have more than two UID‟s. A non-transferable relationship means the detail cannot be changed to point to a new master. (*) . 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 only one DNA SAMPLE” . We need to concentrate on the Procedural Business Rules only.True . True or False? . The first UID for an entity is called the Primary UID.Ensures we know what Information to store and how that Information interrelate. It is important to have them documented as M-M.By reporting it in an external document . each Entity can only have one UID. 25.You cannot model this.No. so you should list them on a separate document to be handled programmatically (*) 26.No.Yes. this is the way UID‟s are named. 28.One to Many Mandatory .One to One Optional (*) .All of the Above. True or False? .No.No. Many to many relationships must be left in the Model.No. but then it stops. . it is not possible to have more than one UID for an Entity. . How do you include a relationship as part of the UID for an entity? .By including the UID from the parent entity as an attribute in the entity . Why is it important to identify and document structural rules? .Ensures nothing. these relationships can be either _____________ or _____________ ? (Choose Two) .True . Business rules are not important to data modelers.False 29. all constraints must be modeled and shown on the ER diagram . .

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

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

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

3. (*) The ROUND number function rounds a value to a specified decimal place or the nearest whole number. -1. SELECT SUBSTR(product_id. 3. (*) The CONCAT function can only be used on character strings. The PRICE table contains this data: PRODUCT_ID MANUFACTURER_ID 86950 59604 You query the database and return the value 95. 3) FROM price WHERE manufacturer_id = 59604. (*) SELECT LENGTH(product_id. (*) Correct 7. Which SQL function can be used to remove heading or trailing characters (or both) from a character string? s . -3. 2) FROM price WHERE manufacturer_id = 59604.COUNT SUBSTR Correct 5. not on numbers. SELECT TRIM(product_id. 2) FROM price WHERE manufacturer_id = 59604. Correct 6. The SUBSTR character function returns a portion of a string beginning at a defined character position to a specified length. Which three statements about functions are true? (Choose three. Which script did you use? SELECT SUBSTR(product_id.) (Choose all correct answers) The SYSDATE function returns the Oracle Server date and time. 2) FROM price WHERE manufacturer_id = 59604.

367. You issue this SQL statement: SELECT ROUND (1282. -2) FROM dual.3 Correct 10. What value does this statement produce? 1200 . You issue this SQL statement: SELECT TRUNC(751.248.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 9. Which value does this statement display? 700 750 (*) 751 751.-1) FROM dual.

Which of the following SQL statements will correctly display the last name and the number of weeks employed for all employees in department 90? SELECT last_name.25 1300 (*) Correct Section 1 Lesson 3 (Answer all questions in this section) 11. .1282 1282. (SYSDATE-hire_date)/7 AS WEEKS FROM employees WHERE department_id = 90. (*) SELECT last name. You need to display the number of months between today‟s date and each employee‟s hiredate. Which of the following Date Functions will add calendar months to a date? Months + Calendar (Month) ADD_MONTHS (*) MONTHS + Date NEXT_MONTH Correct 12. Which function should you use? ROUND BETWEEN ADD_MONTHS MONTHS_BETWEEN (*) Correct 13. (SYSDATE-hire_date)/7 DISPLAY WEEKS FROM employees WHERE department id = 90.

Which SELECT statement will NOT return a date value? SELECT (30 + hire_date) + 1440/24 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 FROM employee. (SYSDATE-hire_date)AS WEEK FROM employees WHERE department_id = 90. (*) SELECT SYSDATE – TO_DATE(‟25-JUN-02′) + hire_date FROM employees. # of WEEKS FROM employees WHERE department_id = 90. Correct 15. SELECT (hire_date – SYSDATE) + TO_DATE(‟25-JUN-02′) FROM employees.SELECT last_name. The values returned by this SELECT statement will be of which data type? DATE (*) NUMBER DATETIME INTEGER Incorrect. SELECT (SYSDATE – hire_date) + 10*8 FROM employees. SELECT last_name. Correct 14. Refer to Section 1 Section 2 Lesson 1 .

13 April. Single row functions can be nested. Incorrect. „Month DD‟. dy month. total FROM customers NATURAL JOIN orders WHERE total >= 2500.500. Year format (For example. 2000 Which SELECT statement could you use? Mark for Review (1) Points SELECT TO_CHAR(hire_date. Date Month. Refer to Section 2 18.(Answer all questions in this section) 16. „ YYYY‟) FROM employees. SELECT TO_CHAR(hire_date. „fmdd. Single row functions cannot modify a data type. yyyy‟). Which statement concerning single row functions is true? Single row functions can accept only one argument. . Which statement should you issue? SELECT companyname. YYYY) FROM employees. SELECT TO_CHAR(hire_date. „ YYYY‟) FROM employees. 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. „Month DD. YYYY‟) FROM employees. The report‟s date should be displayed in the Day. 2004 ). Correct 17. You have been asked to create a report that lists all customers who have placed orders of at least $2. (*) SELECT hire_date(TO_CHAR „Month DD‟. TO_CHAR (sysdate. (*) Single row functions return one or more results per row. but can return multiple values. Tuesday.

dy month. Not all date functions return date values. „day. (*) Correct 19. yyyy‟). yyyy‟). TO_DATE (sysdate. You have been asked to create a report that displays each employee‟s name and salary.SELECT companyname. total FROM customers NATURAL JOIN orders WHERE total >= 2500. Refer to Section 2 20. Conversion functions convert a value from one data type to another data type. total FROM customers NATURAL JOIN orders WHERE total >= 2500. Which two statements concerning SQL functions are true? (Choose two.000. Each employee‟s salary must be displayed in the following format: $000. (*) Number functions can return number or character values. dd Month.00. TO_CHAR (sysdate. „dd. TO_DATE (date. Which function should 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) . Incorrect. total FROM customers NATURAL JOIN orders WHERE total >= 2500. SELECT companyname.) (Choose all correct answers) Character functions can accept numeric input. (*) Single-row functions manipulate groups of rows to return one result per group of rows. dd month. „fmDay. SELECT companyname. yyyy‟). All Human Resources data is stored in a table named EMPLOYEES.

NVL (housing_balance).00 968950 SANDAL 85909 10.00 758960 SANDAL 86979 Evaluate this SELECT statement: SELECT style_id.00 968950 SANDAL 85909 10. tuition_balance + housing_balance “Balance Due” FROM student_accounts.00 895840 SANDAL 85940 12. (*) SELECT NVL(tuition_balance. cost FROM styles WHERE style_name LIKE „SANDAL‟ AND NVL(cost.00 968950 SANDAL 85909 10. style_name. 0) < 15.00 890890 LOAFER 89789 14.00 STYLE_ID STYLE_NAME CATEGORY 968950 SANDAL 85909 10.00 ORDER BY category. 0).00 968950 SANDAL 85909 10. which statement displays a zero if the TUITION_BALANCE value is zero and the HOUSING_BALANCE value is null? SELECT NVL (tuition_balance + housing_balance.00 857689 HEEL 85940 11. category.00 758960 SANDAL 86979 STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85909 12.00 758960 SANDAL 86979 869506 SANDAL 89690 15. 0) “Balance Due” FROM student_accounts. The STYLES table contains this data: STYLE_ID STYLE_NAME CATEGORY COST 895840 SANDAL 85940 12. Which result will the query provide? STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85940 12.00 809090 LOAFER 89098 10.00 758960 SANDAL 86979 STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85909 12. cost. .00 869506 SANDAL 89690 15.22.00 758960 SANDAL 86979 COST COST COST COST Correct 23.00 869506 SANDAL 89690 15. When executed.

amount FROM customers c. Which of the following statements should you issue? Mark for Review (1) Points SELECT c.custid ORDER BY companyname.companyname. tutition_balance + housing_balance “Balance Due” FROM student_accounts. c.custid.custid ORDER BY amount DESC.custid = o. o. 0).custid ORDER BY companyname.custid = o. SELECT c. (*) SELECT c. o. You need to replace null values in the DEPT_ID column with the text “N/A”. and their corresponding order totals should be sorted from the highest amount to the lowest amount. The customers should be listed alphabetically beginning with the letter „A‟. o. . TO_NUMBER (housing_balance. o. amount DESC. o.orderdate. orders o WHERE c. orders o WHERE c. custid. c.orderdate.amount FROM customers c.orderdate. 0). Which functions 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) 25. custid. o. You have been asked to create a report that lists all corporate customers and all orders that they have placed. custid.companyname. o. amount.custid.custid. orders o WHERE c.custid = o. o. SELECT TO_NUMBER(tuition_balance.SELECT tuition_balance + housing_balance FROM student_accounts. companyname. o.amount FROM customers c. Correct 24. c.companyname.

custid.emp_id = b. What is produced when a join condition is not specified in a multiple-table query? a self-join an outer join . bonus_pct FROM employees e.emp_id. custid.lname.orderdate.companyname. The EMPLOYEES 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. Your company stores its business information in an Oracle9i database. o. bonus_pct FROM employees e. c.annual_salary * b. 2) EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY You want to determine the amount of each employee‟s bonus.fname.annual_salary.lname. o. bonus b WHERE e. Incorrect.custid ORDER BY companyname ASC.emp_id = b.annual_salary. b. e. annual_salary * bonus_pct FROM employees. (*) SELECT e. SELECT fname. orders o WHERE c.emp_id = b. bonus WHERE e. bonus NATURAL JOIN. o.amount Q FROM customers c. b.fname.lname.emp_id.fname. e. bonus_pct FROM employees. lname. bonus b WHERE e. b.emp_id. Correct 26. amount ASC. b. Which of the following queries should you issue? SELECT e. b. Refer to Section 3 27.custid = o. SELECT e.SELECT c. e.

c.total_sales FROM customers c.cust_id.total_sales FROM customers c.cust_id (+). sales WHERE cust_id = cust_id.cust_id = s. Correct 29.cust_id = s.cust_id. total_sales FROM customers. sales s WHERE c. The FROM clause represents the join criteria.company.company. The JOIN keyword must be included. (*) SELECT cust_id. s. total_sales FROM customers c. s. sales s WHERE c. the company and the total sales? SELECT c. company. company.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.cust_id = s. Which statement about the join syntax of a SELECT statement is true? The ON keyword must be included. The WHERE clause represents the join criteria. SELECT c. (*) Correct . sales s WHERE c. SELECT cust_id.cust_id.an equijoin a Cartesian product (*) Correct 28. c.

Correct 32. RIGHT. When joining 3 tables in a SELECT statement. Which statement about outer joins is true? (1) Points The tables must be aliased. The OR operator cannot be used to link outer join conditions. (*) Outer joins are always evaluated before other types of joins in the query.30. The FULL. Which operator would you use after one of the column names in the WHERE clause when Mark for Review . 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… and IN IN and = Incorrect. Refer to Section 3 33. 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. or LEFT keyword must be included.

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. You need to join two tables that have two columns with the same name and compatible data types. Which type of join would you create to join the tables on both of the columns? Mark for Review (1) Points Natural join (*) Cross join Outer join Self-join Correct 36. datatypes 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. Which of the following conditions will cause an error on a NATURAL JOIN? Mark for .creating an outer join? (1) Points (+) (*) * + = Correct Section 4 Lesson 2 Mark for Review (Answer all questions in this section) 34.

Refer to Section 4 38. If it selects rows from the two tables that have equal values in all matched columns. b.fname as “Patient”. (*) Correct Section 4 Lesson 3 (Answer all questions in this section) 37. „ || b. Evaluate this SELECT statement: SELECT a. Which SELECT clause creates an equijoin by specifying a column name common to both tables? Mark for Review (1) Points A HAVING clause The FROM clause The SELECT clause A USING clause (*) Incorrect. .lname || „.lname || „. If the columns having the same names have different data types.fname as “Physician”. „ || a. 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. When the NATURAL JOIN clause is based on all columns in the two tables that have the same name. then an error is returned.Review (1) Points When you attempt to write it as an equijoin.

2) SALES_ORDER ORDER_ID NUMBER NOT NULL.admission FROM patient a JOIN physician b ON (b.c.patient_id).physician_id). Refer to Section 4 40. Which clause generates an error? Mark for Review (1) Points JOIN physician b ON (b. Below find the structure of the CUSTOMERS and SALES_ORDER tables: CUSTOMERS CUSTOMER_ID NUMBER NOT NULL. Which statement could you use? Mark for Review (1) Points SELECT c. (*) . JOIN admission c ON (a.patient_id = c.physician_id).physician_id = 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.customer_id not in (SELECT s.customer_id FROM sales_order s).physician_id = c.patient_id = c.patient_id) Incorrect. Primary Key CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table ORDER_DT DATE ORDER_AMT NUMBER (7.customer_name FROM customers c WHERE c. (*) JOIN admission c ON (a.2) SHIP_METHOD VARCHAR2 (5) You need to create a report that displays customers without a sales order.

Refer to Section 4 Section 4 Lesson 4 (Answer all questions in this section) 41. The EMPLOYEE_HIST table will be the first table in the FROM clause.customer_name FROM customers c RIGHT OUTER JOIN sales_order s ON (c. Incorrect. You need to join the EMPLOYEE_HIST and EMPLOYEE tables.customer_id = s.customer_id = s. sales_order s WHERE c. All the matched and unmatched rows in the EMPLOYEE table need to be displayed. sales_order s WHERE c. SELECT c.customer_name FROM customers c.customer_id(+).customer_id.customer_name FROM customers c.customer_id (+) = s. SELECT c. Which two sets of join keywords create a join that will include unmatched rows from 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 .customer_id). 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.SELECT c.

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. If a select list contains both a column as well as a group function then what clause is required? Mark for Review (1) Points having clause join clause order by clause group by clause (*) Correct Mark for Review . Incorrect. Refer to Section 5 45.43. Group functions can be nested to a depth of? (1) Points three four two (*) Group functions cannot be nested.

VARIANCE. COUNT(*) FROM employees GROUP BY job_id. What will the following SQL Statement do? SELECT job_id. and STDDEV functions can be used with which of the following? Mark for Review (1) Points Only numeric data types (*) Integers only Any data type All except numeric Correct 47.46. Displays each job id and the number of people assigned to that job id. SUM. Correct . Correct Section 5 Lesson 2 (Answer all questions in this section) 48. (*) Mark for Review Group functions can only be used in a SELECT list. (*) Displays only the number of job_ids. Which statement about group functions is true? (1) Points Group functions ignore null values. The AVG. A query that includes a group function in the SELECT list must include a GROUP BY clause. Group functions can be used in a WHERE clause. Displays all the jobs with as many people as there are jobs. Mark for Review (1) Points Displays all the employees and groups them by job.

The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) SALARY NUMBER(9. LAST_NAME. You need to compute the total salary for all employees in department 10.49. or SALARY columns? (Choose three.2) Which three functions could be used with the HIRE_DATE. 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. Which group function will you use? Mark for Review (1) Points MAX SUM (*) VARIANCE COUNT Correct 50. Which group functions below act on character.) Mark for Review (1) Points .2) HIRE_DATE DATE BONUS NUMBER(7.2) COMM_PCT NUMBER(4.

The average should be calculated based on all the rows in the table excluding any customers who have not yet been assigned a credit limit value. The CUSTOMER table contains these columns: CUSTOMER_ID NUMBER(9) FNAME VARCHAR2(25) LNAME VARCHAR2(30) CREDIT_LIMIT NUMBER (7.2) CATEGORY VARCHAR2(20) You need to calculate the average credit limit for all the customers in each category. 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.(Choose all correct answers) MAX (*) SUM AVG MIN (*) COUNT (*) Correct 52. Which group function should you use to calculate this value? Mark for Review (1) Points AVG (*) SUM COUNT STDDEV .

(*) . The number of rows in the EMPLOYEE table that have a salary greater than 30000. 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. The total of the SALARY column for all employees that have a salary greater than 30000. Which group function would you use to display the highest salary value in the EMPLOYEE table? Mark for Review (1) Points AVG COUNT MAX (*) MIN Correct 55. Which results will the query display? (1) Points Mark for Review The number of employees that have a salary less than 30000.Correct 54.

Correct 58. Group functions can avoid computations involving duplicate values by including which keyword? Mark for Review (1) Points NULL DISTINCT (*) SELECT UNLIKE Correct . An error occurs because no WHERE clause is included in the SELECT statement. (*) The number of unique PRODUCT_IDs in the table is displayed.The query generates an error and returns no results. Evaluate this SELECT statement: SELECT COUNT(*) FROM products. An error occurs due to an error in the SELECT clause. 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. Correct 57. SELECT COUNT FROM products. Which statement is true? Mark for Review (1) Points The number of rows in the table is displayed. (*) SELECT ROWCOUNT FROM products. Correct 59.

Refer to Section 6 Section 6 Lesson 1 (Answer all questions in this section) 61. Which of the following SELECT statements will accomplish this task? Mark for Review (1) Points SELECT emp_id.Section 6 Lesson 1 (Answer all questions in this section) 60.000. date of hire and salary. 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. lname. 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. dept_id FROM employee GROUP BY dept_id. salary FROM employees WHERE salary > 40000 . You only want to include employees who earn more than 15000. salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1). lname. The report should include only those employees who have been with the company for more than one year and whose salary exceeds $40. SELECT emp_id. employee identification number. Evaluate this SELECT statement: SELECT COUNT(emp_id). hire_date.

Refer to Section 6 62. Evaluate this statement: SELECT department_id. lname. Incorrect. Evaluate this SELECT statement: SELECT SUM(salary). SELECT emp_id. Which clauses restricts the result? Choose two. based on a group function? Mark for Review (1) Points HAVING SUM(salary) > 100000 (*) Mark for Review . hire_date. mgr_id. department_id HAVING AVG(salary) > 35000 (*) Correct 63. AVG(salary) FROM employees WHERE job_id <> 69879 GROUP BY job_id. dept_id. mgr_id FROM employee GROUP BY dept_id. salary FROM employees WHERE salary > 40000 AND hire_date IN (sysdate-hire_date) / 365 > 1). (1) Points (Choose all correct answers) SELECT department_id. department_id HAVING AVG(salary) > 35000 ORDER BY department_id. lname. AVG(salary) WHERE job_id <> 69879 (*) GROUP BY job_id.AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1). Which SELECT statement clause allows you to restrict the rows returned. salary FROM employees WHERE salary > 40000 AND (sysdate-hire_date) / 365 > 1. (*) SELECT emp_id.

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

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

.team_id = t. COUNT(p.team_name HAVING COUNT(p.team_name HAVING COUNT(p.WHERE UPPER(p.team_id) WHERE UPPER(p.player_id) > 5. Which comparison operator should you use? Mark for Review (1) Points = > <= >= (*) Correct 69. You need to display all the players whose salaries are greater than or equal to John Brown‟s salary.team_name.player_id) > 5.position) = „PITCHER‟ GROUP BY t. Which statement about subqueries is true? (1) Points Mark for Mark for Review Subqueries should be enclosed in double quotation marks. SELECT t. Which of the following is TRUE regarding the order of subquery execution? 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.position) = „PITCHER‟ GROUP BY t.

You need to display each date that a customer placed an order. You need to display all the orders that were placed on the same day as order number 25950. Refer to Section 6 72. You need to display all the orders that were placed on a certain date. Refer to Section 6 Section 6 Lesson 2 (Answer all questions in this section) 71. Which operator can be used with a multiple-row subquery? (1) Points IN (*) <> = Mark for Review .2) OPEN_DATE DATE ORDER_HISTORY ORDER_ID NUMBER(5) CUSTOMER_ID NUMBER(5) ORDER_DATE DATE TOTAL NUMBER(8. Examine the structures of the CUSTOMER and ORDER_HISTORY tables: CUSTOMER CUSTOMER_ID NUMBER(5) NAME VARCHAR2(25) CREDIT_LIMIT NUMBER(8. Subqueries are often used in a WHERE clause to return values for an unknown conditional value. Incorrect. (*) Subqueries generally execute last.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. after the main or outer query executes.Subqueries cannot contain group functions. (*) Incorrect.

Examine the structure of the EMPLOYEE. 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 . DEPARTMENT. Refer to Section 6 74. and ORDERS tables.LIKE Correct Section 6 Lesson 3 (Answer all questions in this section) 73. 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 was established. Which of the following constructs would you use? Mark for Review (1) Points a group function a single-row subquery (*) the HAVING clause a MERGE statement Incorrect.

However. Which query should you issue to accomplish this task? Mark for Review (1) Points SELECT * FROM employees WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = „Carter‟). SELECT * FROM supervisors WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = „Carter‟).Correct 75. SELECT * FROM employees WHERE supervisor_id = (SELECT employee_id FROM employees WHERE last_name = „Carter‟). first_name FROM customer WHERE area_code IN (SELECT area_code FROM sales WHERE salesperson_id = 20). Evaluate this SELECT statement that includes a subquery: SELECT last_name. 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‟). Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) 76. (*) Incorrect. you are not sure which supervisor ID belongs to Brad Carter.

Which of the following statements contains a comparison operator that is used to restrict rows Mark for Review . Correct 77. Refer to Section 6 78. Mark for Review The results of the inner query are returned to the outer query. Refer to Section 6 79. Multiple-row subqueries can only be used in SELECT statements. or an error occurs. (*) All the rows in the table would be selected.Which statement is true about the given subquery? (1) Points The outer query executes before the nested subquery. No rows would be returned by the outer query. Multiple-row subqueries can be used with both single-row and multiple-row operators.00). Evaluate this SELECT statement: SELECT customer_id. Which statement about single-row and multiple-row subqueries is true? (1) Points Multiple-row subqueries cannot be used with the LIKE operator. Both the inner and outer queries must return a value. (*) An error occurs if the either the inner or outer queries do not return a value. Incorrect. Incorrect. name FROM customer WHERE customer_id IN (SELECT customer_id FROM customer WHERE state_id = „GA‟ AND credit_limit > 500. What would happen if the inner query returned null? Mark for Review (1) Points An error would be returned. Only the rows with CUSTOMER_ID values equal to null would be selected. (*) Single-row operators can be used with both single-row and multiple-row subqueries.

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

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

„Public Relations‟. Which multiple-row comparison operator could you use? Mark for Review (1) Points >ANY (*) NOT=ALL IN >IN Correct Section 7 Lesson 1 (Answer all questions in this section) 87. department_name. You need to display all the products that cost more than the maximum cost of every product produced in Japan. location_id) VALUES (70. 100. Mark for Review (1) Points 100 will be inserted into the department_id column Mark for Review . manager_id. 1700). Assume all the column names are correct. The following SQL statement will execute which of the following? INSERT INTO departments (department_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. A multiple-row operator expects how many values? (1) Points One or more (*) Only one Two or more None Correct 86.

An error occurs because you CANNOT use a subquery in an INSERT statement. What could you use in the INSERT statement to accomplish this task? Mark for Review (1) Points an ON clause a SET clause a subquery (*) a function Incorrect. 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. You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. last_name. enroll_date FROM students WHERE UPPER(stu_type_id) = „F‟). with an identical structure. An error occurs because the INSERT statement does NOT contain a VALUES clause. into the new table. stu_type_id.1700 will be inserted into the manager_id column 70 will be inserted into the department_id column (*) „Public Relations‟ will be inserted into the manager_name column Correct 88. named FT_STUDENTS. first_name. 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.You want to insert all full-time students. dob. Correct . who have a STU_TYPE_ID value of “F”. (*) An error occurs because the FT_STUDENTS table already exists. You execute this INSERT statement: INSERT INTO ft_students (SELECT stu_id. Refer to Section 7 89.

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 INSERT. CREATE MERGE. 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. UPDATE Correct . You need to remove a row from the EMPLOYEE table. Which DML statement should you use? for Review (1) Points UPDATE INSERT (*) DELETE CREATE Correct Section 7 Lesson 2 (Answer all questions in this section) Mark 91. You need to add a row to an existing table. MERGE (*) INSERT.90.

Correct 95. You need to display the names of the teachers who teach classes that start within 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. You need to create a report to display the teachers who were hired more than five years ago. An error message is displayed indicating incorrect syntax. The statement will not execute.93. 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. what is the result? 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? Mark for Review (1) Points You need to display the start date for each class taught by a given teacher. (*) Correct 94. Nothing. When the WHERE clause is missing in a DELETE statement. (*) The table is removed from the database.2) Mark for . 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.

You need to delete a record in the EMPLOYEES table for Tim Jones. What keyword in an UPDATE statement speficies the columns you want to change? for Review (1) Points SELECT WHERE SET (*) HAVING Correct 97. (*) UPDATE players (salary) VALUES(salary * 1. UPDATE players SET salary = salary * .125) WHERE team_id = 5960.125 WHERE team_id = 5960. UPDATE players SET salary = salary * 1. Which SQL statement will allow you to reflect this change? Mark for Review (1) Points INSERT INTO my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. Her employee ID is still 189.125. The TEAM_ID value for the Tiger team is 5960. however. The EMPLOYEES table contains these columns: Mark . whose unique employee identification number is 348. Correct 96.125 WHERE team_id = 5960.You need to increase the salary of each player for all players on the Tiger team by 12.5 percent. Which statement should you use? Mark for Review (1) Points UPDATE players (salary) SET salary = salary * 1. INSERT my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. UPDATE INTO my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. (*) Correct 98. UPDATE my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. One of your employees was recently married. her last name is now Rockefeller.

2) SALARY NUMBER(9. and their team name for all teams with a id value greater than 5000 . 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.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 additional records? Mark for Review (1) Points DELETE FROM employees WHERE id_num = 348. MANAGERS. their manager. (*) DELETE FROM employees WHERE lname = jones. 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? Mark 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. Correct 99. DELETE „jones‟ FROM employees. Examine the structures of the PLAYERS.

Databases were invented in 1989? True or False? (1) Points True False (*) Correct Correct Mark for Review 2. You need to update the expiration date of products manufactured before June 30th . Section 1 1. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Refer to Section 7 100. It will have a database with transaction details of which student borrows which books. An asterisk (*) indicates a correct answer. The first step in system development is to document the requirements.Incorrect. feedback. Why? Review (1) Points . 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. Consider your school library. and question scores below. 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 Correct Mark for 3. Refer to Section 7 Test: Mid Term Exam Semester 1 Review your answers.

An ERD is an example of a Physical Model. True or False? Mark for Review (1) Points True False (*) Correct Correct 7. (*) It allows application development to be conducted without having to consider database design. True or False? Mark for Review (1) Points True (*) False Correct Section 2 5. It clarifies what a business wants to accomplish. True or False? (1) Points True False (*) Incorrect Incorrect. Which of the following entities most likely contains valid attributes? (Choose two) Mark for Review (1) Points . A blueprint for the database design is not needed. and provides measures for deciding if the system delivers all that is required. We can just start coding straight away. Refer to Section 2 Mark for Review Correct 6. so you will need to change your ERD if you decide to change Hardware Vendor. as the world gets ever more dependent on computer systems. It keeps businesses honest. Entity Relationship modeling is dependent on the hardware or software used for implementation. Correct Correct 4.Wrong. The market for IT professionals is still increasing and will continue to do so in the future.

Attributes: Name. Salary Incorrect Incorrect. The entity/relationship model is created before the physical database design model? True or False? Mark for Review (1) Points True (*) False Correct Correct 10. Speed Entity: Mother. Owner (*) Entity: Car. Attributes: Owner Occupation. Primary Unique Identifiers: (Choose Two) (1) Points (Choose all correct answers) Are required. Date Built (*) Entity: Pet. (*) Are not required. Address.(Choose all correct answers) Entity: Home. Can be created multiple times for an entity. Select the incorrect one: Mark for Review (1) Points Haircolor Weight Gender Natacha Hansen (*) Correct Correct . Birthdate. Owner Salary. Owner. Correct Correct 9. (*) Distinguish each instance of an entity from all others. The data model is not complete until all entities have a Primary UID. All of the following could be attributes of an ENTITY called PERSON except one. Attributes: Number of Bedrooms. Birthdate. Refer to Section 2 Mark for Review 8. Occupation. Attributes: Name.

Section 2 11. A/an _________ is a picture of all the information that will form the basis for the finished system. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. True or False? Mark for Review (1) Points . An asterisk (*) indicates a correct answer. True or False? Mark for Review (1) Points True (*) False Incorrect Incorrect. Refer to Section 3 Mark for Review Correct 13. feedback. Mark for Review (1) Points ERD (*) Process Table Attribute Correct Section 3 12. Matrix Diagrams show Optionality and Degrees of the ERDs they document. and question scores below. One Relationship can be both mandatory and optional at different ends. Which of the following are valid relationship degrees (1) Points (Choose all correct answers) 1:1 (*) 1:M (*) 1:O O:O Correct Correct 14.Test: Mid Term Exam Semester 1 Review your answers.

Business rules are important to data modelers.True False (*) Incorrect Incorrect. When reading an ERD including Relationships you are said to be speaking: Review (1) Points Relationship-ish Gibberish ERDish (*) Entity-ish Correct Section 4 17. Refer to Section 3 Mark for Review 15. True or False? (1) Points True (*) False Correct Correct Correct Mark for Mark for Review 18. 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 . The single end of a Relationship is called: (1) Points Single Toe (*) Big Toe Single Foot Crows Foot Correct Correct 16.

An asterisk (*) indicates a correct answer. so you should list them on a separate document to be handled programmatically (*) Correct Correct 20. (*) Correct Correct Test: Mid Term Exam Semester 1 Review your answers. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. but you just explain them to the users so they can enforce them Yes. feedback. A business rule such as “We only ship goods after customers have completely paid any outstanding balances on their account” is best enforced by: Mark for Review (1) Points Making the payment attribute null. Refer to Section 4 Mark for Review 19. and question scores below. Section 4 21. in which case you should let the database administrator handle them No. 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.Use two subtypes with relationships from class to student gender (*) Make the attribute Gender mandatory You cannot model this. All ER diagrams must have one of each of the following: (Choose two) Review (1) Points (Choose all correct answers) One or more Entities (*) Mark for . You need to document it Incorrect Incorrect. We need to trust our customers. and we know they will pay some day. all constraints must be modeled and shown on the ER diagram No. Can all constraints be modeled on an ER diagram? (1) Points No.

not to a Subtype. Which of the following are suitable Entity names? (Choose Two) (1) Points (Choose all correct answers) DOGS ANIMAL (*) ANIMALS DOG (*) Correct Correct 24. When creating entities you must follow these rules: (Choose Two) (1) Points (Choose all correct answers) Name them in Plural Name them in Singular (*) Exclude Attributes Include Attributes (*) Correct Correct Mark for Review . You can only create relationships to a Supertype.Relationships between entities (*) Arcs At least one supertype and subtype Correct Correct 22. True or False? Mark for Review (1) Points True False (*) Correct Correct Mark for Review 23.

True or False? Review (1) Points True False (*) Correct Section 5 Correct Mark for 26. .25. If a relationship can NOT be moved between instances of the entities it connects. A supertype can only have two subtypes and no more. What do you call the entity created when you resolve a M:M relationship? Review (1) Points Intersection entity (*) Inclusion entity Recursive entity M:M entity Correct Correct Mark for 27. How do you include a relationship as part of the UID for an entity? (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. it is said to be: Mark for Review (1) Points Mandatory Optional Transferrable Non-Transferrable (*) Correct Correct Mark for Review 28.

feedback. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design.Correct Correct 29. Section 5 31. 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 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. Mark for Review (1) Points Mandatory Recursive (*) Many to Many Optional Transferrable Correct Correct Test: Mid Term Exam Semester 1 Review your answers. An asterisk (*) indicates a correct answer. 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 Correct . and question scores below. A relationship from an entity back to itself is called a ___________ relationship.

(*) When no attritibutes are mutually independant and fully independent on the primary key. True or False? (1) Points True False (*) Correct Section 7 Correct . The Rule of 3rd Normal Form states that No Non-UID attribute can be dependant on another non-UID attribute. Refer to Section 5 34. Correct Correct Mark for 33. True or False? Mark for Review (1) Points True (*) False Correct Correct Mark for Review 35. None of the Above. When no attritibutes are mutually independent and all are fully dependent on the primary key.Section 6 32. When is an entity in 2nd Normal Form? (1) Points Mark for Review When all non-UID attributes are dependent upon the entire UID. the database model is said to be: Review (1) Points Normalized Not Normalized (*) 1st Normal Form 2nd Normal Form Incorrect Incorrect. Until all attributes are single-valued. All entities must be given a new artificial UID.

Which of the following is NOT a relationship type? (1) Points Some to None (*) One to One One to Many Many to Many Correct 38. Refer to Section 7 Mark for Review 37. 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 another non-UID attribute). Which of the following scenarios should be modeled so that historical data 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. True or False? Mark for Review (1) Points True (*) False Correct Correct .36.

A recursive relationship must Mandatory at both ends. True or False? Review (1) Points True False (*) Correct Correct Mark for 40. Section 7 41. Which of the following would best be represented by an arc? (1) Points TEACHER (Female. Arcs are Mandatory in Data modeling. feedback. An asterisk (*) indicates a correct answer. Refer to Section 7 . Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. All ERD‟s must have at least one Arc. All relationships participating in an arc must be mandatory.39. Average Student) Correct Correct Mark for Mark for Review 42. True or False? Review (1) Points True False (*) Incorrect Section 8 Incorrect. Bob) DELIVERY ADDRESS (Home. Office) (*) PARENT (Girl. Bob) STUDENT (Grade A student. and question scores below. True or False? Mark for Review (1) Points True False (*) Correct Correct Test: Mid Term Exam Semester 1 Review your answers.

43. you MUST create an End Date . If a system includes the concept of time and it stores Start Dates. Refer to Section 8 44. Which of the following is a logical constraint that could result from considering 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. You need to look smart and presentable. True or False? Mark for Review (1) Points True (*) False Correct Section 10 45. (*) EMPLOYEE periods can overlap causing the database to crash. Correct Correct 47. All systems must include functionality to provide logging or journaling in conceptual data models. Consultants often use their experience in ensuring projects stay on track and delivers within the timescales set out for the project. For each Start Date attribute you create. End Date must be before the Start Date. Dates must be stored with Time. then End Dates becomes Mandatory. True or False? Mark for Review (1) Points True (*) False Incorrect Incorrect. True or False? Mark for Review (1) Points True False (*) Correct Correct Correct 46. Your apperance at a presentation is important.

e. True or False? Mark for Review (1) Points True False (*) Correct Correct Mark for Review 49. even if leadership changes over time.g. (SUBSTR(LOWER(first_name). 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. Modeling historical data is Optional. True or False? (1) Points True (*) False Correct Correct 50. You query the database with this SQL statement: SELECT CONCAT(last_name. so you know when to give your employees a holiday. you would need security clearance You need a constant record of cities because they are still cities. .attribute and it must be mandatory. they get a new Mayor Section 1 Lesson 1 (Answer all questions in this section) 1. 4))) “Default Password” FROM employees. Cites may change their name and/or which country they are placed in. All systems must have an entity called WEEK with a holiday attribute. (*) If you are doing a system for any French City. True or False? (1) Points True False (*) Correct Correct Mark for Review 48. if the borders of a country change.

„al‟) FROM dual. You need to display the number of characters in each customer‟s last name. Correct 3. Correct 2. The email address of each employee in the EMPLOYEE table. 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.Which function will be evaluated first? (1) Points CONCAT SUBSTR LOWER (*) Mark for Review All three will be evaluated simultaneously. The number of characters for each value in the EMAIL column in the employees table. You issue this SQL statement: SELECT INSTR („organizational sales‟. (*) The maximum number of characters allowed in the EMAIL column. Which function should you use? . Evaluate this SELECT statement: SELECT LENGTH(email) FROM employee.

-3. SELECT SUBSTR(product_id. (*) The CONCAT function can only be used on character strings. not on numbers. 3) FROM price WHERE manufacturer_id = 59604. 2) FROM price WHERE manufacturer_id = 59604. 3. (*) SELECT LENGTH(product_id. 3. The PRICE table contains this data: PRODUCT_ID MANUFACTURER_ID 86950 59604 You query the database and return the value 95. The SUBSTR character function returns a portion of a string beginning at a defined character position to a specified length. -1.) (Choose all correct answers) The SYSDATE function returns the Oracle Server date and time. 2) FROM price WHERE manufacturer_id = 59604. 2) FROM price WHERE manufacturer_id = 59604. (*) s . Which script did you use? SELECT SUBSTR(product_id.LENGTH (*) \ LPAD COUNT SUBSTR Correct 5. Which three statements about functions are true? (Choose three. Correct 6. SELECT TRIM(product_id. (*) The ROUND number function rounds a value to a specified decimal place or the nearest whole number.

Correct 7. 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 9.-1) FROM dual. Which value does this statement display? 700 750 (*) 751 751. You issue this SQL statement: SELECT TRUNC(751.367.3 Correct .

You issue this SQL statement: SELECT ROUND (1282. -2) FROM dual. Which of the following Date Functions will add calendar months to a date? Months + Calendar (Month) ADD_MONTHS (*) MONTHS + Date NEXT_MONTH Correct 12.10.248. Which of the following SQL statements will correctly display the last name and the number of weeks employed for all employees in department 90? . You need to display the number of months between today‟s date and each employee‟s hiredate.25 1300 (*) Correct Section 1 Lesson 3 (Answer all questions in this section) 11. What value does this statement produce? 1200 1282 1282. Which function should you use? ROUND BETWEEN ADD_MONTHS MONTHS_BETWEEN (*) Correct 13.

The values returned by this SELECT statement will be of which data type? DATE (*) NUMBER . SELECT last_name. Correct 14. Correct 15. (*) SELECT SYSDATE – TO_DATE(‟25-JUN-02′) + hire_date FROM employees. SELECT (SYSDATE – hire_date) + 10*8 FROM employees. (SYSDATE-hire_date)/7 DISPLAY WEEKS FROM employees WHERE department id = 90. Which SELECT statement will NOT return a date value? SELECT (30 + hire_date) + 1440/24 FROM employees. (SYSDATE-hire_date)AS WEEK FROM employees WHERE department_id = 90. # of WEEKS FROM employees WHERE department_id = 90. SELECT last_name. SELECT (hire_date – SYSDATE) + TO_DATE(‟25-JUN-02′) FROM employees. (SYSDATE-hire_date)/7 AS WEEKS FROM employees WHERE department_id = 90.SELECT last_name. 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. (*) SELECT last name.

Single row functions can be nested. YYYY) FROM employees. „ YYYY‟) FROM employees. „ YYYY‟) FROM employees. (*) Single row functions return one or more results per row. Refer to Section 1 Section 2 Lesson 1 (Answer all questions in this section) 16. Incorrect. Which statement concerning single row functions is true? Single row functions can accept only one argument. „Month DD. YYYY‟) FROM employees. 2000 Which SELECT statement could you use? Mark for Review (1) Points SELECT TO_CHAR(hire_date. Month DD. SELECT TO_CHAR(hire_date. Single row functions cannot modify a data type.DATETIME INTEGER Incorrect. Correct 17. (*) SELECT hire_date(TO_CHAR „Month DD‟. SELECT TO_CHAR(hire_date. but can return multiple values. Refer to Section 2 . 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. „Month DD‟.

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

00 758960 SANDAL 86979 STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85909 12.00 869506 SANDAL 89690 15.00 890890 LOAFER 89789 14. style_name.00 968950 SANDAL 85909 10.00 968950 SANDAL 85909 10. cost. category.00 895840 SANDAL 85940 12. cost FROM styles WHERE style_name LIKE „SANDAL‟ AND NVL(cost. 0) < 15. The STYLES table contains this data: STYLE_ID STYLE_NAME CATEGORY COST 895840 SANDAL 85940 12.00 758960 SANDAL 86979 COST COST COST COST . Which result will the query provide? STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85940 12.00 968950 SANDAL 85909 10.00 869506 SANDAL 89690 15.00 758960 SANDAL 86979 Evaluate this SELECT statement: SELECT style_id.00 968950 SANDAL 85909 10.00 ORDER BY category.00 809090 LOAFER 89098 10.00 758960 SANDAL 86979 STYLE_ID STYLE_NAME CATEGORY 895840 SANDAL 85909 12.00 857689 HEEL 85940 11.00 STYLE_ID STYLE_NAME CATEGORY 968950 SANDAL 85909 10.00 758960 SANDAL 86979 869506 SANDAL 89690 15.TO_NUMBER CHARTOROWID Correct Section 2 Lesson 2 (Answer all questions in this section) 22.

orderdate. The customers should be listed alphabetically beginning with the letter „A‟. Correct 24.Correct 23. o.custid. which statement displays a zero if the TUITION_BALANCE value is zero and the HOUSING_BALANCE value is null? SELECT NVL (tuition_balance + housing_balance. (*) SELECT NVL(tuition_balance. Which functions 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) 25. 0). 0). custid. c.companyname. TO_NUMBER (housing_balance. SELECT TO_NUMBER(tuition_balance. When executed. You need to replace null values in the DEPT_ID column with the text “N/A”. tutition_balance + housing_balance “Balance Due” FROM student_accounts.amount FROM customers c. tuition_balance + housing_balance “Balance Due” FROM student_accounts. NVL (housing_balance). orders o . o. and their corresponding order totals should be sorted from the highest amount to the lowest amount. o. Which of the following statements should you issue? Mark for Review (1) Points SELECT c. You have been asked to create a report that lists all corporate customers and all orders that they have placed. 0). 0) “Balance Due” FROM student_accounts. SELECT tuition_balance + housing_balance FROM student_accounts.

amount ASC. o. e.amount FROM customers c.emp_id.custid = o.orderdate. orders o WHERE c.custid = o.companyname.WHERE c.annual_salary * b. o. c. companyname. b. o. o. bonus b WHERE e. (*) SELECT c.fname. o. (*) SELECT e.custid. o.custid ORDER BY companyname ASC.emp_id = b.companyname.fname. c. . o. custid. amount DESC. The EMPLOYEES 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. SELECT c. orders o WHERE c.emp_id.orderdate. e.emp_id = b. amount. bonus_pct FROM employees e. b.amount FROM customers c.lname. orders o WHERE c.orderdate. SELECT c.custid = o.custid.lname. c.custid ORDER BY companyname. Your company stores its business information in an Oracle9i database. Which of the following queries should you issue? SELECT e.amount Q FROM customers c. custid. 2) EMP_ID VARCHAR2(5) NOT NULL FOREIGN KEY You want to determine the amount of each employee‟s bonus. bonus_pct FROM employees e.annual_salary.custid ORDER BY companyname.companyname.custid ORDER BY amount DESC. Correct 26. o. bonus b WHERE e. o. custid.custid = o.custid. b.

annual_salary. b. sales s WHERE c.total_sales FROM customers c.total_sales FROM customers c. b.cust_id = s.emp_id = b. the company and the total sales? SELECT c. sales s WHERE c. sales WHERE cust_id = cust_id. What is produced when a join condition is not specified in a multiple-table query? a self-join an outer join an equijoin a Cartesian product (*) Correct 28. bonus WHERE e. total_sales FROM customers c.cust_id.company.emp_id. c.company.lname. bonus_pct FROM employees.cust_id = s. e.cust_id (+). SELECT c. SELECT fname.SELECT e.cust_id. bonus NATURAL JOIN. lname.cust_id. total_sales FROM customers.cust_id = s. annual_salary * bonus_pct FROM employees. . sales s WHERE c.cust_id. s.fname. c. SELECT cust_id. company. s. Incorrect. 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. (*) SELECT cust_id. Refer to Section 3 27.

(*) Outer joins are always evaluated before other types of joins in the query. 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. RIGHT. (*) Correct 30. When joining 3 tables in a SELECT statement.Correct 29. Correct 32. The WHERE clause represents the join criteria. The JOIN keyword must be included. The OR operator cannot be used to link outer join conditions. The FULL. Which statement about outer joins is true? (1) Points The tables must be aliased. The FROM clause represents the join criteria. Which statement about the join syntax of a SELECT statement is true? The ON keyword must be included. Which two operators can be used in an outer join condition using the outer join operator (+)? Mark for Review .

Mark for Review (1) Points AND and = (*) OR and = BETWEEN…AND… and IN IN and = Incorrect. You need to join two tables that have two columns with the same name and compatible data types. Which operator would you use after one of the column names in the WHERE clause when 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 A join between two tables that includes columns that share the same name. Refer to Section 3 33. datatypes 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. Which type of join would you create to join the tables on both of the columns? Mark .

When the NATURAL JOIN clause is based on all columns in the two tables that have the same name. then an error is returned. If the columns having the same names have different data types. Which of the following conditions will cause an error on a NATURAL JOIN? Review (1) Points When you attempt to write it as an equijoin. (*) Correct Section 4 Lesson 3 (Answer all questions in this section) 37. If it selects rows from the two tables that have equal values in all matched columns. Which SELECT clause creates an equijoin by specifying a column name common to both tables? Mark for Review (1) Points A HAVING clause The FROM clause The SELECT clause A USING clause (*) Incorrect.for Review (1) Points Natural join (*) Cross join Outer join Self-join Correct 36. Refer to Section 4 Mark for .

(*) JOIN admission c ON (a. 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) . „ || b. JOIN admission c ON (a. „ || a.38.admission FROM patient a JOIN physician b ON (b.physician_id).patient_id = c.fname as “Physician”. Below find the structure of the CUSTOMERS and SALES_ORDER tables: CUSTOMERS CUSTOMER_ID NUMBER NOT NULL. 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.fname as “Patient”.lname || „.physician_id = c. c. Evaluate this SELECT statement: SELECT a. b.patient_id = c. Which clause generates an error? Mark for Review (1) Points JOIN physician b ON (b.lname || „.physician_id). Refer to Section 4 40.patient_id) Incorrect.physician_id = c.patient_id).

The EMPLOYEE_HIST table will be the first table in the FROM clause.customer_name FROM customers c. Primary Key CUSTOMER_ID NUMBER Foreign key to CUSTOMER_ID column of the CUSTOMER table ORDER_DT DATE ORDER_AMT NUMBER (7. Which statement could you use? Mark for Review (1) Points SELECT c. 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 (*) .customer_id = s. sales_order s WHERE c.customer_id FROM sales_order s).customer_name FROM customers c WHERE c.CREDIT_LIMIT NUMBER(7.customer_id not in (SELECT s.customer_id.2) SALES_ORDER ORDER_ID NUMBER NOT NULL.customer_name FROM customers c. SELECT c. sales_order s WHERE c. SELECT c. All the matched and unmatched rows in the EMPLOYEE table need to be displayed.customer_id(+). Refer to Section 4 Section 4 Lesson 4 (Answer all questions in this section) 41.2) SHIP_METHOD VARCHAR2 (5) You need to create a report that displays customers without a sales order.customer_id (+) = s.customer_id). Incorrect.customer_id = s. (*) SELECT c. You need to join the EMPLOYEE_HIST and EMPLOYEE tables.customer_name FROM customers c RIGHT OUTER JOIN sales_order s ON (c.

Correct 42. Incorrect. Refer to Section 5 Mark for Review . Which two sets of join keywords create a join that will include unmatched rows from 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. Group functions can be nested to a depth of? (1) Points three four two (*) Group functions cannot be nested. 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.

VARIANCE.45. The AVG. 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. If a select list contains both a column as well as a group function then what clause is required? Mark for Review (1) Points having clause join clause order by clause group by clause (*) Correct 46. SUM. (*) Group functions can only be used in a SELECT list. Group functions can be used in a WHERE clause. What will the following SQL Statement do? Mark for Review . and STDDEV functions can be used with which of the following? Mark for Review (1) Points Only numeric data types (*) Integers only Any data type All except numeric Correct 47. A query that includes a group function in the SELECT list must include a GROUP BY clause.

SELECT job_id. Which group function will you use? Mark for Review (1) Points MAX SUM (*) VARIANCE COUNT Correct 50. Mark for Review (1) Points Displays all the employees and groups them by job. COUNT(*) 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 . You need to compute the total salary for all employees in department 10. Correct 49. Displays all the jobs with as many people as there are jobs. (*) Displays only the number of job_ids. Which group functions below act on character.

The EMPLOYEES table contains these columns: EMPLOYEE_ID NUMBER(9) LAST_NAME VARCHAR2(20) FIRST_NAME VARCHAR2(20) SALARY NUMBER(9.2) COMM_PCT NUMBER(4.(Answer all questions in this section) 51. The CUSTOMER table contains these columns: CUSTOMER_ID NUMBER(9) FNAME VARCHAR2(25) LNAME VARCHAR2(30) CREDIT_LIMIT NUMBER (7.2) HIRE_DATE DATE BONUS NUMBER(7. 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. or SALARY columns? (Choose three.2) . LAST_NAME.) Mark for Review (1) Points (Choose all correct answers) MAX (*) SUM AVG MIN (*) COUNT (*) Correct 52.2) Which three functions could be used with the HIRE_DATE.

CATEGORY VARCHAR2(20) You need to calculate the average credit limit for all the customers in each category. The average should be calculated based on all the rows in the table excluding any customers who have not yet been assigned a credit limit value. Which group function would you use to display the highest salary value in the EMPLOYEE table? Mark for Review (1) Points AVG COUNT MAX (*) MIN Correct 55. 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) . Which group function should you use to calculate this value? Mark for Review (1) Points AVG (*) SUM COUNT STDDEV Correct 54.

An error occurs because no WHERE clause is included in the SELECT statement. Which statement is true? Mark for Review (1) Points The number of rows in the table is displayed. SELECT COUNT FROM products. Which results will the query display? (1) Points Mark for Review The number of employees that have a salary less than 30000. An error occurs due to an error in the SELECT clause. SELECT COUNT (*) FROM products. (*) The number of unique PRODUCT_IDs in the table is displayed. (*) SELECT ROWCOUNT FROM products. Evaluate this SELECT statement: SELECT COUNT(*) FROM employee WHERE salary > 30000. The number of rows in the EMPLOYEE table that have a salary greater than 30000. Correct 57. The total of the SALARY column for all employees that have a salary greater than 30000. Correct . Evaluate this SELECT statement: SELECT COUNT(*) FROM products. Correct 58.56. Which SELECT statement will calculate the number of rows in the PRODUCTS table? Mark for Review (1) Points SELECT COUNT(products). (*) The query generates an error and returns no results.

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) . dept_id FROM employee GROUP BY dept_id. Group functions can avoid computations involving duplicate values by including which keyword? Mark for Review (1) Points NULL DISTINCT (*) SELECT UNLIKE Correct Section 6 Lesson 1 (Answer all questions in this section) 60. Refer to Section 6 Section 6 Lesson 1 (Answer all questions in this section) 61. You only want to include employees who earn more than 15000. Evaluate this SELECT statement: SELECT COUNT(emp_id).59. 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.

Incorrect. The report should include only those employees who have been with the company for more than one year and whose salary exceeds $40. lname. salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1). AVG(salary) FROM employees WHERE job_id <> 69879 GROUP BY job_id. salary FROM employees WHERE salary > 40000 AND hire_date = (SELECT hire_date FROM employees WHERE (sysdate-hire_date) / 365 > 1). AVG(salary) WHERE job_id <> 69879 (*) GROUP BY job_id. date of hire and salary. salary FROM employees WHERE salary > 40000 AND (sysdate-hire_date) / 365 > 1. 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. Refer to Section 6 62. Evaluate this statement: SELECT department_id. department_id Mark for Review . lname.000. (*) SELECT emp_id.You want to create a report that includes each employee‟s last name. SELECT emp_id. Which clauses restricts the result? Choose two. lname. SELECT emp_id. hire_date. employee identification number. salary FROM employees WHERE salary > 40000 AND hire_date IN (sysdate-hire_date) / 365 > 1). lname. department_id HAVING AVG(salary) > 35000 ORDER BY department_id.

HAVING AVG(salary) > 35000 (*) Correct 63. The ORDER BY clause must specify a column name in the EMPLOYEE table. . 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. department_name FROM employee WHERE dept_id = 1 GROUP BY department. mgr_id. A single query cannot contain a WHERE clause and a HAVING clause. dept_id. (*) The HAVING clause must specify an aggregate function. Evaluate this SELECT statement: SELECT SUM(salary). dept_id. Evaluate this SELECT statement: SELECT SUM(salary). Correct 65. mgr_id FROM employee GROUP BY dept_id. dept_id FROM employee WHERE status = „I‟ GROUP BY dept_id HAVING salary > 30000 ORDER BY 2. Which SELECT statement clause allows you to restrict the rows returned. Why does this statement return a syntax error? (1) Points Mark for Review MGR_ID must be included in the GROUP BY clause.

Primary Key TEAM_NAME VARCHAR2 (25) You need to create a report that lists the names of each team with more than five pitchers. 0)) (*) HAVING MAX(salary) > 10000 (*) WHERE hire_date > AVG(hire_date) Correct Mark for 67. .2) Which two clauses represent valid uses of aggregate functions? (Choose three.Which clause of the SELECT statement contains a syntax error? (1) Points SELECT FROM WHERE GROUP BY (*) Correct Mark for Review 66. The PLAYERS table contains these columns: PLAYER_ID NUMBER PK PLAYER_NAME VARCHAR2 (30) TEAM_ID NUMBER HIRE_DATE DATE SALARY NUMBER (8. 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.) Review (1) Points (Choose all correct answers) ORDER BY AVG(salary) GROUP BY MAX(salary) (*) SELECT AVG(NVL(salary. The PLAYERS and TEAMS tables contain these columns: PLAYERS PLAYER_ID NUMBER NOT NULL.

team_name.position) = „PITCHER‟ GROUP BY t.team_id = t.team_id) WHERE UPPER(p. You need to display all the players whose salaries are greater than or equal to John Brown‟s salary.position) = „PITCHER‟ GROUP BY t. Which comparison operator should you use? Mark for Review (1) Points = > <= >= (*) Correct 69. COUNT(p.player_id) FROM players JOIN teams t ON (p.position) = „PITCHER‟ GROUP BY t.position) = „PITCHER‟ HAVING COUNT(p.team_id) WHERE UPPER(p.player_id) > 5.team_name.team_id) WHERE UPPER(p.team_id = t. COUNT(p.team_id) WHERE UPPER(p. (*) Correct Section 6 Lesson 2 (Answer all questions in this section) 68. Which of the following is TRUE regarding the order of subquery execution? Review (1) Points The outer query is executed first Mark for . teams t ON (p.Which SELECT statement will produce the desired result? (1) Points SELECT t.player_id) > 5. SELECT t. COUNT(p.player_id) FROM players p.team_name.player_id) FROM players p JOIN teams t ON (p.team_name. Mark for Review SELECT t.team_name HAVING COUNT(p. teams t ON (p. COUNT(p.team_name HAVING COUNT(p.player_id) FROM players p.player_id) > 5. SELECT t.team_name.team_id = t.team_id = t.

Subqueries cannot contain group functions.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. . Subqueries are often used in a WHERE clause to return values for an unknown conditional value. Incorrect. You need to display all the orders that were placed on a certain date.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. Refer to Section 6 Section 6 Lesson 2 (Answer all questions in this section) 71. You need to display each date that a customer placed an order. Which statement about subqueries is true? (1) Points Mark for Review Subqueries should be enclosed in double quotation marks.2) OPEN_DATE DATE ORDER_HISTORY ORDER_ID NUMBER(5) CUSTOMER_ID NUMBER(5) ORDER_DATE DATE TOTAL NUMBER(8. after the main or outer query executes. (*) Subqueries generally execute last. Examine the structures of the CUSTOMER and ORDER_HISTORY tables: CUSTOMER CUSTOMER_ID NUMBER(5) NAME VARCHAR2(25) CREDIT_LIMIT NUMBER(8.

Examine the structure of the EMPLOYEE. and ORDERS tables. DEPARTMENT. 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 was established. (*) Incorrect. Which of the following constructs would you use? Mark for Review (1) Points a group function a single-row subquery (*) the HAVING clause a MERGE statement Mark for Review .You need to display all the orders that were placed on the same day as order number 25950. Refer to Section 6 72. 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.

SELECT * FROM employees WHERE supervisor_id = (SELECT employee_id FROM employees . SELECT * FROM supervisors WHERE supervisor_id = (SELECT employee_id FROM supervisors WHERE last_name = „Carter‟). You need to produce a report that contains all employee-related information for those employees who have Brad Carter as a supervisor. However. 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. Refer to Section 6 74. Which query should you issue to accomplish this task? Mark for Review (1) Points SELECT * FROM employees WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = „Carter‟).Incorrect. you are not sure which supervisor ID belongs to Brad Carter. SELECT * FROM supervisors WHERE supervisor_id = (SELECT supervisor_id FROM employees WHERE last_name = „Carter‟).

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

SELECT description FROM d_types WHERE code = ANY (SELECT type_code FROM d_songs). Refer to Section 6 80. All of the above. (*) Incorrect.What would happen if the inner query returned null? (1) Points An error would be returned. Mark for Review Only the rows with CUSTOMER_ID values equal to null would be selected. SELECT description FROM d_types WHERE code <> ALL (SELECT type_code FROM d_songs). 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). Which of the following is a valid reason why the query below will not execute successfully? SELECT employee_id. Incorrect. (*) All the rows in the table would be selected. . No rows would be returned by the outer query. salary FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE last_name like „%u%‟) Mark for Review (1) Points First subquery not enclosed in parenthesis Single rather than multiple value operator used. last_name. (*) Second subquery found on the right instead of the left side of the operator. Refer to Section 6 79. The greater than operator is not valid.

000. Only employees who earn less than $50.000 and more than $50. You need to create a SELECT statement that contains a multiple-row subquery.000. Which values will be displayed? Mark for Review (1) Points Only employees who earn more than $30. (*) Correct 82. All employees who work in a department with employees who earn more than $30. salary FROM employees WHERE department_id IN (SELECT department_id FROM employees WHERE salary > 30000 AND salary < 50000). ANY.000. Which operator or keyword cannot be used with a multiple-row subquery? Review (1) Points ALL ANY = (*) > Correct 83. Evaluate this SQL statement: SELECT employee_id.Incorrect. All employees who work in a department with employees who earn more than $30. last_name.000. but less than $50.000. Refer to Section 6 Section 6 Lesson 4 (Answer all questions in this section) 81. which comparison operator(s) can you use? Mark for Review (1) Points IN. and ALL (*) Mark for .

LIKE BETWEEN…AND… =. Which best describes a multiple-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 85. <. A multiple-row operator expects how many values? (1) Points One or more (*) Only one Two or more None Correct 86. You need to display all the products that cost more than the maximum cost of every product produced in Japan. and > Correct 84. Which multiple-row comparison operator could you use? Mark for Review (1) Points >ANY (*) NOT=ALL IN >IN Mark for Review .

with an identical structure. The following SQL statement will execute which of the following? INSERT INTO departments (department_id. Refer to Section 7 89. 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‟ will be inserted into the manager_name column Correct 88.You want to insert all full-time students. „Public Relations‟. department_name. who have a STU_TYPE_ID value of “F”. 1700). named FT_STUDENTS. Assume all the column names are correct. What could you use in the INSERT statement to accomplish this task? Mark for Review (1) Points an ON clause a SET clause a subquery (*) a function Incorrect. manager_id. You execute this INSERT statement: INSERT INTO ft_students .Correct Section 7 Lesson 1 (Answer all questions in this section) 87. location_id) VALUES (70. 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. 100. You need to copy rows from the EMPLOYEE table to the EMPLOYEE_HIST table. into the new table.

An error occurs because the INSERT statement does NOT contain a VALUES clause. Refer to Section 7 Mark . 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. dob. You need to add a row to an existing table. (*) An error occurs because the FT_STUDENTS table already exists. enroll_date FROM students WHERE UPPER(stu_type_id) = „F‟). first_name. 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. stu_type_id. An error occurs because you CANNOT use a subquery in an INSERT statement. Correct 90.(SELECT stu_id. Which DML statement should you use? for Review (1) Points UPDATE INSERT (*) DELETE CREATE Correct Section 7 Lesson 2 (Answer all questions in this section) 91. last_name. You need to remove a row from the EMPLOYEE table.

(*) Correct 94. MERGE (*) INSERT. what is the result? Review (1) Points All rows are deleted from the table.92. UPDATE Correct 93. You need to create a report to display the teachers who teach more classes than the average number of classes taught by each teacher. 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. (*) Mark for . When the WHERE clause is missing in a DELETE statement. 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. You need to display the names of the teachers who teach classes that start within the next week.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? Mark for Review (1) Points You need to display the start date for each class taught by a given teacher. CREATE MERGE. You need to create a report to display the teachers who were hired more than five years ago. CREATE INSERT.

UPDATE players SET salary = salary * 1. Which SQL statement will allow you to reflect this change? Mark for Review (1) Points Mark . What keyword in an UPDATE statement speficies the columns you want to change? for Review (1) Points SELECT WHERE SET (*) HAVING Correct 97.The table is removed from the database.125) WHERE team_id = 5960. The statement will not execute. her last name is now Rockefeller. however. Nothing. An error message is displayed indicating incorrect syntax. UPDATE players SET salary = salary * . (*) UPDATE players (salary) VALUES(salary * 1.125 WHERE team_id = 5960.125.5 percent. The TEAM_ID value for the Tiger team is 5960. Her employee ID is still 189. Correct 96. Correct 95.125 WHERE team_id = 5960. Which statement should you use? Mark for Review (1) Points UPDATE players (salary) SET salary = salary * 1. 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. One of your employees was recently married.

2) SALARY NUMBER(9. DELETE „jones‟ FROM employees. You need to delete a record in the EMPLOYEES table for Tim Jones.INSERT INTO my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. MANAGERS. UPDATE INTO my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. UPDATE my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. (*) Correct 98. whose unique employee identification number is 348. INSERT my_employees SET last_name = „Rockefeller‟ WHERE employee_ID = 189. (*) DELETE FROM employees WHERE lname = jones. 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 additional 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 . 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. DELETE * FROM employees WHERE id_num = 348. Correct 99. Examine the structures of the PLAYERS.

feedback. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. True or False? Mark for Review (1) Points True (*) False Correct . Software cannot operate without Hardware. their manager. Section 1 1.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? (1) Points To display the names each player on the Lions team To display the maximum and minimum player salary for each team Mark for Review To display the names of the managers for all the teams owned by a given owner (*) To display each player. and question scores below. 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. Refer to Section 7 100. and their team name for all teams with a id value greater than 5000 Incorrect. An asterisk (*) indicates a correct answer. You need to update the expiration date of products manufactured before June 30th . Refer to Section 7 Review your answers.

It will have a database with transaction details of which student borrows which books. True or False? Mark for Review (1) Points True (*) False Correct Section 2 5. Refer to Section 1 Lesson 2. Consider your school library. 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. 4. as the world gets ever more dependent on computer systems. Life. Databases are used in most countries and by most governments. An entity is instantiated as a ? Mark for Review (1) Points Experience Instance Table (*) None of the above Correct .2. as we know it. would change drastically if we no longer had access to databases. The market for IT professionals is still increasing and will continue to do so in the future. True or False? Mark for Review (1) Points True (*) False Correct 3.

a relationship is represented as a? Mark for Review (1) Points Column Row Instance Foreign Key (*) Correct 9. In a physical data model. All of the following would be instances of the entity ANIMAL SPECIES except which? Mark for Review (1) Points Dog Bird Elephant Leaf (*) . True or False? Mark for Review (1) Points True (*) False Correct 8. 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. Volatile entities have special requirements and need special attention when you are doing data modelling.6. Correct 7. They can be either mandatory or optional. (*) They must be mandatory to be created in the database. (*) They must exist between two different Entities.

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 Review (1) Points True (*) False Correct . Refer to Section 3 Lesson 1. True or False? Mark for Review (1) Points True (*) False Incorrect. Section 2 11. Documenting Business Requirements helps developers control the scope of the systems. 13. so users do not suddenly want the new system to contain twice as much functionality. Relationship Degree/Cardinality is important.Correct 10. True or False? Mark for Review (1) Points True (*) False Correct Section 3 12. Entity and Attribute names are usually Nouns. Relationships represents something of significance to the business.

We need to concentrate on the Procedural Business Rules only. (*) Ensures nothing. True or False? Mark for Review (1) Points True False (*) Correct Section 4 17. Which of the following are suitable Entity names? (Choose Two) Mark for Review (1) Points (Choose all correct answers) . All of the Above. Ensures we know what Information to store and how that Information works together.14. Matrix Diagrams are mandatory when doing data modelling. Correct 18. Matrix Diagrams are developed BEFORE the ERD. All the Attributes in a system are just written on the ERD. True or False? Mark for Review (1) Points True False (*) Correct 16. Why is it important to identify and document structural rules? Mark for Review (1) Points Ensures we know what data to store and how that data works together. and they all go in the Top Left Hand Corner of the paper. There are no benefits to be gained from documenting your Structural Business Rules. True or False? Mark for Review (1) Points True False (*) Correct 15.

A Supertype can have only one subtype. All instances of the supertype must be an instance of one of the subtypes. 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. True or False? Mark for Review (1) Points True .DOGS ANIMAL (*) ANIMALS DOG (*) Correct 19. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Section 4 21. An asterisk (*) indicates a correct answer. True or False? Mark for Review (1) Points True (*) False Correct Page 2 of 5 Test: Mid Term Exam Semester 1 Review your answers. and question scores below.

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

Many to many relationships must be left in the Model. 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. True or False? Mark for Review (1) Points True False (*) Incorrect. 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 . Refer to Section 5 Lesson 3.26. If two entities have two relationships between them. 29. It is important to have them documented as M-M. Intersection Entities are at the Master end in the relationships between it and the original entities. these relationships can be either _____________ or _____________ ? Mark for Review (1) Points Redundant or Required (*) Replicated or Required Resourced and Really Good Redundant and Replicated Correct 27.

When you resolve a M-M you simply re-draw the relationships between the two original entities. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. An asterisk (*) indicates a correct answer. Any Non-UID must be dependant on the entire UID. True or False? Mark for Review (1) Points True False (*) Correct 32.30. True or False? Mark for Review (1) Points True (*) False Correct . Section 6 31. no new entities are created. True or False? Mark for Review (1) Points True False (*) Correct Page 3 of 5 Test: Mid Term Exam Semester 1 Review your answers. A unique identifier must be made up of more than one attribute. and question scores below. All entities must be given a new artificial UID. True or False? Mark for Review (1) Points True False (*) Correct 33. feedback.

True or False? Mark for Review (1) Points True False (*) Correct 37. Modeling historical data can produce a unique identifier that always excludes dates. True or False? Mark for Review (1) Points True (*) False Correct 35. A recursive relationship must Mandatory at both ends. True or False? Mark for Review (1) Points True False (*) Correct 38.34. 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. All relationships participating in an arc must be mandatory. True or False? Mark for Review (1) Points True . Until all attributes are single-valued. The Rule of 3rd Normal Form states that No Non-UID attribute can be dependant on another non-UID attribute.

An arc can also be modeled as Supertype and Subtypes. Semester 1 Mid Term Exam covers Sections 1-10 of Database Design. Mark for Review (1) Points Sameness Differences . Arcs are used to visually represent _________ between two or more relationships in an ERD. Section 7 41. An asterisk (*) indicates a correct answer. True or False? Mark for Review (1) Points True False (*) Correct 42. No parts of an UID are mandatory. True or False? Mark for Review (1) Points True False (*) Correct Page 4 of 5 Test: Mid Term Exam Semester 1 Review your answers. and question scores below.False (*) Correct 39. True or False? Mark for Review (1) Points True (*) False Correct 40. feedback. All ERD‟s must have at least one Arc. Arcs are Mandatory in Data modeling.

All systems must include functionality to provide logging or journaling in conceptual data models. where the price of postage is dependent on what day of the week goods are shipped. So shipping is more expensive if the customer wants a delivery to take place on a Saturday or Sunday. which holds prices against week days. (*) If you are doing a system for any French City. you would need security clearance You need a constant record of cities because they are still cities. they get a new Mayor . and ensure the we also have an attribute for the Requested Delivery Day in the Order Entity. You are doing a data model for a computer sales company. e. True or False? Mark for Review (1) Points True False (*) Correct 45.Exclusivity (*) Inheritance Correct Section 9 43. Cites may change their name and/or which country they are placed in. (*) 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. Update the prices in the system. if the borders of a country change. Correct 44. 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. even if leadership changes over time. print out the current prices when they change and pin them on the company noticeboard Allow them to enter whatever ever delivery charge they want.g.

True or False? Mark for Review (1) Points True False (*) Correct 49. even though they are only guidelines. True or False? Mark for Review (1) Points True . True or False? Mark for Review (1) Points True False (*) Correct Section 10 47. There are formal rules for how to draw ERD‟s. Making a diagram pretty is a waste of time. All systems must have an entity called WEEK with a holiday attribute. All datamodels must be transformed from specific to generic. you should always try to follow them. A datamodel containing generic modeling techniques must not be mixed in with nongeneric models. True or False? Mark for Review (1) Points True False (*) Correct 48. so you know when to give your employees a holiday.Correct 46. 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 (*) False Correct 50. The generic entities MUST be drawn on a diagram of their own.

Is a record of one student borrowing one book Data or Information? Mark for Review (1) Points Data (*) Information Both Neither Incorrect. 4. It will have a database with transaction details of which student borrows which books. Refer to Section 1 Lesson 2. The market for IT professionals is still increasing and will continue to do so in the future.False (*) Correct Page 5 of 5 1. True or False? Mark for Review (1) Points True (*) . 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. Entities are transformed into Tables during the Database Design process. 3. as the world gets ever more dependent on computer systems. Databases perform these functions…. Refer to Section 1 Lesson 4. Consider your school library. True or False? Mark for Review (1) Points True (*) False Correct 2.

True or False? Mark for Review (1) Points True False (*) Incorrect. Relationship names are usually verbs. 7. Attributes have Instances. 9. A/an _________ is a picture of all the information that will form the basis for the finished system. An entity is instantiated as a ? Mark for Review (1) Points . Mark for Review (1) Points ERD (*) Process Table Attribute Correct 8.False Correct Section 2 5. True or False? Mark for Review (1) Points True (*) False Correct 6. Refer to Section 2 Lesson 3. The Physical Model is derived from the Conceptual Model. True or False? Mark for Review (1) Points True (*) False Incorrect. Refer to Section 2 Lesson 2.

10. Refer to Section 2 Lesson 2. Refer to Section 2 Lesson 2. Which of the following are examples of ENTITY: Instance. Section 2 11. True or False? Mark for Review (1) Points True (*) False Correct Section 3 12.Experience Instance Table (*) None of the above Incorrect. The single end of a Relationship is called: Mark for Review (1) Points Single Toe (*) Big Toe Single Foot Crows Foot . (Choose Two) Mark for Review (1) Points (Choose all correct answers) TRANSPORTATION METHOD: Car (*) ANIMAL: Dog (*) MEAT PRODUCT: Lettuce BODY PART: Larry Ellison Incorrect. Volatile entities have special requirements and need special attention when you are doing data modelling.

Relationship Names are optional. A new system would have a mixture of both Procedural and Structural Business Rules as part of the documentation of that new system. True or False? Mark for Review (1) Points True (*) False Correct 16. Matrix Diagrams are mandatory when doing data modelling. Relationships represents something of significance to the business. True or False? Mark for Review (1) Points True False (*) Correct 14. Refer to Section 3 Lesson 4. 15. True or False? Mark for Review (1) Points True (*) False . A Matrix Diagram should be developed by your users.Correct 13. True or False? Mark for Review (1) Points True False (*) Incorrect. True or False? Mark for Review (1) Points True False (*) Correct Section 4 17.

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 4 . Subtype entities may not have relationships to the other subtype entities. 19. Which of the following is true about subtypes? Mark for Review (1) Points One instance may belong to two subtypes of the same supertype. Subtypes must be mutually exclusive. only the supertype itself. Incorrect. (*) 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.Correct 18. Refer to Section 4 Lesson 1.

True or False? Mark for Review (1) Points True False (*) Correct 25. 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 (*) . A Diamond on a relationship indicates the Relationship as Non-Tranferrable. True or False? Mark for Review (1) Points True False (*) Correct 22. True or False? Mark for Review (1) Points True (*) False Correct 24. not to a Subtype. True or False? Mark for Review (1) Points True (*) False Correct Section 5 23. You can only create relationships to a Supertype. So the original entities are details or children of the newly created intersection entity.21. Intersection Entities are at the Master end in the relationships between it and the original entities. When you resolve a M-M you simply re-draw the relationships between the two original entities.

Correct 26. Intersection Entities often have the relationships participating in the UID, so the relationships are often barred. True or False? Mark for Review (1) Points True (*) False Correct 27. A relationship from an entity back to itself is called a ___________ relationship. 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 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 29. Many to many relationships must be left in the Model. It is important to have them documented as M-M. True or False? Mark for Review (1) Points True False (*) Correct

30. Relationships can be Redundant. True or False? Mark for Review (1) Points True (*) False Correct 31. 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 32. As a database designer you do not need to worry about where in the datamodel you store a particular attribute, as long as you get it onto the ERD your job is done. True or False? Mark for Review (1) Points True False (*) Correct 33. All entities must be given a new artificial UID. True or False? Mark for Review (1) Points True False (*) Correct 34. People are not born with “numbers”, but a lot of systems assign student numbers, customer IDs, etc. A shoe has a color, a size, a style, but may not have a descriptive “number”. So, to be able to uniquely and efficiently identify one instance of the entity SHOE, a/an ______________ UID can be created. Mark for Review (1) Points Artificial (*)

Unrealistic Structured Identification Correct 35. 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 Section 7 36. Modeling historical data can produce a unique identifier that always excludes dates. True or False? Mark for Review (1) Points True False (*) Correct 37. Arcs are Mandatory in Data modeling. All ERD‟s must have at least one Arc. True or False? Mark for Review (1) Points True False (*) Correct 38. Primary UIDs are: Mark for Review (1) Points Something that each Entity should have, but is not mandatory (*) Useful as an alternative means of identifying instances of an entity, independent of their datatype

No parts of an UID are mandatory.Mandatory in data modeling Always comprised of numbers Correct 39. 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. Arcs are used to visually represent _________ between two or more relationships in an ERD. 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 (*) . True or False? Mark for Review (1) Points True False (*) Correct 42. Mark for Review (1) Points Sameness Differences Exclusivity (*) Inheritance Correct 40.

then End Dates becomes Mandatory. For each Start Date attribute you create. True or False? Mark for Review (1) Points True False (*) Correct 44. 45. Which of the following is a logical constraint that could result from considering 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. If a system includes the concept of time and it stores Start Dates.Vehicle Registration Number for Car (*) ISBN Number for Book (*) Date of birth for Baby Correct Section 9 43. so you know when to give your employees a holiday. (*) EMPLOYEE periods can overlap causing the database to crash. True or False? Mark for Review (1) Points True False (*) Incorrect. 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. you MUST create an End Date attribute and it must be mandatory. All systems must have an entity called WEEK with a holiday attribute. Refer to Section 9 Lesson 1.

Refer to Section 10 Lesson 2.End Date must be before the Start Date. Making a diagram pretty is a waste of time. The generic entities MUST be drawn on a diagram of their own. This way you end up with more than one ERD. A datamodel containing generic modeling techniques must not be mixed in with nongeneric models. that together documents the entire system. Which of the following statements are true for ERD‟s to enhance their readability. Dates must be stored with Time. All datamodels must be transformed from specific to generic. (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. 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. 48. True or False? Mark for Review (1) Points True False (*) Correct 50. (*) Try to avoid crossing lines (*) . True or False? Mark for Review (1) Points True False (*) Correct 49. Correct Section 10 47.

even if you have hundreds .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.