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
Answer Posted / dharmendra
select subject,max(marks) from table_name
group by subject
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how would concatenate strings in mysql? : Sql dba
Enlist the advantages of sql.
What are sql functions? Describe in brief different types of sql functions?
What is not in sql?
what is normalization? : Sql dba
Is id a reserved word in sql?
Which command is used to delete a trigger?
how to calculate expressions with sql statements? : Sql dba
How do sql databases work?
What is memory optimized table?
explain advantages of innodb over myisam. : Sql dba
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What are different types of functions in sql?
What is sql deadlock?
What is difference between stored procedures and application procedures?