Get all LAST_NAME values from the CUSTOMERS table, do not include duplicates in the output. Question...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Get all LAST_NAME values from the CUSTOMERS table, do not include duplicates in the output. Question 2 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 1 USE DB; 12 2 DELIMITER $$ 3 4 5 6 7 8 098 9 10 CREATE TRIGGER professor delete BEFORE DELETE ON professor FOR EACH ROW BEGIN INSERT INTO professor_audit_trail ProfessorName = OLD. ProfessorName, ProgramName = OLD. Professor Program; END$$ Question 3 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 11 12 13 HULIH 14 345 15 17 Question 4 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 18 use DB; create view computer science students SELECT * FROM student computer science students where Student Program = 'Computer Science! ; USE DB; create index Student Program from student (Student Program); Question 5 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 20 use DB; 21 create table professor_audit_trail ( 22 id int unsigned primary key auto_increment not null, ProfessorName VARCHAR (255) not null; 24 ProgramName VARCHAR (255) not null 23 25 NETI Question 6 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 26 W W WNNN 069OHN 27 Use DB; SELECT * 29 FROM student 28 30 ·); 31 32 left join professor where student Student Program= professor. Professor Program A/ Get all LAST_NAME values from the CUSTOMERS table, do not include duplicates in the output. Question 2 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 1 USE DB; 12 2 DELIMITER $$ 3 4 5 6 7 8 098 9 10 CREATE TRIGGER professor delete BEFORE DELETE ON professor FOR EACH ROW BEGIN INSERT INTO professor_audit_trail ProfessorName = OLD. ProfessorName, ProgramName = OLD. Professor Program; END$$ Question 3 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 11 12 13 HULIH 14 345 15 17 Question 4 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 18 use DB; create view computer science students SELECT * FROM student computer science students where Student Program = 'Computer Science! ; USE DB; create index Student Program from student (Student Program); Question 5 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 20 use DB; 21 create table professor_audit_trail ( 22 id int unsigned primary key auto_increment not null, ProfessorName VARCHAR (255) not null; 24 ProgramName VARCHAR (255) not null 23 25 NETI Question 6 (1 point) Review the SQL below, it has one syntax error. Rewrite just the line containing the error including the correction. 26 W W WNNN 069OHN 27 Use DB; SELECT * 29 FROM student 28 30 ·); 31 32 left join professor where student Student Program= professor. Professor Program A/
Expert Answer:
Answer rating: 100% (QA)
Sure lets go through each of the SQL statements and correct any syntax errors present For Question 2 ... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these databases questions
-
Payroll is where most of the fraudulent activity occurs in businesses. Accountants use Segregation of Duties to safeguard company assets. REQUIRED: Research Segregation of Duties and prepare a Memo...
-
Nadia Khalif is the office manager for the Conyers Law Offices in Dallas, Texas. The firm is planning to move its computer network into the cloud so that everyone working on a case can access...
-
Mrs. Betts contracted to buy Jones commercial property for $1,265,000. Under the terms of the written contract, Mrs. Betts paid $126,000 as an earnest-money deposit, which would be retained by the...
-
The contingency table shown relates happiness and gender for the 2012 GSS. a. Identify the response variable and the explanatory variable. b. Construct a table or graph showing the conditional...
-
In a game of pool, ball A is moving with a velocity v0 of magnitude v0 = 15 ft/s when it strikes balls B and C, which are at rest and aligned as shown. Knowing that after the collision the three...
-
During an early season promotion, a weekend ski pass was priced at $214 plus PST and GST at Blackcomb Mountain, B.C., and at $214 plus GST and PST at Mont Tremblant, Quebec. What is the difference in...
-
Define derived domain. Could an information system be a derived domain? Explain.
-
Perreth Drycleaners has capacity to clean up to 5,000 garments per month. Requirements 1. Complete the following schedule for the three volumes shown. 2. Why does the average cost per garment change?...
-
On September 30, 2022, Panther Learning shows the following balances in its ledger. Use the data to prepare the trial balance below. Cash 5,000 Accounts Payable 1,300 Accounts Receivable 1,200 Common...
-
Janice Morgan, age 24, is single and has no dependents. She is a freelance writer. In January 2021, Janice opened her own office located at 2751 Waldham Road, Pleasant Hill, NM 88135. She called her...
-
If you wanted to do research on the effects of a thinning ozone layer on the environment, which terms would you use to find relevant articles in a periodical database?
-
The following questions is based on strategic leadership. What is the opinion of employees on strategic leadership? How does strategic leadership approach used by the leader provide employees...
-
Imagine that if you are a small business owner. Is it worth it for you to devote time to learning Twitter to support your local businesslocal construction, local coffee shop, local restaurant, local...
-
What is the origin of cancer, its treatment, diagnosis, and prevention?
-
Imagine you are a manager and your instructions are to communicate to employees: A company stock sharing opportunity An increase in the 401K employer contribution A company campaign to support the...
-
Bridgeport Company has determined that the standard cost to manufacture its product includes 2 units of direct materials at $6.00 per unit. During January, the company purchased 50,900 units of...
-
6 g sample of a subtance was heated from 21 C to 62 C rquiring 113 J to do so. What is the specific heat of the substance? NOTE: round your answer to 2 decimal
-
Phosgene, COCl2, is a toxic gas used in the manufacture of urethane plastics. The gas dissociates at high temperature. At 400oC, the equilibrium constant Kc is 8.05 104. Find the percentage of...
-
Define what an actor is in a use case diagram.
-
A beautiful, full-color brochure arrived on Bill Cornwells desk describing the Benny Companys offsite training program and facilities in glowing terms; it showed happy users at PCs and professional...
-
Draw a fishbone diagram of possible problems that can occur when constructing a Web site for a travel company that wants to sell vacations online for the next big travel period (either December or...
-
Assume the same facts as in Problem 42. Further assume that next year, Gary sells the SUV for $20,000. a. How much depreciation expense can Gary deduct as a business deduction with respect to the SUV...
-
Describe how liabilities are reported and analyzed.
-
Assume the same facts as in Problem 29, except that Sally has AGI of \($75,000.\) What is her qualified student loan interest deduction in 2019? Problem 29, In 2019, Sally Morris, a single taxpayer,...
Study smarter with the SolutionInn App