SQL Database Assignment, Computer Science homework help

Other

Download, unzip, and attach (to SQL Server) the sample Northwind Traders SQL Server database found in the Week 10 module area. Write the needed SQL for each of the following situations and upload your completed document when done for grading.

 

1.       Write the needed SQL to list all product names (and only product names) from the Products table that fall into the category of “condiments.” The list of products should be in ascending order.

 

2.       Write the needed SQL to update the description of the “Produce” category from “Dried fruit and bean curd” to “Dried fruit, bean curd, and soy.”

 

3.       Write the needed SQL to produce a list that will contain the following columns:

OrderID, OrderDate, RequiredDate, ShippedDate, Quantity, UnitPrice, ProductName

The list should contain only the orders that were placed in April 1997 (the entire month). The list should be in ascending order by OrderDate and then Quantity.

 

4.       Write the needed SQL to update all suppliers in Germany that do not have a fax number by setting their fax number to ‘N/A.’

5.       Write the needed SQL to produce a list with the following columns.

CustomerID, CompanyName, OrderID, OrderDate, Order Item Count

The list will contain (as the last column) the total number of order items per order. Display the results in ascending order by company name and order id. Here is an example:

 

 

 

 

6.       Write the needed SQL to delete all order information for customer “QUICK-Stop.”

 



 

7.       Write the needed SQL (DDL) to perform the following changes in the Northwind database. Your answers under each of the following should show the SQL DDL you need to perform each task.

 

7a.      Remove columns “HomePhone” and “Extension” from the Employees table.

 

 

7b.      Create a new table called PhoneNumber with the following schema (column name, data type, nullability):

 

PhoneNumber_ID               int                 not null          PK

PhoneNumber_AreaCode     char(3)          null

PhoneNumber_Prefix           char(3)          not null

PhoneNumber_Extension     char(4)          not null

 

 

7c.      Write the needed SQL DDL to set up a relationship between Employees (parent table) and PhoneNumber (child table). This is a one-to-many relationship (one employee can have many phone numbers).

 

 

7d.      Write the needed SQL DDL to create a non-unique non-clustered secondary index on the “LastName” column in the Employees table.

 

 

 

 

 

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational