Viewing 15 posts - 16 through 30 (of 31 total)
just tryin it here dave..lol
May 2, 2011 at 1:12 pm
lost:ermm:
May 2, 2011 at 1:11 pm
lost:ermm:
May 2, 2011 at 1:07 pm
select d.Department_No,MIN(AVG(Annual_Salary)) AS Lowest_Avg_Annual_Salary
from Departments d
inner join
Employees e
on d.Department_No=e.Department_No
order by Annual_Salary
would i just say TOP 1?..
May 2, 2011 at 1:04 pm
List the department number and the annual salary of the department with the lowest average annual salary
May 2, 2011 at 1:01 pm
sean its just example questions for an exam that im getting next month..
May 2, 2011 at 12:58 pm
how do i do that dave?..im just beginning sql dave
May 2, 2011 at 12:57 pm
Column 'Departments.Department_Name' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
April 14, 2011 at 7:12 am
thx so much that worked gila...it ows doing my head in there for ages...lol...thx again pal...:-)
April 14, 2011 at 5:50 am
select sum(annual_salary) as 'total'
from dbo.Employees
where Department_No='80'
this displays the total annual salary for department but to 2 decimal places...i just need 0 decimal places
April 14, 2011 at 5:41 am
This code gets me 2 decimal places ..
select SUM(annual_salary) as 'Total'
from dbo.Employees
where Department_No='80'
this code gets me 0 decimal places with monthly salary
select department_no,cast (Annual_Salary/12 as decimal (8,0))as 'Monthly Salary...
April 14, 2011 at 5:24 am
select last_name,department_no, (Annual_Salary/12) as 'Monthly Salary'
from Employees
where Department_No='90'
this will show the monthly salary but when i put in ,2 it wont do two decimal places?
ive used the round function but...
April 12, 2011 at 7:30 am
sorry its : decimal (8,2)null.....
April 12, 2011 at 7:01 am
Viewing 15 posts - 16 through 30 (of 31 total)