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/ 10
DBMS Practical List - 5
Platform: Oracle Express
Implementation of DDL & DML commands of
SQL
1. Logon to Oracle by system/manager.
2. Create a user of your name & assign it a password.
3. Grant resource, connect to a new user.
4. Disconnect from Oracle.
5. Connect as a new user.
6. See list of tables by using”Tab / user_tables /cat” tables.
7. View the user name from dual.
8. Clear the screen.
9. Perform some mathematical operations by using dual.(Addition,multiplicationetc)
10. Create a table student123 with following attributes:
Roll_No number 6
Name varchar 15
City varchar 12
Pincode varchar 8
Age number 2
11. Display the structure of table.
12. Insert the following data into the table.
Roll_no Name City Pincode Age
1 Amit Delhi 214213 21
2 Kumar Bombay 214101 25
3 Kahitij Madras 110101 16
4 Puneet Calcutta 1010107 18
5 Rohit Delhi 1102207 19
6 Karnal Dehradun 101301 28
7 Shweta Dehradun 98102 23
8 Mohit Bombay 12434 22
9 Pankaj Bombay 98632 17
10 Parul Gwaliar 76312 24
11 Rohit Barodra 12131 29
13. Show all records.
14. Show names of all students living in Delhi. 15. Show record of all students whose name starts with “A”. 16. Show record of all students whose name ends with “it”. 17. Show records of all students having age greater than 25 & living in Dehradun. 18. Show the names of all cities (names of cities should not be repeated). 19. Show the names of students alphabetically in ascending order. 20. Show the records of those students which are either less than 20 years or they are living in Bombay. 21. Show records of all those students who are not living in Dehradun. 22. Insert the following data further into the same table.
12 Gaurav Rampur 312125 NULL
NULL Manish NULL 314136 NULL 14 Aviral NULL 319143 29 15 NULL Gwaliar 313149 25 23. Assign Roll_no “13” to Manish. 24. Assign the name “Abhijeet” to Roll_no 15. 25. Set the cities of Roll_no.13 & 14 to Meerut. 26. Increase all age by 3 years. 27. Set the age of all students living in Meerut to “25”.