Finote Selam Collage Department of Information Technology

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

FINOTE SELAM COLLAGE DEPARTMENT OF INFORMATION TECHNOLOGY

Project One

Task 1:- inserts the following data on the MS-Excel and import to the MS-Access

SID NAME Fname SEX CID CourseTitle CreditHour


001 Abebe Belay M 01 SQL 4
001 Abebe Belay M 02 C++ 3
001 Abebe Belay M 03 Java 5
002 Aster Kebede F 01 SQL 4
002 Aster Kebede F 03 Java 5
Belayne
003 h Balew M 02 C++ 3
004 Mitiku Yihun M 03 Java 5
Task 2: Open the
MS access application software and make the normalization process for the table.

 Create table
 Create the relationship b/n the tables
 Insert the given data correctly

Project Two

Tasks 1 install the Microsoft SQL server 2000.

You are the Northwind database administrator with the ABC Company. Then retrieve that productID,
productname, unite price from the products table that have the Unite price greater than total average of the unite
price and save Total average on local disk D

 The statement can written in the Upper and Lower case


 Use the query analyzer for retrieve the given value
Productname ProductID Unitprice
1 Uncle Bob's Organic Dried Pears 7 30.0000
2 Northwoods Cranberry Sauce 8 40.0000
3 Mishi Kobe Niku 9 97.0000
4 Ikura 10 31.0000
5 Queso Manchego La Pastora 12 38.0000
6 Alice Mutton 17 39.0000
7 Carnarvon Tigers 18 62.5000
8 Sir Rodney's Marmalade 20 81.0000
9 Gumbär Gummibärchen 26 31.2300
11 Schoggi Schokolade 27 43.9000
12 Rössle Sauerkraut 28 45.6000
13 Thüringer Rostbratwurst 29 123.7900
14 Mascarpone Fabioli 32 32.0000
15 Côte de Blaye 38 263.5000
16 Ipoh Coffee 43 46.0000
17 Manjimup Dried Apples 51 53.0000
18 Perth Pasties 53 32.8000
19 Gnocchi di nonna Alice 56 38.0000
20 Raclette Courdavault 59 55.0000
21 Camembert Pierrot 60 34.0000
22 Tarte au sucre 62 49.3000

1|Page BY BERHANU .M
FINOTE SELAM COLLAGE DEPARTMENT OF INFORMATION TECHNOLOGY
23 Vegie-spread 63 43.9000
24 Wimmers gute Semmelknödel 64 33.2500
25 Gudbrandsdalsost 69 36.0000
26 Mozzarella di Giovanni 72 34.8000

Task2 You are the database administrator in the northwind database then select that companyName, city and
country order by the companyName that have the country name ‘france’ or ‘UK’ from the table CUSTOMER then
save by the name Bestcustomers

companyName city country


Around the Horn London UK
Bon app' Marseille France
Consolidated Holdings London UK
Eastern Connection London UK
France restauration Nantes France
La corne d'abondance Versailles France
North/South London UK
Seven Seas Imports London UK
Blondesddsl père et fils Strasbourg France
B's Beverages London UK
Du monde entier Nantes France
Folies gourmandes Lille France
Island Trading Cowes UK
La maison d'Asie Toulouse France
Paris spécialités Paris France
Spécialités du monde Paris France
Vins et alcools Chevalier Reims France
Task 3 You are the database administrator in the northwind database then select that product name from PRODUCT
table and category name from the table CATEGORY table

Productname Categoryname
Chai Beverages
Chang Beverages
Aniseed Syrup Condiments
Chef Anton's Cajun Seasoning Condiments
Chef Anton's Gumbo Mix Condiments
Grandma's Boysenberry Spread Condiments
Uncle Bob's Organic Dried Pears Produce
Northwoods Cranberry Sauce Condiments
Mishi Kobe Niku Meat/Poultry
Ikura Seafood
Queso Cabrales Dairy Products
Queso Manchego La Pastora Dairy Products
Konbu Seafood
Tofu Produce
Genen Shouyu Condiments
Pavlova Confections
Alice Mutton Meat/Poultry
Carnarvon Tigers Seafood
Teatime Chocolate Biscuits Confections
Sir Rodney's Marmalade Confections
Sir Rodney's Scones Confections
Gustaf's Knäckebröd Grains/Cereals
Tunnbröd Grains/Cereals
Guaraná Fantástica Beverages
NuNuCa Nuß-Nougat-Creme Confections
Gumbär Gummibärchen Confections
Schoggi Schokolade Confections
Rössle Sauerkraut Produce
Thüringer Rostbratwurst Meat/Poultry
Nord-Ost Matjeshering Seafood
Gorgonzola Telino Dairy Products

PROJECT THREE give permission for your database

1. create login CoC with password 1234


2. create user CoC

2|Page BY BERHANU .M
FINOTE SELAM COLLAGE DEPARTMENT OF INFORMATION TECHNOLOGY
3. create role ICT and add user coc to a role ICT as a member
4. give the permission for the table customer “deny” in the role ICT

SQL Microsoft server 2000 execute code


Project 2

Task 1: select productname , productid , unitprice from products

where (unitprice)>(select avg(unitprice) from products)

Task 2: select companyName,city,country from customers

where (customers.country)='france' or (customers.country)= 'UK'

Task3: select products.productname,categories.categoryname

From products inner join categories on products.categoryid=categories.categoryid


Project 3
1. exec sp_addlogin 'coc','1234'
2. exec sp_adduser @loginame ='coc',@name_in_db='coc'
3. exec sp_addrole 'ICT'
sp_addrolemember 'ICT','coc'
4. deny select on customers to ICT

3|Page BY BERHANU .M

You might also like