Chat with us, powered by LiveChat SQL phase 4 | Writedemy

SQL phase 4

SQL phase 4

Enterprise  Database  Management  Systems

Phase#4  of  your  Database  Application

Database  Constraints,  Triggers,  Views  and  Stored  Procedures

Due  Date:    Sunday  May  5,  2019

The  weight  of  this  project  component  is  10%  of  the  course  grade.

Please  submit  one  “pdf”  document  showing  a  script  of  all  your  interactions

1. Add  to  your  CREATE  TABLE  statements  from  Phase  3  foreign  keys  and  other  constraints  where   necessary.

2. Write   five   data   modification   commands   (INSERT,   DELETE   and   UPDATE)   on   your   database   application.   These   commands   should   be   ”interesting”,   in   the   sense   that   they   involve   some   complex   feature,   such   as   inserting   the   result   of   a   query,   updating   several   tuples   at   once,   or   deleting  a  set  of  tuples  that  is  more  than  one  but  less  than  all  the  tuples  in  a  relation.  Include  in   your  submission  the  results  displayed  by  the  corresponding  EXPLAIN  statements  to  show  your   modification  commands  running  in  a  convincing  fashion.

3. Create  two  views  on  top  of  your  database  schema.  Show  your  CREATE  VIEW  statements  and  the   response   of   the   system.   Also,   show   a   query   involving   each   view   and   the   system   response.   Finally,  show  what  happens  when  you  try  to  update  your  view,  say  by  inserting  a  new  tuple  into   it.  Are  any  of  your  views  updateable?  Why  or  why  not?  (Essentially,  a  view  is  updateable  if  it  is  a   selection  on  one  base  table.)

4. Write  two  stored  functions  or  procedures.  Each  stored  procedure/function  should  involve  more   than  one  SQL  statement.  Each  should  use  one  or  more  parameters  in  a  significant  way.  Include   listings   of   your   code   in   your   submission.   Also,   include   corresponding   EXPLAIN   statements   showing   these   stored  procedures  or   functions   called  at   least  once  each.   Similarly,   include   the   results  of  queries  that  demonstrate  that  the  functions  have  had  their  intended  effect.

5. Write   two   SQL   Triggers   or   SQL   Assertions.   It   would   be   ”interesting”   if   at   least   one   trigger’s   action  calls  a  stored  procedure  or  function  and  at  least  one  is  an  ”instead  of”  trigger.   Include  your   trigger  declarations  (CREATE  TRIGGER  statements)  along  with  your  submission.   Also,  show,  for  each  trigger,  the  effect  of  two  database  modifications.  One  modification  should   trigger  the  trigger  (making  the  trigger’s  condition  true),  and  the  other  not  (making  the  trigger’s   condition   false).   Include   in   your   submission  queries   that

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order