CDB3034 - Database Programming Assignment

Assignment Help Database Management System
Reference no: EM132553280

CDB3034 - Database Programming Assignment - UOW Malaysia KDU Penang University College, Malaysia

Overview - In this assignment, you are required to use the new database called Publication. The database consists of seven schemes namely author, publication, wrote, proceedings, journal, article and book.

Programming Requirements:

You must NOT use any implicit cursors, table joins, sub-queries, set operators, group functions or SQL functions (such as COUNT) in the PL/SQL functions.

Use explicit cursor in retrieving multiple rows of records.

Task 1 -

Write a PL/SQL procedure called print_publication that print a list of publication records for each publication by an author name as parameter input. You should sort the name of the author for the publication in ascending order and follow by the year of publication (earliest first). The sample output format is as follows:

Pubid: pubid

Type : {book | journal | proceedings | article}

Authors: author-1, ... , author-k

Title: title

In addition, provide appropriate information for each particular type of publication. For example if the publication is under journal category, the following information should be printed:

Volume: volume

Number: number

Year: year

In the case of articles, the relevant publication details should also be printed out. The year of an article could be found in other relations such as book, journal and etc. Also a summary page should be printed as follows at the end of the output to summarize total publication for the author.

Proceedings: 1

Journal : 1

Article : 0

Book : 0

Total Publication: 2

Call the procedure from an anonymous block and capture the results. Appropriate exception handling should be performed for the above cases by sending the error message to the standard output

Task 2 -

a) Create a new table called publication_master. This table is used to consolidate the all 5 relations namely publication, proceedings, journal, book and article. Introduce a new column called type to specify the category of publication (either journal book or etc).

Each category of publication is having common or different types of details such as book has publisher and year and on the other hand journal has volume, number and year. Your new table should hold these values with common column names such as detail1, detail2, detail3, and detail4. However, you should display the columns with appropriate names programmatically using PLSQL in later process.

Write a PL/SQL stored procedure called merge_publication to transfer all the data from five respective tables into the publication_master table. This procedure should indicate how many records successfully posted into the master table upon execution to standard output. In addition, give any appropriate error message for any unsuccessful cases such as no publication details found in proceedings, journal, article, and book tables.

b) Based on the merge_publication table create in part 2a, create another PL/SQL stored procedure called print_article to print a list of publication records for each article appearing in a proceedings, journal or book which identified by a pubid supplied as input parameter. The articles should be displayed in ascending order on starting page number.

Call the procedures from an anonymous block and capture the results. Appropriate exception handling should be performed for the above cases by sending the error message to the standard output.

Task 3 -

You have been asked by the client to investigate the physical design of the publication database. Prepare a simple report (300-400 words) to review the design of the database and provide appropriate approaches/ways to improve database performance in accessing or searching the publication records. The report should contain a fully justified set of recommendations proposing an appropriate solution (e.g. using appropriate index in particular search column).

You should submit the following:

A complete source code (PL/SQL) in softcopy and hardcopy format. Save your solution according to the question number (e.g. q1.sql, q2a.sql ...etc)

Report:

Title page. Include the names and ID's.

Appropriate screen shots for all the test cases of question 1, question 2a and question

2b. A review report for question 3.

Conclusion

References

An appendix with

Program listings for question 1, question 2a, and question 2b.

The code should be well structured and self-documentation features such as sensible variable names and comments should be used.

Reference no: EM132553280

Questions Cloud

Typical constraints typically faced by iot devices : Discuss the typical constraints typically faced by IoT devices when needing to communicate.
Enterprise risk management framework : What are baseline security requirements that should be applied to the design and implementation of applications, databases, systems, network infrastructure,
Discuss benefits and challenges with proposed erm : You are a Consultant tasked with creating an ERM framework for organization. Discuss the benefits and challenges with the proposed ERM.
Price and channel strategy : Construct a plan for setting price and a distribution model (place/distribution) in Microsoft® Word. Daily pricing, promotion pricing, List pricing
CDB3034 - Database Programming Assignment : CDB3034 - Database Programming Assignment Help and Solution - UOW Malaysia KDU Penang University College, Malaysia - Assessment Writing Service
Some aspect of operations and logistics management : By the end of this module, you are responsible for submitting a research paper on some aspect of Operations and/or Logistics Management.
Ethics scandal using danforth library resources : Research a recent ethics scandal using Danforth Library resources. Conditions that gave rise to the unethical business strategies and behavior.
Research recent ethics scandal : Research a recent ethics scandal using Danforth Library resources. Conditions that gave rise to the unethical business strategies and behavior.
Draw use case description for registering accounts : Draw use case description for registering accounts and making a booking. Draw a Sequence diagram. Draw activity diagram

Reviews

Write a Review

Database Management System Questions & Answers

  Oracle has many features for managing and tracking users we

oracle has many features for managing and tracking users. we have discussed user accounts with username password

  Draw an erd for the database

Professors and GTAs are assigned to teach the sections of each class being offered in a semester.

  Create database of measured meteorological data

You are creating a database of measured meteorological data for use in weather and climate research. Explain a structure type measured_data_t with components site_id_num.

  Ideal choice for relational database design

The Entity-Relationship Diagram is widely used in the design of relational databases. Why do you think this is so - what is it about this model that makes it the ideal choice for relational database design?

  Provide summary of current state of the research

Research Article IT344 -  Review articles provides summary of current state of the research on a particular topic -  main people working in a field

  ITECH 2004 Data Modelling Assignment

ITECH 2004 Data Modelling Assignment Help and Solution, Federation University - Assessment Writing Service - Describe relational algebra and its relationship

  Locations of r rats

A rat can travel to its adjacent locations (left, right, top and bottom), but to reach a cell, it must be open. Given the locations of R rats, can you find out whether all the rats can reach others or not.

  What are the keys to erp implementation success

ERP systems have become the norm for most large corporations. What are some of the advantages they provide? What are the keys to ERP implementation success?

  Data dictionary serves as important data management tool

The data dictionary serves as an important data management tool by? assigning attributes to the data, maintaining data in updated form.

  COMP 30021 Database Administration Assignment

COMP 30021 Database Administration Assignment Help and Solution, Middle East College - Assessment Writing Service - Manage database instances and database

  What are the advantages of using the vpd mechanism

What are the advantages and disadvantages of using the VPD mechanism to control access to data sub-themes: What can VPDs do the views cannot?

  Demonstrate skills in building a database application

BN204 - Database Technologies - Data model development and implementation - Melbourne Institute of Technology - Analyse business decisions related to DB.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd