Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Range grouping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01472288
Message ID:
01472291
Vues:
48
>Hi all,
>
>I have a table (wwrequestlog) of web hits with the corresponding ip-addresses (field remoteaddr).
>Another table (iptocountry) contains two numeric fields (field1, field2), a range of ip-addresses with the corresponding country (field3).
>
>I want to make a query where for each hit in wwrequestlog where the corresponding country is searched. For example:
>
>field1 field2 country
>411303936 411369471 NL
>540711936 540712447 NL
>1042299392 1042300159 SP
>
>..
>
>table wwrqeustlog
>
>remoteaddr ...
>540711938
>..
>result of query
>540711938 NL
>
>Thanks beforehand

Try:
Select L.RemoteAddr as IP, C.Country from WWRequestLog L 
LEFT JOIN IPToCountry C on L.Ip between C.Field1 and C.Field2
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform