Premium Essay

Mysql Code

In:

Submitted By cookiejar
Words 341
Pages 2
Week 2 Homework
The following practice may need to be completed using the databases hosted on wmc3317-2 using WB. Use WB whether you are running queries or creating a relational schema (a data model, essentially). 1. Database: ‘bigpvfc’. Copy/paste your SQL queries below after testing that they work. a) List each customer name, address and the number of orders each has placed. (use tables: customer_t, order_t)
SELECT customeraddress, customername, COUNT(*) AS number_of_orders FROM customer_t, order_t WHERE customer_t.customerid = order_t.customerid GROUP BY customername
ORDER BY customer_t.customerid; b) List only name and address of customers who have placed more than two orders.
SELECT customeraddress, customername, COUNT(*) AS number_of_orders FROM customer_t, Order_t WHERE customer_t.customerid = order_t.customerid GROUP BY customername HAVING number_of_orders > 2;

c) List the running total of the number of total number of orders placed till date as they come in (use table: order_t).
Select orderid, orderdate, (select count(*) from order_t p where co.orderd ate >= p.orderdate) as runtotal
FRom order_t co Order by runtotal;

2. Database: ‘sakila’. Copy/paste your SQL queries below after testing that they work.
While an employee at Sakila, you have been asked to merge the data in the ‘film’ table with an additional list of movies from http://www.hometheaterinfo.com/dvdlist.htm (dvd_csv.zip) because Sakila is expecting a large shipment of additional movies and wants add it to their rental catalog. Import the entire file from the above URL (.csv format) and store it as a separate table in your database. Then select a set of movies from the imported list based on your judgment and update the ‘film’ table with the additional movies you have selected. This is an open-ended question. The entire procedure should be saved

Similar Documents

Free Essay

Abc Ia S Aresume

...Therefore to provide solution to the de-identifying personal health information, Map Reduce application uses jar files which contain a combination of MR code and PIG queries. This application also uses advanced mechanism of using UDF (User Data File) which is used to protect the health care dataset. Responsibilities: Moved all personal health care data from database to HDFS for further processing. Developed the Sqoop scripts in order to make the interaction between Hive and MySQL Database Wrote MapReduce code for DE-Identifying data. Loaded the processed results into Hive tables. Generated test cases using MRunit. Best-Buy – Rehosting of Web Intelligence project The purpose of the project is to store terabytes of log information generated by the ecommerce website and extract meaning information out of it. The solution is based on the open source Big Data s/w Hadoop .The data will be stored in Hadoop file system and processed using PIG scripts. Which intern includes getting the raw html data from the websites, Process the html to obtain product and pricing information, Extract various reports out of the product pricing information and Export the information for further processing. This project is mainly for the re platforming of the current existing system which is running on Web Harvest a third party JAR and in MySQL DB to a new cloud solution technology called Hadoop which can able to process large date sets (i.e. Tera bytes and Peta bytes of data) in order to meet...

Words: 500 - Pages: 2

Free Essay

Analyst

...PHP PHP code can be included alone inside a file or can be embedded inside the html code and runs on webserver. The PHP files have extension of .php. The PHP code syntax is: <?php ‘code goes here’ ?> We have to use semi colon at the end of each command/line. If we only have php code in a file, then we need to make sure that there is no space before the opening php tags or after the closing php tag. If the file extension is .php then we can only view that file through web browser where php is installed even if the file does not have any php code. On our local servers we need to store the files in the root folder, which for WAMP is C:\wamp\www. We also need to make sure that the local server is running. The local port is 80, if we are using a different port than standard then we need to specify that e.g. http://localhost:8888/. We can have as many blocks of php codes inside html as we want. However, we cant nest one php code inside another. We can also insert php code above the html code and that works perfectly fine. The php code directly works with the database so if we are not outputting anything in html the code above html code works just fine. . Period: Period is used to concatenate two strings. Variable: In PHP all variable name start with ‘$’ sign e.g. $name = ‘Ali’;. Remember ‘$this’ is a reserved variable so don’t use this. Some people use parenthesis around variable but it is completely optional to use. String: The php string works the same way...

Words: 5458 - Pages: 22

Premium Essay

Hostel

...Chapter-1 1.1 Introduction Android is an software platform and operating system for mobile devices. It is based on the Linux kernel. It was developed by Google and later the Open Handset Alliance (OHA). It allows writing managed code in the Java language. Due to Android here is the possibility to write applications in other languages and compiling it to ARM native code. Unveiling of the Android platform was announced on 5 November 2007 with the founding of OHA. It's a consortium of several companies 1.1.1 Introduction to Project Environment OPERATING SYSTEM: An operating system (OS) is software consisting of programs and data hostel management system project report runs on computers and manages computer hardware resources and provides common services for efficient execution of various application software. For hardware functions such as input and output and memory allocation, the operating system acts as an intermediary between application programs and the computer hardware, although the application code is usually executed directly by the hardware and will frequently call the OS or be interrupted by it. Operating systems | | Common Features: * Process management * Interrupts * Memory management ...

