(Eng) Prac - 4 DBMS
(Eng) Prac - 4 DBMS
Task: Realize in SQL scripts for the following tasks. Display own screens of the performed
tasks.
1) Delete one any record from the table exam_list, for example with id=7. Check the
result.
2) The student with id=4 changed the place of residence to Tashkent, Yunusobod
08/04/11. Reflect changes in the relevant table. Compare the results before and after the
update.
3) Select from the table Student all students living to Tashkent (the % creates the mask
passing any characters)
4) Show all records which applies to the subject DBMS from the table exam_list
5) Define the greatest point which was got ever by the subject Database management
system. For execution of this operation use the aggregate function "max".
SELECT max(<field_name>) FROM <table_name>
In addition to it there are also the following aggregate functions:
min – finding of the minimum value
count – determination of quantity of lines (records)
avg – finding of an arithmetic average of value
sum – finding of the total amount