Find the balance for customer george williams

Assignment Help Computer Networking
Reference no: EM131978037

Query and update databases using SQL

Task

Assignment tasks:

Write and run SQL statements to complete the following tasks

Part A - DML

1. Show the details of the products where the product code starts with '22'.

2. Display the vendor details from areacode 615.

3. Find the balance for customer 'George Williams'.

4. Show the number of products from each vendor and display the vendor code if there are more than 2 products from the same vendor.

5. Display the vendor code, name, phone number and the number of products from each vendor.

6. Find the customers whose balance is zero.

7. List the name of the customers for whom we have invoices.

8. Show the name and cus_code of the customers for whom we DO NOT have invoices.

9. Find out how many times a customer generated an invoice.

Part B - DDL

1. Add a new attribute email_addressvarchar(30) to the customer table.

2. Add email_address = '[email protected]' for customer '10016'.

3. Delete the record for employee Edward Johnson from EMP table.

You are required to submit:

1. The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file. If you type .echo on at the SQLite3 Command Line, SQLite will output your SQL statement with the results of the query making it easy to copy and paste both.

2. The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.

Attachment:- Assessment item.rar

Verified Expert

The solution file is prepared in ms word and executed all queries in sqlite. Here we tried all basic ddl and dml command and screen shots are attached with solution queries.

Reference no: EM131978037

Questions Cloud

Overseeing human life : Explain God's involvement in creating, sustaining, and overseeing human life. Refer to at least two biblical passages in your answer.
Appropriate beta for each company for use in the wacc : Using the information to compute the industry unlevered beta, what is the appropriate beta for each company for use in the WACC?
Illustrate why the given new strategy would be successful : Briefly outline at least one other strategy the firm could take to support its strategic direction. Illustrate why this new strategy would be successful.
Compute the dividends paid to preferred common stock : Quick Industries Inc. has 4,000 shares of 5% $20par preferred stock, Compute the dividends paid to preferred and common stock for each of the four years
Find the balance for customer george williams : Query and update databases using SQL - Find the balance for customer George Williams and Find the customers whose balance is zero
Christian practice of giving to those in need : Read 2 Corinthians 8-9 and from it describe how Paul views the Christian practice of giving to those in need.
Do you believe that james is teaching : Do you believe that James is teaching that it is immoral to be wealthy? Why or why not? How can Christians apply James' teaching today?
Prepare the journal entries on eubank books : Prepare the journal entries on Eubank's books that relate to the lease agreement for the following dates: (Round all amounts to the nearest dollar
Become more comfortable with technology : What strategies would you devise to ensure that older nurses and those who have a phobia of technology use, become more comfortable with technology?

Reviews

len1978037

5/10/2018 2:49:10 AM

Presentation This assessment item is required to be submitted in Word format (.doc, or .docx). All SQL statements should be copied from SQLite into the word document. All screenshots that are required should be captured and inserted into the document in the appropriate position to show that you have completed the requirement. Screenshots that are submitted in addition to the assignment document will not be marked. Databases must not be included as part of a submission.

len1978037

5/10/2018 2:49:04 AM

Rationale This assessment aligns with the following subject outcomes: • be able to critically analyse and modify an existing database design to meet new business requirements; Marking criteria The marking criteria for this assignment is: HD DI CR PS FL Accurate and elegant SQL that answers all parts of the question. SQL code copied from SQLite as well as a screen shot of code and results into the submission file Good SQL that answers most parts (75% ~ 85%) of the question. SQL code copied from SQLite as well as a screen shot of code and results into the submission file Satisfactory SQL that answers some parts (65% ~ 75%) of the question. SQL code copied from SQLite as well as a screen shot of code and results into the submission file Partial SQL that answers a small part (50% ~ 65%) of the question. SQL code copied from SQLite as well as a screen shot of code and results into the submission file Incomplete or irrelevant SQL that does not answer the question (< 50%). Some missing parts or non-matching SQL code with the given results.

len1978037

5/10/2018 2:48:53 AM

Instructions for using SQLite: • From Resources under Main Menu in Interact 2 go to Assignment 5 Folder • Copy sqlite3.exe and cmd.exe files from the Assignment 5 Folder into a folder in your machine• Copy a5.txt from the Assignment 5 Folder into the folder in your machine where your SQLite file is located • From the SQLite Command Prompt execute the a5.txt script. To do this, at the SQLite Command Line type .read a5.txt [to create the tables you will use to answer this assignment’s questions] • At the SQLite Command Line type .headers on • At the SQLite Command Line type .mode column

Write a Review

Computer Networking Questions & Answers

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

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