Reference no: EM13719308
1. What is a database transaction? List and define the transaction properties. It is important that you answer in your own words. Please use diagrams to enhance your answer.
2. Discuss Concurrency control. What is it use for? Why is it important? It is important that you answer in your own words. Please use diagrams to enhance your answer
Q3. The following question are based on these database tables:
EMPLOYEE
FNAME
|
MIDINT
|
LNAME
|
SSN
|
BDATE
|
ADDRESS
|
SEX
|
SALARY
|
SUPER_SSN
|
Dept_No
|
James
|
A
|
Borg
|
123123123
|
|
Houston, TX
|
M
|
55000
|
Null
|
1
|
Franklin
|
S
|
Wong
|
234234234
|
|
Houston, TX
|
M
|
40000
|
123123123
|
5
|
John
|
Q
|
Smith
|
345345345
|
|
Houston, TX
|
M
|
30000
|
234234234
|
5
|
Jennifer
|
L
|
Wallace
|
456456456
|
|
Bellaire, TX
|
F
|
43000
|
123123123
|
4
|
Alicia
|
M
|
Zalaya
|
567567567
|
|
Spring,
TX
|
F
|
25000
|
456456456
|
4
|
Ramesh
|
R
|
Narayan
|
678678678
|
|
Humble, TX
|
M
|
38000
|
234234234
|
5
|
Joyce
|
V
|
English
|
7897789789
|
|
Houston, TX
|
F
|
25000
|
234234234
|
5
|
Ahmed
|
B
|
Jabbar
|
890890890
|
|
Houston, TX
|
M
|
25000
|
456456456
|
1
|
DEPARTMENT
Dept_No
|
Dept_Name
|
1
|
Headquarter
|
4
|
Administration
|
5
|
Research
|
Write out the SQL queries pertaining to the following questions. You must write the SQL query such that if they was copied and pasted on a database, the query would run.
a) Give me every thing you have on employee.
b) Give me only the social security numbers, last names and the first names of all employees.
c.) Show me all the salaries, but do not show me duplicate salaries figures.
D) Show me the ssn of employees that are paid 25, 000 in salary.
e) Show me the last name of all male employees
f) Show me the department number, the first and last name of all employees. Make sure that the department's number are displayed in order from low to high.
g) Give me a list of all those employees whose last name is English and whose sex is female
h) Give me the total salary paid to all the employees who work in department 5
i) Give me average salary for each department.
j) Show me the employees' first name, last name along with the department name they work for.
Q4 Include these business rules:
- An employee could be staff or a professor or an administrator.
- A professor may also be an administrator.
- Staff employees have a work level classification, such a Level I and Level II.
- Only professors can chair a department. A department is chaired by only one professor.
- Only professors can serve as the dean of a college. Each of the university's colleges is served by one dean.
- A professor can teach many classes.
- Administrators have a position title.
Given that information, create the complete ERD containing all primary keys, foreign keys, and main attributes. In VIZIO.
What are their compositions and amounts
: Assume that the overall composition is 0.6 wt%C (and 99.4 wt%Fe) and a total weight of 10Kg. At T=727C, how many phases are present and what are their compositions and amounts?
|
Find the steady state temperature in the plate
: You have a 2 dimensional (just X&Y) square plate with sides measuring a=24. The upper and lower sides of the plate are perfectly insulated, but the right and left sides are not. The left side is kept at 0°C and the right side is kept at f(y) °C. Find..
|
Find the temperature in the middle of the bar
: You have a bar of silver of length 10 cm and constant cross section of area (density 10.6 g/cm^3), thermal conductivity , specific heat that is perfectly insulated laterally, with the ends of the bar kept at 100*C for a long time. Then at some instan..
|
Identify and describe existing and potential competitors
: Identify and describe existing and potential competitors/allies, then summarise the strengths and weaknesses of each - Develop a separate summary statement
|
What is a database transaction
: What is a database transaction? List and define the transaction properties. It is important that you answer in your own words. Please use diagrams to enhance your answer.
|
Identify recruitment barriers and possible solutions
: What are some possible solutions to the shortage of primary physicians when specialists earn multiple-times more than their primary care counterparts and Does your response suggest anything about the culture of medicine and value systems of indivi..
|
What is it about chimpanzee society
: What research questions might Dr. Hahn and her associates ask and what types of data might the scientists collect and for what reasons? How would these data allow Dr. Hahn to test the proposed hypothesis?
|
Determine the maximum rate of heat removal from the house
: An air conditioning system is used to maintain a house at 70F when the temperature outside is 90F. If the air conditioning system draws 5 hp of power when operating, determine the maximum rate of heat removal from the house that it can provide.
|
How much did it cost you during this time
: In your four years at college you dry your hair every day for 5 minutes with a 1200w hair dryer. how much did it cost you during this time
|