Write a select query to display all the data

Assignment Help Computer Engineering
Reference no: EM133368751

Question 1. In T-SQL, "create a" new VIEW called PersonsByCountry that displays a list of all Persons' names and the country they live in.

Question 2. "Write a" SELECT query to display all the data from the PersonsByCountry view, sorted by country name, person's last name, then first name.

Question 3. In the SSMS GUI Editor, "create a" second VIEW, called PersonAndEmailsByCountry, based on the view from part 1, that displays all data and includes each person's email address. Note: This isn't a copy-paste-SQL job! Reference the other view in the new view, which may require you to make some changes to the original PersonsByCountry view.

Question 4. Script your GUI-created VIEW and add the CREATE VIEW part to the T-SQL script you're writing for the other steps. (Right-click the PersonAndEmailsByCountry view, choose Script View AS... Create...)

Question 5. "Write a" SELECT query to display data from the PersonAndEmailsByCountry view, for persons residing in the USA, and whose email addresses start with 'P', sorted by person's last name, then first name, and hiding any non-user-friendly columns of data.

Question 6. In T-SQL, "create a" new view called PersonEmployees, based on the view from part 3, that displays all the person data for anyone who is an employee of the AdventureWorks company, and includes their job title and hire date.

Question 7. "Write a" SELECT query to display data from the PersonEmployees view, showing the employee's full name (in a single field), their job title, hire date, email address and country, for any employee hired in 2012 or later. Sort the data from most recent hire date, then by job title, then employee name. (Note: Remember that in AdventureWorks, you have to include the schema in the table name. The Employee table is in a schema called HumanResources).

Reference no: EM133368751

Questions Cloud

What is the substrate consumption rate : What is the minimum amount of substrate necessary for steady state operation? What is the substrate consumption rate?
Identify what you believe to be the key risks : identify what you believe to be the key risks (regulatory and others) to Nationomic. In a paper to be read by your compliance team colleagues prior
Write a python function named words : COMMUNICAT 10368 University of the Fraser Valley Write a python function named words. This function takes in two strings as a parameter
Identify distinct species in fossilized remains of extinct : Describe why it can be challenging to identify distinct species in fossilized remains of extinct populations. In these cases, how do researchers do so?
Write a select query to display all the data : Write a SELECT query to display all the data from the PersonsByCountry view, sorted by country name, person's last name, then first name
Declaration of independence disagree on attribute : However, the people who devised the Code of Hammurabi and the Declaration of Independence disagree on this attribute of the people.
What is the nominal annual rate of interest compounded : The amount of $39 600. 00 is invested at 3.5% compounded quarterly. After 4 years the balance in the fund is converted into an annuity. If payments of $6000.
What is one main difference between mongodb and mysql : What is one main difference between MongoDB and MySQL. Do you see a significant advantage or disadvantage in using MongoDB? Provide an example.
Criminal justice system : Describe 4 examples other than sentencing circles, of processes by which ABORIGINAL communities are becoming involved in the criminal Justice system.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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