subject

Consider the following information about a university database: • professors have an ssn, a name, an age, a rank, and a research specialty.• projects have a project number, a sponsor name , a starting date, an ending date, and a budget.• graduate students have an ssn, a name, an age, and a degree program (e. g., m. s.or ph.• each project is managed by one professor (known as the project’s principal investigator).• each project is worked on by one or more professors (known as the project’s co-investigators).• professors can manage and/or work on multiple projects.• each project is worked on by one or more graduate students (known as the project’s research assistants).• when graduate students work on a project, a professor must supervise their work on the project. graduate students can work on multiple projects, in which case they will have a (potentially different) supervisor for each one.• departments have a department number, a department name, and a main office.• departments have a professor (known as the chairman) who runs the department.• professor’s work in one or more departments and for each department that they work in, a time percentage is associated with their job.• graduate students have one major department in which they are working on their degree.• each graduate student has another, more senior graduate student (known as a student advisor) who advises him or her on what courses to take.3. (20pt) triggers and stored procedures: add the following triggers and stored procedures to your database: a. female_faculty(): a function that returns the percentage of the female faculty in the university. b. total_people(pno): a function that returns the total number of people (pi, co-pi, students) who work on the project with pno. c. faculty_restrict: a trigger to ensure that each project has at most 4 faculty members as co-pi. d. student_restrict: a trigger to ensure that a student works on no more than two projects. write in the postgresql

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:10
3. bob is arguing that if you use output feedback (ofb) mode twice in a row to encrypt a long message, m, using the same key each time, it will be more secure. explain why bob is wrong, no matter what encryption algorithm he is using for block encryption (15 points).
Answers: 3
question
Computers and Technology, 22.06.2019 16:50
Consider a slotted aloha system, where the time slot equals the fixed duration of each packet. assume that there are 4 stations a,b,c,d sharing the medium. (a) stations a,b,c,d receive one packet each from higher layers at times 1.3, 1.5, 2.6,5.7 respectively. show which transmissions take place when, according to the slottedaloha protocol; describe all transmissions until all four packets have been successful.when needed, each station has access to the following sequence of random number, provided by a random number generator and drawn uniformly between 0 and 1: (1) station a draws numbers: 0.31, 0.27, 0.78, 0.9, 0.9, 0.11, 0. (2) station b draws numbers: 0.45, 0.28, 0.11, 0.83, 0.37, 0.22, 0. (3)station c draws numbers: 0.1, 0.2, 0.3, 0.4, 0. (4) station d draws numbers: 0.36, 0.77, 0.9, 0.1, 0.1, 0.1, 0.1, 0. (b) in slotted aloha, a station transmits in each time slot with a given probability. what probabilities would you assign to each of the four stations so as to: (i) maximize the efficiency of the protocol? (ii) maximize fairness among the four stations? (c) will the efficiency increase or decrease if we modify slotted aloha as follows: (i) get rid of slots and allow stations to transmit immediately? (ii) implement carrier sensing? (iii) implement collision detection? (iv) implement collision avoidance?
Answers: 3
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
You know the right answer?
Consider the following information about a university database: • professors have an ssn, a name, an...
Questions
Questions on the website: 13722367