Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

=+3. Who is the audience?

Answered: 1 week ago

Question

Ty e2y Evaluate the integral dy

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago