databaseproject

3

Click here to load reader

Upload: epidemicaa

Post on 06-Jul-2015

147 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Databaseproject
Page 2: Databaseproject

Business Rules

1. Books provide one or more skill2. One skill may be associated with one or more book.3. Book is read by zero or more student.4. Student reads zero or more book.5. Book can either be fiction or nonfiction.6. Student can have zero or more skill.7. One Skill may belong to zero or more students.8. Skill can have one or many prerequisite.9. Same skill can be prerequisite of zero or more skill

Page 3: Databaseproject

Transactions, optimization, security

1.) Begin TransactionInsert into group2 1book (Book_ID, BookTitle, Author_First_Name, Author_Last_name) values (

1203, Cat in the Hat, Dr, Seuss) Insert into group2 1nonfiction (Style, Book_Id) values (comedy, 1203)Insert into group2 1skill (idSkill, Skill_Description) values ( 1039, Rhyming skills)Commit;

2.) I decided to create a new query and optimize itSelect Book_ID, BookTitle, Author_First_Name, Author_Last_NameFrom 1bookWhere Book_ID = ‘1234’Groupby BookID

3.) One recommendation that I would make to secure the database is to use user access management. This will help protect the database sensitive information because we would be able to define each user in the database. Also, we would be able to create passwords, and assign certain access rights to each account. For example an account may only have READ access to certain parts of the database. This would protect and allow us to not have to give full rights to an account that does not need them.