Skip to content

Tag: sql

oracle sql max value

i have a requirement, i need to find max only one val from each department,i need only one value even 2 person have same max value drop table tst; create table tst(val number,dept varchar2(20),name …

SQL Query Not Getting Results

What I am doing wrong here? Can anyone please help? 1. Use non-correlated sub-query, find the names of employees who are not working on any projects Answer: SELECT * FROM employee_name WHERE ID IN (…

Calculating variances within a column

Note: 1st table is the current dataset, 2nd table is the requested result. I was thinking of creating temporary table X and Y which has sales and Sales&Service values data respectively and calculate the variance using a join. I was wondering if that’s the right/convenient way to solve this? Answer I…