Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10548

Re: Eliminating duplicate entry

$
0
0

Hi,

 

You may try:

 

SELECT S.siteName, V.siteIP, MAX(H.date) Date, S.siteName + H.date

FROM sites S

left JOIN history H ON S.siteName = H.siteName

left join value V on V.sitename = S.sitename

Group BY S.siteName, V.siteIP

UNION

SELECT '', '', H.date, S.siteName + H.date

FROM sites S

left JOIN history H ON S.siteName = H.siteName

left join value V on V.sitename = S.sitename

ORDER BY S.siteName + H.date

 

Even though you can see an additional column, the last column will not be exported because there is no title.

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 10548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>