Oracle
Description: ORACLE Practice, ORACLE Test, | |
Number of Questions: 20 | |
Created by: Preeti Dasgupta | |
Tags: ORACLE Practice ORACLE Test Java/Oracle /C/C++ Oracle |
Find the odd one out of the following Oracle functions. A. avg() B. sqrt() C. sum() D. max() E. count()
Find the odd one out of the following SQL operations in ORACLE.
Predict the output of the following query. Select INITCAP('Delhi is the capital city of INDIA') from DUAL
SELECT STUDENT_ID, MARKS FROM STUDENTS WHERE STUDENT_ID = 119
What will be the output of the above query?
Assume STUDENT_ID to be a primary key column.
Which of the following statements will create a new user?
Write a query to display students details whose STUDENT_ID is 119 OR COURSE_ID is 301.
Write a query to choose all the students who got the highest marks in the exam.
Which of the following statements is TRUE about a subquery?
Write a query to display students details whose marks are greater than the student whose STUDENT_ID is 123.
SELECT STUDENT_ID, MARKS FROM STUDENTS WHERE MARKS > ( SELECT MARKS FROM STUDENTS WHERE STUDENT_ID = 123 ) What will be the output of the above query? Assume STUDENT_ID to be a primary key column.
SELECT STUDENT_ID, MARKS FROM STUDENTS WHERE MARKS > 80
What will be the output of the above query?
Which of the following statements is TRUE about a correlated subquery?
Write a query to choose all the students who have got the least marks in the exam.
Which of the following statements is TRUE about nested subquery?
Which of the following guidelines is correct for writing a subquery?
Write a query to choose all the courses in which the least marks obtained is greater than the highest marks obtained in the COURSE_ID 201.
Write a query to get the details of all the students who are all enrolled in the same course as the student with STUDENT_ID 123.
Write a query to display students details whose marks are greater than 80. Note: Choose the most appropriate answer from the given choices.
Consider the following tables structucres:
STUDENT(STUDENT_ID, STUDENT_NAME, COURSE_ID, JOIN_DATE) RESULTS(STUDENT_ID, SUB1_MARKS, SUB2_MARKS, SUB3_MARKS, SUB4_MARKS) COURSE(COURSE_ID, COURSE_NAME)
Write a query to get the results of all the students who are all enrolled in the same course as the student with STUDENT_ID 123.
Consider the following table structures:
STUDENTS (STUDENT_ID, STUDENT_NAME, COURSE_ID, JOIN_DATE) RESULTS(STUDENT_ID, SUB1_MARKS, SUB2_MARKS, SUB3_MARKS, SUB4_MARKS) COURSE(COURSE_ID, COURSE_NAME)
Find out the details of all the students who have appeared for more than 4 papers of the enrolled course.