Questionconfiguring a databasethere are two parts to this

Assignment Help Computer Engineering
Reference no: EM13349496

Question

Configuring a Database

There are two parts to this work. The first part is to generate a database and some tables which will be appropriate for Batty League Flea Market. That portion of the assignment has to be completed from MySQL console command line. The second part of the assignment is to write down a PHP script which will show information about the database tables created in the first part and save that information in a file. A complete submission will include both the script - solution07.php - and the text file generated by the script - solution07.txt.

Use command-line interface to create a new user named "script" for your database. Grant that user all permissions on everything controlled by DBMS.

Create a database named "fleamarket".

Within that database, create two tables:

The first table should be named "items". Give it three fields:

VARCHAR of length 10 named "itemID"
FLOAT named "itemPrice"
VARCHAR of length 30 named "description"
The second table should be named "sales". Give it five fields:
VARCHAR of length 10 named "itemID"
FLOAT named "itemPrice"
VARCHAR of length 10 named "firstName"
VARCHAR of length 10 named "lastName"
DATE named "purchaseDate"

generate a script file named solution07.php. Within that script, connect to your DBMS using the "script" identity. Select the "fleamarket" database, and then obtain a listing of tables.

Apply the file-creation techniques we learned in previous classes to save the results of your queries into a file named solution07.txt.

Submit both solution07.php and solution07.txt.

Reference no: EM13349496

Questions Cloud

Question 1for associations to develop a capable purchasing : question 1for associations to develop a capable purchasing strategy it requires time patience and strength of mind to
Questiondesign a tips class that calculates the gratuity on : questiondesign a tips class that calculates the gratuity on a restaurant meal. its only class member variable taxrate
Questiongiven a series of numbers that represent adding : questiongiven a series of numbers that represent adding fuel 2 and subtracting fuel 1 determine highest distance that
Question audit sampling in tests of control activitiesa : question audit sampling in tests of control activitiesa. define audit sampling.b. which word properly completes each of
Questionconfiguring a databasethere are two parts to this : questionconfiguring a databasethere are two parts to this work. the first part is to generate a database and some
Question you have been asked by the managerial committee of : question you have been asked by the managerial committee of a company fictional or real to freshly implement one of the
Question 1a how did psychology develop as a methodical : question 1a how did psychology develop as a methodical field?b convoluted on the following 2 schools of
Questionin programming language c array names are not : questionin programming language c array names are not assignable variables. therefore we cant copy an array directly
Question 1a briefly describe the role of each of following : question 1a briefly describe the role of each of following four main abstractions that form part of an soa-i

Reviews

Write a Review

Computer Engineering Questions & Answers

  Translate following c++ program to pep/8 assembly language

Translate following C++ program to Pep/8 assembly language

  Analyzing the database schema

OrderLine (OrderNum, PartNum, NumOrdered, QuotedPrice), Part (PartNum, Description, OnHand, Class, Warehouse, Price), On the basis of code above, list the number and name of all the customers.

  Security accounts manager

The security accounts manager (SAM) database consists of the information on all user profiles. User account set-up populates the database. Explain the fields and options linked with user account set-up.

  How to use the ''time'' function and the difftime function

The two searches to use for comparisons are the Linear Search and the Binary Search. You will search for 1000 strings in the array of 3000 strings and find out the average number of probes needed to find a match. The target string would be a rando..

  Write down code to complete the conversion

You've just started a new semester and you've become friends with one of your classmates, Tomislav. Tomislav tells you he has just moved to United States from Europe and he's having a difficult time adjusting to the English units of measurement. In..

  Questionnetworking cis 505select one of the following

questionnetworking cis 505select one of the following topics in that you will base your responses in the form of a term

  Determine the demand for gmc cars for the coming year

GMC wants to determine its production plan at each plant in the coming year. Based on the previous data, formulate a mixed integer programming model for solving GMC's production planning-capacity expansion problem for the coming year.

  Write a program that reads 100 numbers

design a program in python that continually reads in numbers from the user and adds them together until the sum reaches 100. Write another program that reads 100 numbers from the user and prints out the sum.

  Suppose cookies are not disabled on the client

suppose cookies are not disabled on the client.

  While is it important to denormalize a database

What is the meaning of denormalization, and why can it be desirable? Provide an example.

  Evaluate the usability of the online questionnaire website

Write clearly and concisely about human-computer interaction topics using proper writing mechanics and technical style conventions.

  Show the sine of any angle typed on the keyboard

design a randome file of the sines of all angles from 0 degrees to 90 degrees. Make each entry accurate to three places. Write a program that will display the sine of any angle typed on the keyboard.

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