Database Questions

Apr 1st, 2014
SoccerBoss
Category:
Calculus
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”)

_________________________________________________________

2-

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?

____________________________________________________

4-

List 2 ways to prevent a deadlock



Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Cornell University
PREMIUM TUTOR

Studypool has helped 1,244,100 students

Summary
Quality
Communication
On Time
Value
tinytim47
Mar 19th, 2017
" 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)

1829 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