473,473 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Pls help me solving this....

2 New Member
Hi All,

I have a table Dept_Stores in Denormalized format

Dept_Name Money
Marketing 1500
Sales 2500
Marketing 1500
Production 5000
Sales 3500
Marketing 1000
Sales 3500

My question is , can i use the table which would result from a query

Select Dept_Name , Sum(Money) from Dept_stores group by dept_name; for any other subsequent queries like to find the Max , Min, Avg etc
Dec 24 '06 #1
1 1118
RaviCKota
2 New Member
Let me put my question more clearly,

I want to get the department name (Dept_Name), Money earned or spent (Mny_Erned_Spnt) from the table Dept_Stores, which has the maximum amount of total Mny_Erned_Spnt.....

To put simply I need Max(Sum(Mny_Erned_Spnt))... Can you help me in getting an SQL for this requirement
Dec 25 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: nib | last post by:
What kind of problems is visual basic best at solving?
2
by: nib | last post by:
What kind of problems is Java best at solving?
10
by: Juha Haataja | last post by:
I have been learning Python since April, and would like a few comments from the experts on list processing. I managed to implement a Python code for solving the so-called Einstein's Riddle, see...
0
by: nb | last post by:
What kind of problems is Perl best at solving?
12
by: nib | last post by:
What kind of problems is c best at solving?
16
by: Martin Jørgensen | last post by:
Hi, I've made a program from numerical recipes. Looks like I'm not allowed to distribute the source code from numerical recipes but it shouldn't even be necessary to do that. My problem is...
5
by: bparanj | last post by:
Hello, I have been a software developer for the past 10 years now. I get job descriptions that requires problem-solving skills as one of the most desirable skills in a candidate. But there are...
1
by: bparanj | last post by:
Hello, I have been a software developer for the past 10 years now. I get job descriptions that requires problem-solving skills as one of the most desirable skills in a candidate. But there are...
4
by: Ashish_CPP | last post by:
Hi, Can anyone help me and suggest some good C books that enhances the logical & problem solving skills. I dont want those books which teach C/C++ rather I want those books to be suggested that...
9
by: TG | last post by:
Hi there. Anyone knows how to use numpy / scipy in order to solve this ? * A is an array of shape (n,) * X is a positive float number * B is an array of shape (n,) * O is an array of shape...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.