Generic filters
Exact matches only
  • IN statement example with JOIN highest ID

    19th March 2014

    MySql

    mysql codehaven category

    This will pull the amount of the record with the highest ID of the campaign called Car.
    and will pull the amount of the record with the highest ID of the campaign called Van, and so on in the IN(*) part.
    It then adds them altogether, and outputs in $dog

    Was this code snippet helpful?