SectionC: PracticalQuestions
[28 marks]
Question 1
Describe what each of the following DBA SQLStartup Options commands achieve
(8)
1. SQL> start-up
2. SQL> startup nomount
3. SQL> alter database mount
4. SQL> alter database open
Question 2
You are asked to create a database name 'KULIMA' this database is for Marketing farmers products, this
database consist of 2 tables. The first table is Farmsand it has the following fields, Farm_owner_lD,
Farm_Owner_name,Farm_Name, Produce_type,Prices_per_Kg,Client_lD. The second table name is
Clientsand it has the following fields, Client_lDand Client_name.
a) Write an SQLthat can give all information of the clients
(2)
b} Write a query that can only give results of Farm_owner_lD, Farm_Name, Produce_type,
Prices_per _ Kg.
(2)
c) The department of Agriculture asks you to give information about Farm_owner_name,
Produce_type, Prices_per_ Kg and Client name.
(6)
d) You were asked by the famers Union to increase the prices of fame rs produces by 10% write an
SQL query to provide this information.
[4)
e) The Famers union faced criticism to reverse back the farm produce prices write an SQL
statement to reverse back the prices
[4)
f) The clients stopped buying from the fame rs, Write a SQL code to delete the table Clients (2)
<««<« END>>»»»