Professional Documents
Culture Documents
ISM Lab File
ISM Lab File
ISM Lab File
DESCRIBE – It lists the column definitions for the specified table, view or synonym,
or the specifications for the specified function or procedure.
SYNTAX:
DESC table
DESC view
DESC synonym
DESC package
DESC function
Q.1. Select the NAME column using ORDER BY command from Student_Moksh.
ORDER BY CLAUSE – It is used to sort the records in the result set. It can only be
used in SELECT statements.
SYNTAX:
SELECT expressions
FROM tables
[WHERE conditions]
ORDER BY expression [ASC|DESC];
Q.1. Change the city of Shreya from Delhi to Mumbai in Student_Moksh using
UPDATE command.
UPDATE – It is used to update existing records in a table in an Oracle Database.
SYNTAX:
UPDATE table
SET column1 = expression1,
Column 2 = expression2,
Column 3 = expression3,
[WHERE conditions];
DISTINCT CLAUSE - The DISTINCT CLAUSE is used to remove duplicates from the
result set. It can only be used with SELECT statements.
Using the update statement, we have entered the age of all the students.
SYNTAX:
ALTER TABLE table_name
MODIFY column_name column_type;
(ii)
SYNTAX:
ALTER TABLE table_name
DROP COLUMN column_name;
(iii)
Q.8. Change the class of Shreya, Mehak and Muskaan from BCom to BTech in
Student_MokshArya.
We can see here that the records are deleted as per requirement.
Q.10. Select Employee Name whose third character is ‘a’ and contains four
characters.