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

  Construct a use-case diagram

Construct (i) a use-case diagram (ii) a class diagram (iii) System Sequence Diagram (iv) detailed Sequence Diagram or diagrams as appropriate and (v) a state chart for a car object/class according this scenario. Include appropriate properties for ..

  Explain evaluating a proposal for acquisition and sourcing

When evaluating a proposal for acquisition and sourcing, are there considerations that are unique in the case of an IT project versus a non-IT project

  What is the key value of the 4th index

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 a report related to business communications

Prepare a report - The report should be related to Business communications.

  What are the data entities of this enterprise

Consider a student club or organization in which you are a member. What are the data entities of this enterprise? List and define each entity

  Write an application that creates a database named phonebook

Write an application that creates a database named PhoneBook. The database should have a table named Entries, with columns for a person's name and phone number. Next, write an application that lets the user add rows to the Entries table,

  Analyzing hard-to-obtain data from two separate databases

You are interested in analyzing some hard-to-obtain data from two separate databases. Each database contains n numerical values.

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Design a case for other student to investigate

You need to design a CASE for other student to investigate. As an example; at the end of this week you should generate the following materials: A case description.

  Design an relational model model of a database

Design an Relational Model (RM) model of a database (DB) that will be useful for each of the chosen enterprises. (Hint: You may choose to translate the 2 ER model designs you created ).

  Describe implement relationship between employees-projects

Describe how you would implement relationship between employees and projects in each of the given scenarios: Many employees can work on given project, but each employee can work on only single project.

  Write procedure to construct character frequency table

Write the procedure named Get_frequencies which constructs character frequency table. Input to procedure must be a pointer to the string, and pointer to array of 256 doublewords.

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