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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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