12 Apr The data manipulation language?(DML)?is used to create,?read,?update,?and delete data from a table.?The data definition language?
The data manipulation language (DML) is used to create, read, update, and delete data from a table. The data definition language (DDL) is used to create and alter the structure of the database itself, like creating a table, it's columns, define and modify the primary and foreign keys, stored procedures, delete columns, tables, and even the entire database. Your SQL statements should require a variety of SQL capabilities, such as various kinds of join, aggregate functions, etc. (This presupposes a good initial domain choice.)
Follow these steps to complete your assignment:
- Populate your database with sample data to allow testing of the schema and the various transactions. Each table should have a minimum of ten rows.
- After you've entered data, create some sample queries to see if the output is what you expected.
- Create some sample reports to make sure these also produce similar results.
- Make any necessary corrections to the database design during this stage and before you enter all of your personal records. If you find any problems, correct the design.
- Enter all of your personal records.
- Write your SQL Script.
Attach is the last paper to reference
1
4
Artist
PK Artist_ID (varchar)
Name (char)NOT NULL
Event
PK Event_ID(varchar)
Date(datetime)
Organizers
PK Organizer_ID(varchar)
Name(char) NOT NULL
Manager
PK Manager_ID(varchar)
Name(char) NOT NULL
Album
PK Album_ID(varchar)
Title(char) NOT NULL
FK Artist_ID(varchar)
Year(year)
FK Label_ID(varchar)
Label
PK Label_ID(varchar)
Name(char) not null
(
Producer
PK Producer_ID(varchar)
Name(char) NOT NULL
Release
PK Release_ID(varchar)
Date(datetime)
1 1
*
*
1
The following Is the DDL SQL statement that is used to create the Musician database:
mysql> CREATE DATABASE Musician;
mysql> use musician
mysql> create table Artist
-> (Artist_ID varchar (255) PRIMARY KEY,
-> Name char (255) NOT NULL);
mysql> CREATE TABLE Label
-> (Label_ID varchar (255) PRIMARY KEY,
-> Name char (255) NOT NULL);
mysql> CREATE TABLE Event
-> (Event_ID varchar (255) PRIMARY KEY,
-> Date datetime);
mysql> CREATE TABLE Organizers
-> (Organizer_ID varchar (255) PRIMARY KEY,
-> Name char (255) NOT NULL);
mysql> CREATE TABLE Producer
-> (Producer_ID varchar (255) PRIMARY KEY,
-> Name char (255) NOT NULL);
mysql> CREATE TABLE Manager
-> (Manager_ID varchar (255) PRIMARY KEY,
-> Name char (255) NOT NULL);
mysql> CREATE TABLE Album
-> (Album_ID varchar (255) PRIMARY KEY,
-> Title char (255) NOT NULL,
-> FOREIGN KEY (Label_ID) REFERENCES Label(Label_ID),
-> Year year,
-> FOREIGN KEY (Artist_ID) REFERENCES Artist(Artist_ID);
Reference
Captain, F. A. (2018). Six-step relational database design: A step by step approach to relational database design and development. Fidel A Captain.
Embley, D. W., & Thalheim, B. (2012). Handbook of conceptual modeling: Theory,
Schmidt & Brodie, M. L. (2018). Relational database systems: Analysis and comparison. Springer Science & Business Media.
Safety Engineering and Risk Analysis. https://doi.org/10.1115/imece2016-66791
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 WriteEdu. 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 help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.