Re: How can I select Max and Min value from a row?
From: chrisben (chrisben_at_discussions.microsoft.com)
Date: 07/08/04
- Next message: David Browne: "Re: Possible Bug in SQL Server 2000?"
- Previous message: Andrew J. Kelly: "Re: logs - configuration option changed"
- In reply to: Adam Machanic: "Re: How can I select Max and Min value from a row?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 8 Jul 2004 10:21:02 -0700
Sorry. I saw that group is not quite active so I repost it here. Just Saw your answer there. Thanks for the help.
"Adam Machanic" wrote:
> Asked and answered in .datamining... please do not multi-post.
>
>
> "chrisben" <chrisben@discussions.microsoft.com> wrote in message
> news:71F9DB34-B04C-4314-A03B-4D368978113B@microsoft.com...
> > Hi,
> >
> > I tried to select teh max value for some fields in a row and min values
> for other fields in a row. I have one key called name. Does anyone know how
> to do it?
> > Thanks a lot
> >
> > Chris
> >
> > Sampe
> >
> > Name val1 val2 val3 val4 val5 val6
> >
> > after the query, I would like to get
> >
> > Name Max(val1,val2,val3) Min(val4,val5,val6)
> >
>
>
>
- Next message: David Browne: "Re: Possible Bug in SQL Server 2000?"
- Previous message: Andrew J. Kelly: "Re: logs - configuration option changed"
- In reply to: Adam Machanic: "Re: How can I select Max and Min value from a row?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|