-
Sql query to obtain 2nd highest mark in each subject for a student
Given a table with 3 columns StudentName,Subject and Marks.Write a sql to retrieve second highest Marks Obtained for each student.
-
SQL Query to find out the Maximum marks for each subject
Students table contains studentid, subjectid and marks. Where there are 10 subjects and 50 students. what is the Query to find out the Maximum marks obtained in each subject.
-
-
Question on Constraints
I am new to Oracle. I have created one table in that one column name salary, while creating the table I have given the datatype for that column is varchar2 and also I have given not null constraint. Now I want to change the datatype varchar2 to number, Is it possible to alter the datatype when having constraint in table?
-
How to retrieve a second highest salary from a table?
How to retrieve a second highest salary from a table?
Note:Suppose salaries are in duplicate values
eg:
Name Sal
Malli 60000
Pandi 60000
Rudra 45000
Ravi 45000
-
What is difference between Co-related sub query and nested sub query?
Co-related sub query is one in which inner query is evaluated only once and from that result outer query is evaluated.Nested query is one in which Inner query is evaluated for multiple times for gatting one row of that outer query.ex. Query used with IN() clause is Co-related query. Query used with = operator is Nested query
-
How Select query works in Oracle
When we give SELECT * FROM EMP; How does oracle respond?
-
Query to Get Highest Marks Output
Question: student marks stable "sp_report"
sid maths chem phy engl
1 33 45 54 48
2 55 32 50 37
3 10 20 30 40
The required o/p is (SQL QUERY TO GET THE BELOW O/P)
sid highest_marks
1 54
2 55
3 40
Get Numeric Values only using SQL ?
I have table with one column. type varchar..
PHONE
---------------
99samn44423m44
8034skdf3453a2
909090abc4567d
i want to get numeric values.. i mean my output will be
PHONE
---------------
994442344
80343453a2
9090904567
thanks in advance..
SateeshAscending Order and Descending Order Query
How to write a query to list the items in ascending order of Name and within Name, in descending order of Salary
Removing duplicacy
How to delete duplicate records without using rownum/rowid concept?
Index Organized Table (IOT)
What is the use Index Organized Table (IOT)?
How To Copy Data From One Table to Another Table Having Data
If i have two table T1 having data of column C1,C2,C3 and C4 and T2 having data of column C5,C6,C7 and C8,How to copy Data of T2 to T1 or T1 to T2
What is Dual table?
What is dual table which is used as a table in sql...
Recent row entered
I have a very unusual question, how can one check which is the recent row added to a table?
Ans