i have a table t1 a math 20
b phy 30
cchemisty 10
a math 40
b phy 23
c che 21
a math15
bphy 33
c che 56
write a quire to find out the max markr of each subject
Answers were Sorted based on User's Feedback
Answer / kart
select sname,max(mark) from xtable group by sname;
che 56
mat 40
phy 33
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / giri babu
select sname,max(smarks)
from t1
group by sname
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kotesh
select sname,max(marks) from student group by sname;
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sumit
select subject,max(marks) from t1 group by subject;
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dharmendra
select subject,max(marks) from table_name
group by subject
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kotesh
select subname,max(marks) from t1 groupby subname
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / satishilluri
select max(math)max(phy),max(che) from t1
| Is This Answer Correct ? | 9 Yes | 12 No |
Answer / naresh
select subid,max(math),max(phy),max(che) from tablet1
group by subid
| Is This Answer Correct ? | 0 Yes | 3 No |
what is the difference between sql and t-sql? : Transact sql
What are the types of SQL Statement?
What is cross join sql?
What is Difference Between delete and Truncate?
what is a foreign key ? : Sql dba
Can procedure in package be overloaded?
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
What is string join?
What are the advantages of pl sql?
I have 2 table A and B. In A 1 lakh record is present. In b 20 thousand data is present. To get the unique data from table A and B which join we should prefer left inner join or right outer join. Please answer.
write a query filter the null value data following source? name age john 30 smith null null 24 sharp 35 i want output name age john 30 sharp 35
what is meant by urlencode and urldocode? : Sql dba
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)