|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#51. If you attempt to create a stored procedure using the name of an existing stored procedure in the database you will get an error. Therefore, when writing a script to create a stored procedure it is important to check for an existing stored procedure with the same name and drop it if it exists. Assuming that you are the database owner, which of the following SQL batches will drop a stored procedure named sp_myprocedure from the current database?
Show comments for this question (0)
Add comments
Link to this question
|
|
#54. You are DBA at photo-reseller shop. Your shop buys photographs from organizations, individual photographers and occasionally from your customers. You also have photographers on staff. From time to time individual independent photographers become your employees and sometimes leave for independent careers. You create the following tables: В§ INDIVIDUAL with IndividualID as Indentity - Primary Key, and with Employee as boolean В§ ORGANIZATION with OrganizationID as Indentity - Primary Key В§ INDIVIDUALORGANIZATION with IndividualID - foreign key references INDIVIDUALS.IndividualID, and OrganizationID - foreign key references ORGANIZATIONS.OrganizationID (Choose all that apply)
Show comments for this question (0)
Add comments
Link to this question
|
|
#55. You are designing a data model to track research projects. A project might be undertaken in one research institution or in multiple institutions, some research institutes are part of a university or a large research institutes.
Each project is assigned a group of Scientists who might perform different jobs in each project. A scientist who is a member of the staff at one institute might also be assigned to a project that is being undertaken at another institute. Exhibit : Project: (PK) projectID Institutes: instituteID Projectinstitution : (PK) instituteID, projectID ScientistProject: (PK) scientistID, projectID, jobname Scientist: (PK) scientistID Job: (PK) jobID - No self join on Institution table - No direct relation between Scientist and Institution
Projectinstitution TB: projectid, institutionID ----> Institution TB: instituteID Projectinstitution TB: projectID, institutionID ----> Project TB: projectID Projectscientist TB: projectID, scientistID, jobname ----> Project TB: projectID Projectscientist TB: projectID, scientistID, jobname ----> Job TB: jobID Projectscientist TB: projectID, scientistID, jobname ----> Scientist TB: scientistID
You want to accomplish the following goals: - Ensure that all the scientist conducting research for any specific project can be reported. - Ensure that a scientist's job for a specific project in a specific institute can be reported. - Ensure that all of the institute participating in any specific project can be reported. - Ensure that the institute at which a scientist is a staff member can be tracked. - Ensure that an institute can be identified as part of another institute.
What task will be achieved (choose all that apply):
Show comments for this question (0)
Add comments
Link to this question
|
|
#56. Scientists in a research institute, Institute may have parent organization/institute. Scientists might work for more than one institute. Exhibit: В§ Project: (PK) projectID, instituteID В§ Institutes: instituteID, instituteID2 В§ InstituteScientist: (PK) instituteID, scientistID В§ ScientistProject: (PK) scientistID, projectID В§ Scientist: (PK) scientistID, jobID В§ Job: (PK) jobID, jobdescr (Choose all that apply)
Show comments for this question (0)
Add comments
Link to this question
|
|
#60. Students from group home with the following structure in exhibit: Table A: StudentId Table B: StudentId, StudentId (for family relationship) (composite) Table C: StudentId, EventName (for student events) Table D: StudentId, Alias (for student alias) Table E: StudentId, Address StudentId in B-D reference StudentId in table A as foreign key Background: Student needs description, may have multiple aliases, Student can relate to student as family relationship. (Choose all that apply):
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.096
|
Server date 04:11 08-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|