'On linux, open and openat are hijacked through LD_PRELOAD, but the hijacking library is invalid for the md5sum command [closed]

On linux, open and openat are hijacked through LD_PRELOAD, but the hijacking library is invalid for md5sum and sha256sum commands.. Is it because md5sum directly invokes the system call?



Solution 1:[1]

In this case you could do this:

select * from tbl where  id = 'xxx' group by field

or this.

select distinct on field * from table

Solution 2:[2]

What we usually do, is to rank rows by desired column (kilometers) in descending order and optionally restrict (partition) them by something (vehicle, in this case). That's what analytic functions are for.

What's left is to select values that rank the "highest".

Something like this:

SQL>   with hikm as
  2    (select t.*,
  3       rank() over (partition by vehicleid order by kilometers desc) rnk
  4     from test t
  5    )
  6  select *
  7  from hikm
  8  where rnk = 1;

SALEAGREEMENTDETAILID SALEAGREEMENTID VEHICLETYPE VEHICL KILOMETERS        RNK
--------------------- --------------- ----------- ------ ---------- ----------
                  166           10062         123 000051      17377          1
                  169           10062         123 990140      24924          1

SQL>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 noe
Solution 2 Littlefoot