-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLQuery A2.sql
More file actions
40 lines (18 loc) · 885 Bytes
/
SQLQuery A2.sql
File metadata and controls
40 lines (18 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
select * from Customer where country= 'germany';
select EmployeesName as fullname from Employee;
select * from Customer where [Fax number] is not NULL;
select * from Customer where FirstName like '_v%';
select * from OrderItem where UnitPrice>10 and UnitPrice<20;
select * from OrderItem
order by [Shipping Date]
select * from OrderItem
where [Ship Name]='LA CORNE D ABONDANCE' AND ([shipping date] between '2022-02-01' and '2022-05-12')
select ProductName from Product where [Supplier Name] ='Exotic Liquid';
select AVG(Quantity) AS "Average Quantity",ProductId from OrderItem GROUP BY ProductId;
select [Ship Name] from [OrderItem]
UNION
select [Shipping Company Name] from Product;
select EmployeesName, [Manager Name] from employee
select productName , Categoryname,priceafterdis
from Product,OrderItem
where Product.Id = OrderItem.ProductId;