CS143 Project 1 Due: Oct 24 th, 11:59 PM All the materials will be posted in courseweb.

Slides:



Advertisements
Similar presentations
What is MySQL? MySQL is a relational database management system (A relational database stores data in separate tables rather than putting all the data.
Advertisements

Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Need your MyMathLab card with your access code Need a Valid Address Need to know Purdue’s zip code is and your course ID for your Class You.
CS34311 CS3431 – Database Systems I Project Overview Elke A. Rundensteiner.
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Laboratory 1: Introduction to Relational.
CS34311 CS3431 – Database Systems I Project Overview Murali Mani.
7/2/2015Murali Mani -- CS5421 Database Management Systems DB Application Development Project Statement + Introduction to Oracle.
MBAC 611.  We have been using MS Access to query and modify our databases.  MS Access provides a GUI (Graphical User Interface) that hides much of the.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Introduction to UNIX/Linux Exercises Dan Stanzione.
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Linux Operations and Administration
PHP1-1 PHP & SQL Xingquan (Hill) Zhu
Session 5: Working with MySQL iNET Academy Open Source Web Development.
INTERNET APPLICATION DEVELOPMENT For More visit:
SQL HW1 Turn in as a hardcopy at the start of next class period. You may work this assignment in groups.
INTERNET APPLICATION DEVELOPMENT For More visit:
Views, Indexes and JDBC/JSP tutorial Professor: Dr. Shu-Ching Chen TA: Haiman Tian 1.
CS450 HW2Page 1 Homework #2  Due the midnight of April 15th.  100 Points  In this homework, you create an SQL script to build the MOVIES database according.
Creating Databases with MySQL Workbench Build the Forums database in Ullman’s Chapter 6.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
Information Systems Today (©2006 Prentice Hall) MySQL 1CS3754 Class Note #8, Is an open-source relational database management system 2.Is fast and.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
CS146 Database Systems &Team Projects Spring 2009.
Relational Database CISC/QCSE 810 some materials from Software Carpentry.
Introduction to MySQL Lab no. 10 Advance Database Management System.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Introduction to Internet Databases MySQL Database System Database Systems.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
CPSC 233 Run graphical Java programs remotely on Mac and Windows.
CS 3630 Database Design and Implementation. Assignment 3 Style! Agreement between database designer and the client. UserName1_EasyDrive UserName2_EasyDrive.
Creating PHPs to Insert, Update, and Delete Data CS 320.
Creating Tables and Inserting Records -- Not easy to edit! -- check constraints! Create table test1 ( C1 char(5) primary key, C2 Varchar2(15) not null.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
MySQL and JDBC Tutorial ECT 7130 Hong Cheng. Supplement on MySQL ement/Supplement4bMySQL.pdf.
1 Short Course on Grid Computing Jornadas Chilenas de Computación 2010 INFONOR-CHILE 2010 November 15th - 19th, 2010 Antofagasta, Chile Dr. Barry Wilkinson.
1 Very basics on DB access Elke A. Rundensteiner.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
(Winter 2016) Instructor: Craig Duckett Lecture 09: Thursday, February 4 th MySQL Workbench, TEAM WORK TIME 1.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
Database Access Control IST2101. Why Implementing User Authentication? Remove a lot of redundancies in duplicate inputs of database information – Your.
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
CHAPTER 10 PHP MySQL Database
Assignment 1 tutorial. Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015.
Working with MySQL A290/A590, Fall /07/2014.
Backup Tables in SQL Server. Backup table method Cape_Codd database is used in this example 1.Righ click the database that contains the table you want.
CMPE 226 Database Systems April 19 Class Meeting Department of Computer Engineering San Jose State University Spring 2016 Instructor: Ron Mak
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Fundamental of Databases
ORDER BY Clause The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of.
CSE 103 Day 20 Jo is out today; I’m Carl
CS320 Web and Internet Programming SQL and MySQL
Relational database and SQL MySQL LAMP SQL queries
Basics on DB access Elke A. Rundensteiner.
Database application MySQL Database and PhpMyAdmin
PHP / MySQL Introduction
Testing REST IPA using POSTMAN
Assignment Preliminaries
CS3220 Web and Internet Programming SQL and MySQL
Important: This document included only TEST application.
Presentation transcript:

CS143 Project 1 Due: Oct 24 th, 11:59 PM All the materials will be posted in courseweb.

Before we start Two things to do: Find your partner At most 2 students Send team information (you and your partner's name, UID, , expected password for your MySQL account) to one of TAs by Oct 12 th Note: This team is for your project, NOT homework. You need to finish your homework individually. Get familiar with Linux and MySQL

Linux A Unix-like, open source operating system All the projects will be done on the SEASNET linux server. lnxsrv03.seas.ucla.edu How to access the server? If you are using SEASNET machine, all SEASNET machines already have a secure shell client installed, so you simply need to run the client. If you need to access from a personal machine that does not have a secure shell client, you can download a windows secure shell client exe html exe html Or Putty Mac OS X or Unix machines have a secure shell client preinstalled. Simply type "ssh -l lnxsrv03.seas.ucla.edu" within your command line interface

Linux Account for Linux Server Apply SEASNET account if you don’t have one Frequently used Linux command: Try it!

MySQL Already installed on lnxsrv03 server Username & password will be assigned after you submit your team request. MySQL document: resources/articles/mysql_intro.htmlhttp://dev.mysql.com/tech- resources/articles/mysql_intro.html

Project 1 Step 1: Loading the data Step 2: Running easy queries Step 3: Applying some constraints Step 4: Join operation Step 5: A more complicated query Step 6: Putting all together

Step 1: Loading the data There are 5 data files located at /u/cs/class/cs143/cs143ta/proj1/data/ Author.csv, Coauthored.csv, Authored.csv, Paper.csv, Cites.csv Also available at the courseweb Task: Load these 5 data files to MySQL using the “load data” command Before Loading, you should: 1. Log in MySQL 2. Use your own database 3. Create 5 tables: Author, Coauthored, Authored, Paper, Cites

Step 1: Loading the data Table Author: ID (INTEGER) author_name (VARCHAR) first_name (VARCHAR) last_name (VARCHAR) preferred_name(VARCHAR ) Table CoAuthored: ID (INTEGER) author1ID (INTEGER) author2ID (INTEGER) paper_ID (INTEGER) Table Cites: ID (INTEGER) paper1ID (INTEGER) paper2ID (INTEGER) is_self_citation (INTEGER) Table Authored: ID (INTEGER) AuthorID (INTEGER) paperID (INTEGER) (VARCHAR) rank_in_author_list (INTEGER) original_name_str (VARCHAR) _domain (VARCHAR) _country (VARCHAR) affiliation_str (VARCHAR) affil (VARCHAR) Table Paper: ID (INTEGER) paper_id (INTEGER) title_str (VARCHAR) authors_str (VARCHAR) area (VARCHAR) num_abstract_wds (INTEGER) num_authors (INTEGER) num_kb (INTEGER) num_pages (INTEGER) num_revisions (INTEGER) num_title_wds (INTEGER) comments_str (VARCHAR) submit_date (DATE) submitter_ (VARCHAR) submitter_name (VARCHAR)

Step 2: Running some easy queries Write queries that return the answers to these questions: 1)“Give me the author_name of all the Authors with first_name ‘Kevin’.” 2)“Return author_name and preferred_name of all the Authors who have different author_name and preferred_name.” Sort your results first by author_name then by preferred_name.

Step 3: Applying some constraints Add a unique key constraint to the CoAuthored table in which the combination of (author1ID, author2ID, paper_ID) should be unique. Add foreign key constraints for author1ID and author2ID. More details in project description.

Step 4: Join operation Write queries that return the answers to these questions: 1)“Return the author_name of all co-authors of the author with ID ‘42673’.” 2)“Return the author_name of all authors who have more than 10 co-authors.”

Step 5: A more complicated query Write one query that returns the answer to following question: “Give me the author_name of all the authors with the number of papers they co-authored in, in the decreasing order of the number of paper.”

Step 6: Putting all together Create a script named P1 that shows every step in this part of the project. You can use the ‘--' tag to make comments within your SQL script. Make sure you give adequate comments documenting each part of each step. Execute the script and save all outputs in a file call P1_Output. Add one README file, which includes you and your partner's name, UID, , and any other information you think is useful. Make a zip file and submit through courseweb.