Create and test a view called EmployeeDepartmentDataView that contains the employee name concatenated and formatted as LastName,
Question:
Create and test a view called EmployeeDepartmentDataView that contains the employee name concatenated and formatted as LastName, FirstName in a field named EmployeeName, EMPLOYEE.Department, DEPARTMENT.OfficeNumber,DEPARTMENT.Phone as DepartmentPhone, and EMPLOYEE.Phone as EmployeePhone. Run this statement to create the view, and then test the view by writing and running an appropriate SQL SELECT statement.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 60% (10 reviews)
CREATE VIEW Employee DepartmentDataView AS SELECT dbo LastNameFirst EFirstName E LastName AS EmployeeName FROM E Department DOfficeNumber D Phone AS D...View the full answer
Answered By
Mario Alvarez
I teach Statistics and Probability for students of my university ( Univerisity Centroamerican Jose Simeon Canas) in my free time and when students ask for me, I prepare and teach students that are in courses of Statistics and Probability. Also I teach students of the University Francisco Gavidia and Universidad of El Salvador that need help in some topics about Statistics, Probability, Math, Calculus. I love teaching Statistics and Probability! Why me?
** I have experience in Statistics and Probability topics for middle school, high school and university.
** I always want to share my knowledge with my students and have a great relationship with them.
** I have experience working with students online.
** I am very patient with my students and highly committed with them
5.00+
1+ Reviews
10+ Question Solved
Related Book For
Database Processing Fundamentals, Design, and Implementation
ISBN: 978-0133876703
14th edition
Authors: David M. Kroenke, David J. Auer
Question Posted:
Students also viewed these Computer science questions
-
Create a view called HOMEWORK13 that includes the columns named Col1 and Col2 from the FIRSTATTEMPT table. Make sure the view is created even if the FIRSTATTEMPT table doesnt exist.
-
In the following exercises, you will use the data in the TAL Distributors database shown in Figure 2-1 in Chapter 2. (If you use a computer to complete these exercises, use a copy of the original TAL...
-
Write an SQL statement to create a view named CombinedNameEmployeePhoneView that shows the values of EMPLOYEE.LastName, EMPLOYEE.FirstName, and EMPLOYEE.Phone as EmployeePhone, but that combines...
-
Mount Everest is Earth's highest mountain above sea level, located in the Mahalangur Himal sub-range of the Himalayas. The ChinaNepal border runs across its summit point. Its elevation of 8,848.86 m...
-
Goods costing NT$60,000 are purchased on account on July 15 with credit terms of 2/10, n/30. On July 18, a NT$6,000 credit was received from the supplier for damaged goods. Give the journal entry on...
-
A pipe flowing light oil has a manometer attached, as shown in Fig. P1.78. What is the absolute pressure in the pipe flow? In Fig. P1.78 Po = 101 kPa 0.7 m Oil 0.3 m Water 0.1 m
-
You are a small manufacturer of specialty medical devices located in Chicago, Illinois, and the market for your product is cardiologists in the United States. Does globalization affect your business?...
-
Flow rate for a given pressure drop. How many gal/hr of water at 68 o F can be delivered through a 1320-ft length of smooth 6.00-in. i. d. pipe under a pressure difference of 0.25 psi? Assume that...
-
Regular Company produces audio equipment, specifically headphones and speakers. A new CEO has just been hired and announces a new policy that if a product cannot earn a markup of at least 25 percent,...
-
People spend a considerable part of their lives at work, so it is not surprising that they expect to be rewarded and satisfied with the job that they do. Motivation is concerned with why people do...
-
What is a trigger?
-
Create and test a user-defined function named LastNameFirst that combines two parameters named FirstName and LastName into a concatenated name field formatted LastName, FirstName (including the comma...
-
The potential difference E (in V) between a telegraph line and earth is given by where A and B are constants, x is the distance in km from the transmitting end, r is the resistance per km of the...
-
A cookie recipe calls for the following ingredients: The recipe produces 48 cookies with these amounts of the ingredients. Design a program that asks the user how many cookies he or she wants to...
-
A large solar panel device manufacturing company based in the United States has noticed a sharp decline in its domestic sales. Upon investigation, it discovered that customers have been switching to...
-
Jeffrey Hansing, of Wisconsin, wanted to sell his 1964 Ford Galaxie. He decided to list the car for sale on eBay. The winning bidder was Paul Boschetto, who purchased the car for \($34,106.Mr.\)...
-
The defendant is a highly respected corporation with no record of civil or criminal acts by its employees. Hanna, the CEO, suggested to the board of directors that the company should have an ethics...
-
The Cornell Law School Legal Information Institute is a major legal resource gateway. At this site you will find links to United States Court of Appeals recent decisions, state court decisions and...
-
A wireless garage door opener has a code determined by the up or down setting of 12 switches. How many outcomes are in the sample space of possible codes?
-
Time Solutions, Inc. is an employment services firm that places both temporary and permanent workers with a variety of clients. Temporary placements account for 70% of Time Solutions' revenue;...
-
Suppose the method quickSortInPlace is executed on a sequence with duplicate elements. Prove that the algorithm still correctly sorts the input sequence. What happens in the partition step when there...
-
Consider a modification of the deterministic version of the quick-sort algorithm where we choose the element at index n/2 as our pivot. Describe the kind of sequence that would cause this version of...
-
Suppose we modify the deterministic version of the quick-sort algorithm so that, instead of selecting the last element in an n-element sequence as the pivot, we choose the element at index n/2. What...
-
Write a program that accepts a phone number of the form +1(xxx)-XXX-XXXX where x is a digit, and displays the sum of all digits in the phone number. Example (user's input in red, output in blue)...
-
4. (25 points) The reverse of a directed graph G is another directed graph GR with the same vertex set with the property that if (u, v) is an edge in G then (v, u) is an edge in GR. Consider the...
-
2. (25 points) The Fibonacci numbers Fo, F1,..., are defined by Fo 0, F11, Fn = Fn-1 + Fn-2 Use induction to prove that: (a) Use induction to prove that Fn 20.5n for n 6 (b) Use induction to prove...
Study smarter with the SolutionInn App