Database Questions

Apr 1st, 2014
Price: $30 USD

Question description

1- A developer used the following section of code to “one-up” number a column in his table.Is there

any downside to this method other than gaps?If so what?

Declare @new_numberint

Select @new_number = (select max(emp_nbr) from employee)

Select @new_number = @new_number + 1

Insert into employee values (@new_number, “Harry”, “Shasho”)



What is the purpose of a checkpoint(not what happens,but why)?


3-Is there any advantage to using triggers for validation as compared to stored procedures?If so what?



List 2 ways to prevent a deadlock

Tutor Answer

(Top Tutor) Farrukh
School: University of Virginia

Studypool has helped 1,244,100 students

Review from student
" Wow this is really good.... didn't expect it. Sweet!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1819 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors