Professional Documents
Culture Documents
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
4. Give the commands for making the screen clear and exiting the oracle application
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
4. Give the commands for making the screen clear and exiting the oracle application
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
4. Give the commands for making the screen clear and exiting the oracle application
(Enter 4 records)
a. Display Name,Age,qualification and salary
b. Show Name RegNo and Gender in the descending order of Age
g. Add 2 more records on the first table (TRAINEES)
h. Use AND , OR , NOT operators in your first table
i. Rename table TRAINEES to INTERMS
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
4. Give the commands for making the screen clear and exiting the oracle application
a. Display the greatest and the least between (Telephone , TotalSal , SalPaid and
Balance).
b. Arrange balance in the ascending order of Name.
c. Display Age , city and salpaid of person whose name start with letter J
d. Change the telephone no. of the person whose city starts with letter B to
5401010
e. Perform the following operations: Avarage , sum ,minimum ,maximum and
count on the Total salary.
All the best ISAACK
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
4 Give the commands for making the screen clear and exiting the oracle application
4 Population
City Male Female Total
Kigali 30000 60000
Gitwe 70000 90000
Gitarama 100000 300000
Butare 90000 1200000
Byumba 50000 50000
a. Create table population and show the command that would fill the values
where there are null values.
b. Create a view of population1 with the name popview to display Male and
Female column
c. Delete the records of Gitwe from the table and show this effect on popview.
d. Write a subquery to show Male basing on Total population.
e. Increase the population of Male in Gitarama by 3000.
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
There are two sections
n. Theory questions
o. Practical questions
1. Write an SQL command for creating a table like the one shown below
2.Give a brief explanation using simple and short examples of the following functions
4 Give the commands for making the screen clear and exiting the oracle application
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
2. Give a brief explanation using simple and short examples of the following functions
4. Give the commands for making the screen clear and exiting the oracle application
Perform
i. Display RegNo and salary of people below 24 years old.
ii. Gives the Average salary.
iii. Delete record no 5 from the table
iv. Create a view of the above table show the column of RegNo and Age
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
1. Write an SQL command for creating a table like the one shown below
2. Give a brief explanation using simple and short examples of the following functions
avg----average , count, max---maximum, min----minimum, sum
4. Give the commands for making the screen clear and exiting the oracle application
DISTRICT
Instructions
. Destination should contain country names.
. Each table to contain 6 records.
. Passport No and PassNo are same values and Passport No is Primary keys
Work
a. Display Name , PassNo and Destination
b. Display Age and destination in ascending order of age
c. Create a view of table government to show Passport No and District ,then add one
record on PassportNo table and show it on view
d. Change tablename of DISTRICT to BIRTHPLACE.
All the best ISAACK
INSTRUCTIONS
1. Time allowed 3 hours
2. Attempt all questions
1. Write an SQL command for creating a table like the one shown below
4. Give the commands for making the screen clear and exiting the oracle application