Re: SQL or programming?
From: Ivan Debono (ivanmdeb_at_hotmail.com)
Date: 06/08/04
- Next message: Aaron [SQL Server MVP]: "Re: SQL or programming?"
- Previous message: Aaron [SQL Server MVP]: "Re: SQL or programming?"
- In reply to: Tom Moreau: "Re: SQL or programming?"
- Next in thread: David Portas: "Re: SQL or programming?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 8 Jun 2004 16:52:32 +0200
What I mean by Problem 2 is:
Selecting the category which occurs the most for items in Table B. So if
category1 occurs most even though some items cost less, then get category1.
Problem 1 will do the opposite: Select the cheapest items irrelevant of the
category.
Ivan
"Tom Moreau" <tom@dont.spam.me.cips.ca> schrieb im Newsbeitrag
news:Oz9hcZWTEHA.332@TK2MSFTNGP11.phx.gbl...
> Geez. Rough day. Also, reading your response, I think you interpreted
what
> the guy wanted for Problem 2. I couldn't figure out what he meant and
then
> inferred it through the data as the max (Cost). :-S
>
> --
> Tom
>
> ---------------------------------------------------------------
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
> SQL Server MVP
> Columnist, SQL Server Professional
> Toronto, ON Canada
> www.pinnaclepublishing.com/sql
>
>
> "Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
> news:%23RaHWWWTEHA.3332@tk2msftngp13.phx.gbl...
> > from
> > (
> > Item
> > , min (Cost) as Cost
> > from
> > TableB
>
> Forgot a SELECT in there. ;-)
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
- Next message: Aaron [SQL Server MVP]: "Re: SQL or programming?"
- Previous message: Aaron [SQL Server MVP]: "Re: SQL or programming?"
- In reply to: Tom Moreau: "Re: SQL or programming?"
- Next in thread: David Portas: "Re: SQL or programming?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|