0% found this document useful (0 votes)
345 views2 pages

Final Exam E

1) This document provides a basic SQL quiz for 3rd year ICT students. It includes 10 multiple choice questions testing SQL fundamentals like SQL commands, data retrieval and modification, and basic queries. 2) It also provides short answer questions to test writing basic SQL statements for tasks like inserting a new employee record, updating an existing record, counting records by gender, retrieving customer records by ID and address criteria, and deleting a customer record. 3) The questions cover key SQL topics such as data definition, modification, aggregation, and retrieval using conditions and ordering.

Uploaded by

mohammed ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
345 views2 pages

Final Exam E

1) This document provides a basic SQL quiz for 3rd year ICT students. It includes 10 multiple choice questions testing SQL fundamentals like SQL commands, data retrieval and modification, and basic queries. 2) It also provides short answer questions to test writing basic SQL statements for tasks like inserting a new employee record, updating an existing record, counting records by gender, retrieving customer records by ID and address criteria, and deleting a customer record. 3) The questions cover key SQL topics such as data definition, modification, aggregation, and retrieval using conditions and ordering.

Uploaded by

mohammed ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Soloda health and technology college basic structured query language for 3 rd year ICT students

Name _____________________________________ ID______________________


I. Choose the best answer from the given alternatives
1) SQL stands for ______.
A) Structured Query Language B). Simple Query Language
C). Structured Questioning Language D). None of these
2). What is SQL?
A). A high-level programming language. B). A low-level programming language
C) . special purpose programming language to manage databases
D). A markup language for websites
3). Which command is used to modify column name or table structure?
A). Modify B). Add C). Change D). Alter
4). Which command is used to change data in a table?
A) Change B) Alter C) Update D) Modify
5). Which one of the following is different from the other?
A) Create Table B). Add Column C). Drop Column D) Insert.
6. In order for two queries to be UNION-compatible, they must:
A. Both have compatible data types for each column
B. Both have the same number of lines in their SQL statements
C. Both return at least one row
D. Bothe has the same number of records
7. You have a Bank Database system to store account transaction data. what do you do if you need to get
ordered transaction data from the most recent to the oldest transaction?
A. search “transaction date” in ascending order
B. search “transaction date ” in descending order
C. search “transaction Id ” in descending order
D. search “transaction Id” in ascending order
8. An illegal expression used in SQL
A. SELECT NULL FROM EMPLOYEE;
B. SELECT NAME FROM EMPLOYEE;
C. SELECT NAME FROM EMPLOYEE WHERE SALARY = NULL;
D. SELECT * FROM EMPLOYEE
9. Which SQL how can you insert new record in to first name and last name column employee ‘table’
A. insert in to employee (firstname, lastname) values (‘haymanot’,’aster’)
B. insert in to employee (‘haymanot’,’aster’)
C. insert values into (firstname, lastname) values (‘haimanot’,’aster’)
D. insert in to (firstname, lastname) values (‘haymanot’,’aster’)
10. Which SQL how can you retrieve all the records from table named ‘employee stored descending by ‘firstname’)
A. select *from employee order first name descending
B. select *from employee order by first name desc
C. select *from employee order by first name asc
D. select *from employee order by first name ascending

Set by M/Ahmed 2014


II. Give short answer for the following question.
Employee table
Emp_ID Emp_Fname Emp_Lname Sex Salary
E003 Tigist Afework F 1,890
E001 Kebede Asfaw M 2,680
E004 Chala Lemi M 5,250
E002 Aster Lemma F 3,100
Customer table

Cust_Id Cust_Fnam Cust_Lname Cust_Address


e

C001 Abebe Taye Adama

C002 Chaltu Gemmechu Wonji

C003 Tesfaye Getachew Asella

C004 Bikila Alemu Modjo

A. Write a query that Insert the following record into Employee table?
Emp_Id=005, Emp_Fname=Tsegaye, Emp_Lname=Abebe, Sex=M, Salary=3,200
B. Update the salary of Kebede to 3,000 and save it by the name Kebede
C. Write SQL statement that counts the total number of Female and Male Employees
D. Write SQL statement that displays all records that contains Cust_Id and Cust_address whose
customer address starts with the letter A
E. Delete the record from Customer table whose Cust_Id is C003

Set by M/Ahmed 2014

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy