Skip to content

Commit 919a799

Browse files
authored
Add files via upload
1 parent 7a67b74 commit 919a799

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Mission 1 Filtering data.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
use Lucky_Shrub;
2+
create table Orders (OrderID int not null primary key, ClientID varchar(10), ProductID varchar(10),
3+
Quantity int, Cost decimal(6,2));
4+
5+
insert into Orders (OrderID, ClientID, ProductID , Quantity, Cost) values (1, "Cl1", "P1", 10, 500),
6+
(2, "Cl2", "P2", 5, 100), (3, "Cl3", "P3", 20, 800), (4, "Cl4", "P4", 15, 150), (5, "Cl3", "P3", 10, 450),
7+
(6, "Cl2", "P2", 5, 800), (7, "Cl1", "P4", 22, 1200), (8, "Cl3", "P1", 15, 150), (9, "Cl1", "P1", 10, 500),
8+
(10, "Cl2", "P2", 5, 100);
9+
210
-- Task 1: Write a SQL statement to print all records of orders where the cost is $250 or less.
311
select * from Orders where Cost <= 250;
412

0 commit comments

Comments
 (0)