Create database db2game

Assignment Help Database Management System
Reference no: EM13333146

create database DB2GAME;
connect to DB2GAME;

CREATE TABLE marks (
year integer not null,
course_code character(7) not null,
student_id character(7) not null,
midterm integer not null,
final integer not null,
unique (year, course_code, student_id));

COMMENT ON TABLE marks IS 'Contains the midterm and final marks of students in Computer Science and Engineering courses during the years 2004 - 2006';

LOAD FROM "C:\db2game\marks.csv" of del insert into marks (year, course_code, student_id, midterm, final);

CREATE TABLE log (
date date not null,
month character(5) not null,
week integer not null,
tutor_student_id character(7) not null,
hours dec(3,2) not null,
tutee_student_id character(7) not null,
unique (date, tutor_student_id, tutee_student_id));
COMMENT ON TABLE log IS 'Contains the information of each tutoring session';
LOAD FROM "C:\db2game\log.csv" of del insert into log (date, month, week, tutor_student_id, hours, tutee_student_id);

CREATE TABLE tutors (
student_id character(7) not null primary key,
given_name character(15) not null,
family_name character(15) not null,
course_code character(7) not null,
hourly_wage dec(4, 2) not null,
status character(10));
COMMENT ON TABLE tutors IS 'Contains the information of each tutor in the company';
LOAD FROM "C:\db2game\tutors.csv" of del insert into tutors (student_id, given_name, family_name, course_code, hourly_wage, status);

Reference no: EM13333146

Questions Cloud

What will the value of the coefficient restitution have : suppose we place a small explosive charge on one of the bumpers so that it would explode on contact, pushing the 2 cars apart. What will the value of the coefficient restitution have
Define what is the wavelength of the radiation : A microwave oven operates at 3.00GHz . What is the wavelength of the radiation produced by this appliance? Express the wavelength numerically in nanometers.
Prepare the journal entry to record each of the transaction : Prepare the journal entry to record each of the following independent transactions. (Use the number of the transaction in lieu of a date for identification purposes.) 1. Services provided on account of $1,530
How much work is required to move the charge : A 3.3-mC charge is moved through a 150-V potential difference. How much work is required to move the charge
Create database db2game : LOAD FROM "C:\db2game\tutors.csv" of del insert into tutors (student_id, given_name, family_name, course_code, hourly_wage, status);
What are the ways that customers affect a firms costs : What are some ways that customers affect a firm's costs and calculate the ratio of the prevention, appraisal, internal failure, and external failure costs to sales for March and April.
Explain what is the threshold frequency : Here are some data collected on a sample of cesium exposed to various energies of light. Light energy ({\rm eV}) Electron emitted. Electron KE ({\rm eV}) 3.87 no - 3.88 no - 3.89 yes 0 3.90 yes 0.01 3.91 yes 0.02 Part A What is the threshold frequ..
How much electric energy is lost in the process : A circular coil of wire 6.61 cm in diameter has a resistance of 3.3 ?. It is located in a magnetic ?eld of 0.15 T directed at right angles to the plane of the coil. How much electric energy is lost in the process
Prepare an income statement for the month ended may : Just Rolling Along Inc. was organized on May 1, 2012, by two college students who recognized an opportunity to make money while spending their days at a beach along Lake Michigan.

Reviews

Write a Review

Database Management System Questions & Answers

  Create a data warehouse conceptual design

Create a Data Warehouse conceptual design using Star Schema Modelling and document all steps during the design process

  Write functional dependencies in table concerns invoicing

Write the functional dependencies in the following table that concerns invoicing (an application Premiere Products in considering adding to its database), subject to the specified conditions.

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Converting user form into 1nf and 2nf

Complete database exercise by converting user form located the evaluation procedures section of the syllabus into 1NF and 2NF.

  How many times the top module call each subordinate module

Select the best answer for each of the multiple choice questions below about the Structure Chart shown her

  What are the candidate keys of r

Compute the closure sets of R - find all non-trivial dependencies and what are the candidate keys of R?

  Sales transaction in retail clothing

Examine different sales transactions. Design a context diagram and a level-0 diagram that represent the selling system at the store.

  Delete an existing product from the database

Utilise an include statement to refer to connection.php instead of the long version of the database connection code so that you can keep the database more secure. See Notes for more details.

  Key value of fourth index record on top level

What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

  Prepare fully attributed data model

Use the results of the transcripts of an interview with IT consultant. Prepare a Fully Attributed Data Model. Add the data attributes for each entity."

  Create database that implements the proposed data warehouse

Knowing the customers for targeted advertising. The board would like to know which type of customers (age or gender) are more interested in which types of cars (type)

  Explaining uses for views

Views are integral part of virtual private databases, yet views are utilized for many other reasons. Find out many other uses for views.

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