Question
I want Function from the following example (use mysql) Schema Panel: create table Sales_Table(OrderID int(10),OrderDate varchar(50), OrderPrice int(10),OrderQuantity int(10),CustomerName varchar(30)); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(1,'12/22/2005',160,2,'Smith'); insert
I want Function from the following example (use mysql)
Schema Panel:
create table Sales_Table(OrderID int(10),OrderDate varchar(50), OrderPrice int(10),OrderQuantity int(10),CustomerName varchar(30)); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(1,'12/22/2005',160,2,'Smith'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(2,'08/10/2005',190,2,'Johnson'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(3,'07/13/2005',500,5,'Baldwin'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(4,'07/15/2005',420,2,'Smith'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(5,'12/22/2005',1000,4,'Wood'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(6,'10/2/2005',820,4,'Smith'); insert into Sales_Table(OrderID,OrderDate,OrderPrice,OrderQuantity,CustomerName) values(7,'11/03/2005',2000,2,'Baldwin');
Query Panel:
SELECT SUM(OrderQuantity)FROM Sales_Table; SELECT*FROM Sales_Table; SELECT AVG(OrderPrice)FROM Sales_Table; SELECT SUM(OrderPrice)FROM Sales_Table;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started