Question 1 Create a table student with attributes student name, roll number, total marks and percentage. Do the following operations
- Insert details in to the table
- Update the details of the student named ‘JOHN'
- Delete details of the student ‘Mary'
- Display the details of students having more than 80%
Question 2 Write the following Queries using functions
- Write a query to display the sub string for the word 'oracle' from its position 2 to 3
- Write a query to change the ‘or' to ‘ab' in the word 'corporation' using translate function
- Write a query to maintain the first letter as caps using initcap function
- Write a query to display all characters is in caps using upper function
- Write a query to display ‘smudde' after leaving 5 blank places using lpad function