I have a Employee table with columns
ename,eid,salary,deptno. How to retrieve sum of salary for
each deptno?
Answer Posted / lova raju allumalla
instead of deptno the result will give u in department name
select sum(sal),dname from emp e,dept d where
e.deptno=d.deptno group by dname
/
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.
which tcp/ip port does sql server run on? : Sql dba
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
Are subqueries faster than joins?
define data blocks ? : Sql dba
What is sql engine in oracle?
What are the benefits of pl sql?
What is primary and foreign key?
Write a sql query to convert all character to uppercase after hypen.
Mention what does plv msg allows you to do?
What are sql objects?
What is a unique key and primary key and foreign key?
Is primary key always clustered index?
How to change sql*plus system settings?
What is the usage of when clause in trigger?