Re: Selecting rows from a distinct selection of one field
From: Uri Dimant (urid_at_iscar.co.il)
Date: 12/09/04
- Next message: wangyang: "Re: How to insert 'Simplified chinese' into database?"
- Previous message: Adam Smith: "Selecting rows from a distinct selection of one field"
- In reply to: Adam Smith: "Selecting rows from a distinct selection of one field"
- Next in thread: Adam Smith: "Re: Selecting rows from a distinct selection of one field"
- Reply: Adam Smith: "Re: Selecting rows from a distinct selection of one field"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 9 Dec 2004 12:20:06 +0200
Adam
Do you really think that we will be ablt to help you from your narrative?
Please post DDL + sample data + desired result.
"Adam Smith" <private@hotmail.com> wrote in message
news:ehDM0bd3EHA.2804@TK2MSFTNGP15.phx.gbl...
> I'm not that new to SQL, but still I can't figure this out.
> I'm writing some routines to check through IIS logs.
> After batch importing the logs I end up with 16 fields. Field 2 is the IP
> addresses of our users. I can distinct this field and get all IPs that
> access our website.
>
> What I then want to do, is using this list of ip's pull out 1 sample row
for
> each IP.
> How do I go about doing this in pure sql (if I'd done it in ado I'd be
done
> by now).
> Idealy I'm looking for a fast hitting sql query, as you can imagine the
logs
> can be quite large at times.
>
> Thanks in advance
>
> --
> Regards,
> Adam Smith
> Assistant Computer Technician
> Phone: +44 (0)20-8251-1332
> E-mail: adam@101cd.com
>
> 101cd.com
> 11 Keeley Road
> Croydon
> CR0 1TF
>
>
- Next message: wangyang: "Re: How to insert 'Simplified chinese' into database?"
- Previous message: Adam Smith: "Selecting rows from a distinct selection of one field"
- In reply to: Adam Smith: "Selecting rows from a distinct selection of one field"
- Next in thread: Adam Smith: "Re: Selecting rows from a distinct selection of one field"
- Reply: Adam Smith: "Re: Selecting rows from a distinct selection of one field"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|