Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 2

Task No

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Task No
1
2
3
4
5
6
7
8
9
10

Task-3
1
2
3
4

5
6
Day 1/2
select*from Customer ;
select*from Customer where country='Germany' ;
select * from Employee where EmplyeeID '1' ;
select from OrderDetails where ProductID '1' ;
select*from where ShipperName='United Package' ;
select*from Customers where City='Berlin' and PostCode='12209'
select*from customer where City Like 'a%' ;
select*from customer where City Like '%b' ;
select*from customer where City Like !='a%' ;
select from SuppliersName where Country='UK';
select*from OrderDetails where OrderId='10250';
select*from Products where Price NOT BETWEEN 10 AND 20;
UPDATE Customer SET City=' ', Country=' ' where CustomerID= 13;
select count(SuppllerID) from Supplier;
select count(ProductID) from Products;
select count(SuppllerID) from Suppliers where country='France';
Select Count (CustomerID), Country From Customers GROUP BY Country ORDER BY COUNT(CustomerID) DESC
Pending…................

Day 3 Answer
Select from Customer where country='Germany' and ProductID='5' and OrderDate='1997-10-01';
Select * from OrderDetails where OrderID In ( selct top (5) from OrderDetails Group By OrderID Order By OrderID DESC
Select *From Customer Order By City='Mexico' ASEC
Select* From OrderDetails where OrderID DESC
Select*From Orders where ShipperID='3';
Select*From Orders where SuppIierD='4';
Select* count ProductName from Products;
Select* from Orders Where ProductName='Dairy Product'
Select* from Shippers where ShipperName='Seafood' Order By ShipperID ='2';
select*from Employee ASEC;

UPDATE Customer SET CustomeName='Mr Anand Bakshi' Where City='Dehradun';


ALTER TABLE ACCOUNT ADD DATE_CLOSE date;
INSERT INTO CLASSIC ACCOUNT(DATE_CLOSE) VALUES (26-Dec-2021)
SELECT A.ACCOUNT_ID,B.TRANS FROM ACCOUNT A
ONA.ACCOUNT_ID=B.TRANS AND TOCHAR(A.DATE_OPEN,YYYYMMDD')=20210620
SELECT COUNT (DISTINCT) FROM PRODUCT
Pending

You might also like