Words: 15019 - Pages: 61

Free Essay

My Resume

...Anik Mondal Email: anik28042012@gmail.com Permanent Address: Mobile No : +918697070645 Flat No 8,60/11,Andul 1st Bye lane,P.O – Danesh sk lane P.S – Shibpur,Dist – Howrah,West Bengal - 711109 |Career Objective | To work in a productive environment with ample opportunities to build strong technical and professional skills and to experience sustained career growth. |Professional Summary | • Having experience in developing client/server web application using Java/J2EE technology • Proficient in use of Struts , Spring and Hibernet Framework • Good knowledge in exposing and consuming Web services • Versatile in J2EE technologies specially Servlets, JSP, JDBC, EJB • Good Knowledge in Java server programming and MVC-architecture |Working Profile | . Worked at Platoon Technologies...

Words: 705 - Pages: 3

Premium Essay

Hostel Management Synopsis

...SYNOPSIS TITLE OF THE PROJECT HOSTEL MANAGEMENT SYSTEM PROBLEM STATEMENT This project needs to create the Hostel Management System (HMS) to organize the rooms, mess, student’s record and the other information about the students. All hostels without HMS are managed manually by the hostel office. And hence there is a lot of strain on the person who are running the hostel. This particular project deals with the problems on managing a hostel and avoids the problem which occur when carried manually. INTRODUCTION In hostels without a HMS all the things have to be done manually. The Registration form verification to the different data processing are done manually. Thus there are a lot of repetitions which can be easily avoided. Identification of the drawbacks of the existing system leads to the designing of computerized system that will be compatible to the existing system with the system which is more user friendly and more GUI oriented. We can improve the efficiency of the system, thus overcome the drawbacks of the existing system. Hostel management gives on idea about how the students details, room allocation, mess expenditure are maintained in the particular concern. The hostel management system also includes some special features like How many students can live in a room, and the students of the hostel can be recognized from their ID number. The administration has the unique identity for each members as well as students details. The stock management...

Words: 903 - Pages: 4

Premium Essay

Databases in Use

...Databases in use:- 1. Mysql What is MS SQL? It is a relational web hosting database that is used to store web site information like blog posts or user information. MS SQL is the most popular type of database on Windows servers. It is not free but it has many advanced features that make it suitable for businesses. What is MS SQL capable of? In basic terms, an MS SQL database is capable of storing any type of that you want. It will let you quickly store and retrieve information and multiple web site visitors can use it at one time. You will use SQL statements to accomplish all of this. In more technical terms, most versions of MS SQL have the following features: • Buffer management • Logging and Transaction • Concurrency and locking • Replication services • Analysis services • Notification services • Integration services • Full text search service • Stored procedures • Triggers • Views • Sub-SELECTs (i.e. nested SELECTs) What is MS SQL used for? MS SQL is the database of choice for web applications on a Windows platform (using .NET or ASP). These languages make is extremely easy to connect to a MS SQL database. It is also used for many popular content management systems and other scripts. Learn more about what is MS SQL on its official website. They have comprehensive learning material. You should also check out the SQL tutorial on W3Schools and some articles on the SQL Community Server blog. If you are looking for a web host that supports MS SQL, look at...

Words: 2647 - Pages: 11

Free Essay

Database

...Student Database Management System Ajay Shankar Bidyarthy , Abhishek Kumar b.ajay@iitg.ernet.in kumar.ak@iitg.ernet.in November 13, 2012 Abstract: An organized and systematic office solution is essential for all universities and organizations. There are many departments of administration for the maintenance of college information and student databases in any institution. All these departments provide various records regarding students. Most of these track records need to maintain information about the students. This information could be the general details like student name, address, performance, attendance etc or specific information related to departments like collection of data. All the modules in college administration are interdependent. They are maintained manually. So they need to be automated and centralized as, Information from one module will be needed by other modules. For example when a student needs his course completion certificate it needs to check many details about the student like his name, reg number, year of study, exams he attended and many other details. So it needs to contact all the modules that are office, department and examination and result of students. With that in mind, we overhauled the existing Student Database Management System and made necessary improvement to streamline the processes. Administrators using the system will find that the process of recording and retrieving students information and managing their classes, including...

Words: 4780 - Pages: 20

Premium Essay

Winsnort and Apache Installation Instructions

