Question: What will happen when the statement below is run? CREATE VIEW Example 1 AS SELECT VendorName, SUM ( InvoiceTotal ) AS SumOfInvoices FROM Vendors v

What will happen when the statement below is run?
CREATE VIEW Example1
AS
SELECT VendorName, SUM(InvoiceTotal) AS SumOfInvoices
FROM Vendors v
JOIN Invoices i
ON v.VendorID = i.VendorID
GROUP BY VendorName
ORDER BY VendorName;
Group of answer choices
it will fail because the GROUP BY clause isnt allowed with this code
it will fail because the column alias SumOfInvoices is invalid
it will fail because the ORDER BY clause isnt allowed with this code
it will succeed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!