M
Mc_Clan
Hi to all,
I search a solution to obtain a list with PHP from a DataBase MSSQL,
apparently simple.... ScansID, IP, OS... where IP fields are repeated,
I search to making my list in order to have the last IP in Function of
their ScansID? My colleague made a Query with Microsoft Acces.
I take the MSACCES query that it gives the good result: -
===================
SELECT MAX(Scan.ScansID) as MAXSCANSID, Scan.IP, LAST(Scan.OS) as LASTOS
FROM Scan GROUP BY Scan.IP
HAVING (((LAST(SCAN.OS)) IS NULL))
ORDER BY Scan.IP
===================
!!! Surprise!!! LAST is not a SQL Command (Tried also SQL Shell)
If you have idea of like helping me,
Thousand thanks
(also changing the structure of the query)
Thanks to all
McClan
I search a solution to obtain a list with PHP from a DataBase MSSQL,
apparently simple.... ScansID, IP, OS... where IP fields are repeated,
I search to making my list in order to have the last IP in Function of
their ScansID? My colleague made a Query with Microsoft Acces.
I take the MSACCES query that it gives the good result: -
===================
SELECT MAX(Scan.ScansID) as MAXSCANSID, Scan.IP, LAST(Scan.OS) as LASTOS
FROM Scan GROUP BY Scan.IP
HAVING (((LAST(SCAN.OS)) IS NULL))
ORDER BY Scan.IP
===================
!!! Surprise!!! LAST is not a SQL Command (Tried also SQL Shell)
If you have idea of like helping me,
Thousand thanks
(also changing the structure of the query)
Thanks to all
McClan