...setup c drive, 8000, set d drive for rest in windows setup Mandatory prerequisites Only use the support programs included our 'AIO Software Pak'! Fresh install of Windows 2000/XP/2003 All Service Packs and Patches applied Hard Drive Partition 'C:/' (System) - Min 5 Gigabytes Hard Drive Partition 'D:/' (System) - Min 60 Gigabytes Make SURE the sensor has a Static TCP/IP settings and can get to the Internet Deactivate any Firewall application on the Windows Intrusion Detection System (WinIDS)! The new WinIDS sensor MUST be allowed to see ALL the network traffic. We would strongly suggest that the Microsoft Baseline Security Analyzer (MBSA) is used to identify and correct common security miss configurations and resolve each issue prior to starting this install. Pre-installation Tasks -Make SURE that 'Internet Information Services' has been removed prior to starting this guide. If your unsure, go into the add/remove programs, select 'add/remove windows components', make SURE the 'Internet Information Services' radio box is unselected, if selected, unselect 'Internet Information Services', and remove the application, and all associated components. -Edit hosts file 127.0.0.1 winids Download the 'WinIDS - All In One Software Pak' and extract the contents into the d:\temp folder. Installing the Basic Windows Intrusion Detection System (WinIDS) Install WinPcap Navigate to the d:\temp folder, double left-click on the 'WinPcap...' file, left-click...

Words: 4494 - Pages: 18

Free Essay

Gut1 Task 4

...documentation of a student management system program testing. The application is java based and using a client/server model wherein which the client inputs, updates and queries to a MySQL database on server end. The database stores student information and data. The information stored by the database is first name, last name, student ID, mentor, GPA , student status, thesis title and thesis advisor for graduate students.. The program also determines tuition cost based on the type of student and enrolled credit hours. The tuition is calculated for undergraduate, graduate and part-time. The program is to provide a tool to add, modify, query and delete student records. There are many methods of testing software applications. The testing performed in this documentation is to test the functionality of the program. The testing did not go in depth as far as looking at the specific code. The testing checks the user interface, which is command line in the program, database(MySQL), client and server functionality. The testing is performed manually from the end user point as documented in the herein contained Test Cases. The following requirements must be met to run the program: Java Integrated Development Environment (IDE), MySQL database. Netbeans 7.0.1 was utilized in making the program and testing it . MySQL is open source SQL database. They both can be downloaded for free of charge. Windows 7 OS was used to host both pieces of software. There are minimum requirements that can...

Words: 929 - Pages: 4

Free Essay

Capital Market of Bangladesh

...Building a Newsletter App in PHP with Dreamweaver CS3 E-mail newsletters are a very popular method of maintaining an open channel of communication with your site visitors. They have the great benefit of keeping a site’s current user base up-to-date on the latest news and offerings from the organization. Moreover, they have the potential for turning site visitors into site customers or donators. In this article, you’ll learn how to create a complete subscribe/unsubscribe application in PHP/MySQL with a standard Dreamweaver CS3 server and just one additional block of code. To use this application, a user signs up for a subscription on a site and receives a confirmation e-mail. The e-mail contains a link to unsubscribe, personalized for the user. In all, you’ll need to create five pages to achieve this functionality: * Subscribe.php: This page is comprised of a basic form that gathers an e-mail address and inserts a new record into the MySQL database. After the record is inserted the page is redirected to confirm_subscribe.php. * Confirm_subscribe.php: While the visitor sees a bit of text confirming his or her subscription on this page, a PHP function contained within e-mails the user a secondary confirmation, which contains a link to unsubscribe via the confirm_unsubscribe.php page. * Error_subscribe.php: This is an error page that displays if the e-mail attempt was not successful; it also contains a link to the subscribe.php page so another attempt can be made. ...

Words: 2239 - Pages: 9

Premium Essay

Thseis

...Chapter 2 A Software Architecture for Inventory Management System Taner Arsan, Emrah Baskan, Emrah Ar and Zeki Bozkus ß ß Abstract Inventory Management is one of the basic problems in almost every company. Before computer age and integration, paper tables and paperwork solutions were being used as inventory management tools. These we very far from being a solution, took so much time, even needed employees just for this section of organization. There was no an efficient solution available in the many companies during these days. Every process was based on paperwork, human fault rate was high, the process and the tracing the inventory losses were not possible, and there was no efficient logging systems. After the computer age, every process is started to be integrated into electronic environment. And now we have qualified technology to implement new solutions to these problems. Software based systems bring the advantages of having the most efficient control with less effort and employees. These developments provide new solutions for also inventory management systems in this context. In this paper, a new solution for Inventory Management System (IMS) is designed and implemented. Most importantly, this system is designed for Kadir Has University and used as Inventory Management System. 2.1 Introduction Inventory Management is one of the basic problems for a company. It may cause a lot of paperwork, if there is no automated system available. Implementing such...

Words: 3670 - Pages: 15

Free Essay

Mantis

