#### Doing Joins Inner Join SELECT Firstname, Lastname, title FROM employee INNER JOIN title ON title.titleid...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
#### Doing Joins Inner Join SELECT Firstname, Lastname, title FROM employee INNER JOIN title ON title.titleid employee.titleid; #### Doing Joins - Right Join SELECT Firstname, Lastname, title FROM employee RIGHT JOIN title ON title.titleid = employee.titleid; #### Doing Joins with WHERE and ORDER BY parts Select EmpID, Firstname, Lastname, Title FROM employee INNER JOIN title ON employee. TitleID WHERE Lastname = 'Smith' ORDER BY Firstname = title. TitleID This homework section is about writing SQL statements with Join clauses. The Join statement will allow connected tables to be put together in a row. You may need to use other sources when completing the exercise. This will help you build your critical thinking skills and problem-solving abilities. Create and run the described query and then copy/paste it into the appropriate text field. Make sure you upload screenshots of the results. 1. Create a query that shows all the users name and telephone numbers of each person. Make sure you sort everyone by first name and last name. Who if anyone does not have a telephone number.* 2. Show everyone with a their name, title, and salary. Sort the list by salary. 3. Show everyone's name in the database. Show the training that they took. If some one has not done training their name should still show up. 4. Create a query that shows all the user's first and last name and their cell number. If they don't have a cell number they should still show just their name. This one requires the ON part to match Empld = Peopleid and PhoneType = 'Cell' 5. Create a query that has the user's first and last name, Title, and Telephone numbers. You can put the Inner joins one right after another. You will need 3 tables (employee, title and phone). So do an inner join for title then do an inner join for phone. Order the list by Firstname, Lastname* 6. Show everyone and the courses that they have taken. You will have to connect up three tables using this. Order the list by Firstname, Lastname* student250 New employee Columns New EmplD Firstname Lastname Salary StartDate TitleID Indexes New PRIMARY empl_train Columns New EmpID id TrainID Indexes New phone title EmpID PRIMARY Columns New PeopleiD Phoneid PhoneNumber Phone Type Indexes New PRIMARY Columns New Title TitleID Indexes New training Columns New TrainID Training_Name Indexes New PRIMARY #### Doing Joins Inner Join SELECT Firstname, Lastname, title FROM employee INNER JOIN title ON title.titleid employee.titleid; #### Doing Joins - Right Join SELECT Firstname, Lastname, title FROM employee RIGHT JOIN title ON title.titleid = employee.titleid; #### Doing Joins with WHERE and ORDER BY parts Select EmpID, Firstname, Lastname, Title FROM employee INNER JOIN title ON employee. TitleID WHERE Lastname = 'Smith' ORDER BY Firstname = title. TitleID This homework section is about writing SQL statements with Join clauses. The Join statement will allow connected tables to be put together in a row. You may need to use other sources when completing the exercise. This will help you build your critical thinking skills and problem-solving abilities. Create and run the described query and then copy/paste it into the appropriate text field. Make sure you upload screenshots of the results. 1. Create a query that shows all the users name and telephone numbers of each person. Make sure you sort everyone by first name and last name. Who if anyone does not have a telephone number.* 2. Show everyone with a their name, title, and salary. Sort the list by salary. 3. Show everyone's name in the database. Show the training that they took. If some one has not done training their name should still show up. 4. Create a query that shows all the user's first and last name and their cell number. If they don't have a cell number they should still show just their name. This one requires the ON part to match Empld = Peopleid and PhoneType = 'Cell' 5. Create a query that has the user's first and last name, Title, and Telephone numbers. You can put the Inner joins one right after another. You will need 3 tables (employee, title and phone). So do an inner join for title then do an inner join for phone. Order the list by Firstname, Lastname* 6. Show everyone and the courses that they have taken. You will have to connect up three tables using this. Order the list by Firstname, Lastname* student250 New employee Columns New EmplD Firstname Lastname Salary StartDate TitleID Indexes New PRIMARY empl_train Columns New EmpID id TrainID Indexes New phone title EmpID PRIMARY Columns New PeopleiD Phoneid PhoneNumber Phone Type Indexes New PRIMARY Columns New Title TitleID Indexes New training Columns New TrainID Training_Name Indexes New PRIMARY
Expert Answer:
Answer rating: 100% (QA)
Query 1 To create a query that shows all the user names and telephone numbers of each person sorted by first name and last name and identify those who do not have a telephone number SELECT eFirstname ... View the full answer
Related Book For
Concepts Of Database Management
ISBN: 9780357422083
10th Edition
Authors: Lisa Friedrichsen, Lisa Ruffolo, Ellen Monk, Joy L. Starks, Philip J. Pratt
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
identify where you are getting stuck and make it easier to find a solution. through complex problems and exploring different strategies for solving them. Simplify the problem: If the problem seems...
-
What minimum force f , applied horizontally to the wheel axis, is needed to bring the wheel up to the height step h ? Tomer as the wheel radius and w as its weight. Tip: apply the equilibrium...
-
The consolidated 2019 and 2018 balance sheets for Butler Corporation follow. Butler Corporation Consolidated Balance Sheets (In millions except per share amounts) Required: 1. Calculate the...
-
On March 1, 2022, Boyd Company acquired real estate, on which it planned to construct a small office building, by paying $80,000 in cash. An old warehouse on the property was demolished at a cost of...
-
Consider the Gallo strategic decision. Describe how you would go about evaluating that decision.
-
Premier Consultings two consultants, Avery and Baker, can be scheduled to work for clients up to a maximum of 160 hours each over the next four weeks. A third consultant, Campbell, has some...
-
Various people in the movie turn to Warren Buffett for advice and/or financial assistance, including Dick Fuld (Lehman Brothers), Lloyd Blankfein (Goldman-Sachs), Hank Paulson (Secretary of the...
-
2. Plot (don't have to use excel) the impedance vector for each of the frequencies on the same graph. Discuss how the impedance vector is changing and what this means about how the components of...
-
1. Jane Spring maintained this record of vehicle expenses for last year: gas, $845.96; oil, lube, miscellaneous, $68.85; insurance, $418.50; and license, $35.00. She drove 8,280 miles last year. Her...
-
From 2006 to 2010, real gross domestic product (GDP) per capita in India grew an average of 7.11% per year. At that rate, according to the rule of 70, in approximately how many years will the size of...
-
It takes one pipe 9 hours alone to fill Moochy's pool and a second pipe 12 hours alone to fill it. The pool is empty and both pipes begin to fill the pool. Working together, how long will it take to...
-
Use the data table to answer the following question. GDP $10 billion Consumption $5 billion Government Expenditures $2 billion Assuming a closed economy, what would be national savings?
-
Using frequency ( y axis ) and mark of class (x axis ) we obtained the histogram of sp500 returns interpret this histogram of sp500 returns 0.00% 30.00% 25.00% 20.00% 15.00% 10.00% 5.00% -12.06...
-
Explain Smart Work vs Hard Work, through your own story.
-
Match the following. Answers may be used more than once: Measurement Method A. Amortized cost B. Equity method C. Acquisition method and consolidation D. Fair value method Reporting Method 1. Less...
-
Who is the oldest customer? a. Glenn Spencer b. Jess Hill c. Gene Shaffer d. Nour Aboud Instructors InstructoriD InstructorLastName InstructorFirstName InstructorStreetAddress InstructorCity...
-
Write the SQL code for the following: List the full name of the therapist scheduled to work on 10/16/2021. a. SELECT Therapist.FirstName, Therapist.LastName FROM Therapist WHERE Therapist.TherapistID...
-
The Sports Physical Therapy clinic uses supplies when conducting therapies on patients. The database administrator is creating a table that lists all the possible supplies that the clinic orders. The...
-
Sheds Ahead Ltd produces outdoor sheds for domestic use. The manager in charge of production has been asked to prepare a production budget, a direct materials budget and a direct labour budget for...
-
Sami Stitches Ltd produces two types of sewing machines, a standard model and a deluxe model. The budgeted factory overhead costs for the production operation during 2020 are as follows. Production...
-
Gasmania Pty Ltd produces patio heaters for household use. The following information has been gathered so that a production budget, a direct materials budget and a direct labour budget for part of...
Study smarter with the SolutionInn App