...v 1.0.0 Manual (as of May 19, 2005) Manual (1.0.0) Last Modified: April 22, 2005 05:04AM Description This is the manual for Mantis version 1.0.0. The Mantis manual is modeled after the PHP Manual. It is authored via the "manual" module in Mantis CVS. You can view the latest snapshot of the manual from here. You can download it for offline use here. Contents 1. About Mantis .......................................................................................5 1. About the Name .........................................................................7 2. History .....................................................................................8 3. Minimum Requirements ...............................................................9 4. Download................................................................................. 11 2. Installation ........................................................................................ 12 1. Backups .................................................................................. 15 2. Upgrading ............................................................................... 16 3. CVS Integration ....................................................................... 17 4. Uninstall .................................................................................. 18 3. Configuration .................................................................................... 19 1. Database ...............................

Words: 18248 - Pages: 73

Premium Essay

Using Ar Tca Api

...© 2009 Oracle Corporation – Proprietary and Confidential 1 Using TCA PL/SQL APIs Day,Friday, Date, 2004 time p.m. ET March 3, 2009 9:00 EST Teleconference Access: North America: xxxx Teleconference Access: International: xxxx North America: Password: Advisor +1-877-664-9143 International: +1-706-634 – 8961 Conference ID: 82200160 Upcoming Receivables Community Live Webcasts: March 6, 2009 - How to Use Receipts Application Programming Interfaces (APIs) to Create and Apply Receipts March 24, 2009 - Overview of Bills Receivable All Upcoming Advisor Webcasts are listed in Note 398884.1, Oracle Advisor Webcast Schedule. Do you have any requests for future Receivables Advisor Webcast Events? Please email your suggestions to ARNEWS_US@oracle.com, subject: Topics of Interest. © 2009 Oracle Corporation – Proprietary and Confidential 2 Agenda • Presentation and Demo – approximately 45 minutes • Q&A Session – approximately 15 minutes • • Please hold all questions to the end of the session. To ask a question, move your cursor to the top of the screen and select the ‘bubble’ icon next to the moderator’s name. A dialog box will open. Enter your question and select “Send.” • • During the Q&A session your question will be read and an answer will follow. © 2009 Oracle Corporation – Proprietary and Confidential 3 ATTENTION – AUDIO INFORMATION If you encounter any audio issues, please call InterCall (Audio Conferencing) and mute your phone. North...

Words: 3795 - Pages: 16

Free Essay

National Bookstore

...Parfait Payroll System Highly Customizable Payroll System   This payroll system have the ff feature : * web-based payroll ( cloud ready ) * free mysql database * runs on Linux,Windows and Mac * WAN / LAN / Single Connection ready * Designed for Philippine Settings * Unlimited number of employees * Unlimited number of users       * Multi Division / Department / Branch / Cost Centers ready * Multi-bank support * User maintainable updates on SSS, PhilHealth, Pagibig and Tax tables * Loan file maintenance, Unlimited Loan Type, automatic deduction with loan status monitoring * Unlimited Other Income Type * Batch Upload of Attendance, Loans, Deductions and Other Income via MS Excel * Leave Monitoring, Leave conversion available * Bonus,Mid-Year,13th month and others benefits available * Company Employees Cooperative available * HMO,COOP support available * Doctor and Nurses, Drivers and Helper support available * Employment agency / BPO support available. * Government payroll support available * support for biometric devices available ( part of  HRIS - Time and Attendance ) * Project Time Management System available as replacement for bio-metric  ( part of HRIS - Time and Attendace ) * Multiple option on Statutory Deduction * 100% Government Compliance * Sending Payslip via email this payroll is ideal for : Private, Government, Project Based Payroll, Employment Agency, Hospital, Trucking, Cooperative and...

Words: 353 - Pages: 2

Free Essay

E-Commerce and System Design

...Unit 3 Individual Project Victoria Kane MGMT305-1301A-04 Management Information Systems March 3, 2013 American Intercontinental University Abstract The paragraphs below will detail the technicalities of an e-commerce website for Steve’s Used Appliances. Unit 3: E-Commerce and System Design When starting up an e-commerce website, the first thing to decide upon is the type of business model that will be used for the foundation of the website. The internet business model that best applies to Steve’s Used Appliances is affiliate marketing. In this model, a business pays off one or more affiliates for their marketing efforts to broaden the scope of customers. (Boris, 2011) This model will be the most helpful for a used appliance store because of the fact that appliances are not easy to sell. Having an affiliate model opens the door for other larger businesses to spread the word on this smaller business. Steve’s Used Appliances can definitely benefit from the creation of an e-commerce website. Having a website will make it possible for the company to get out information about their products and services without wasting money on postage, publicizing, or couriers. It also makes it possible for this small business to reach customers from cities farther away than they would with simple newspaper ads or commercials. An e-commerce website also provides several functions for a business. These functions are usually in reference to marketing, sales, customer support, and internal...

Words: 828 - Pages: 4