Changes between Version 1 and Version 2 of Internal/GoodJoin


Ignore:
Timestamp:
Jun 21, 2011, 4:13:07 PM (13 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/GoodJoin

    v1 v2  
    88ORDER BY `check_in`.`time`  DESC
    99}}}
     10
     11X,Y coordinates of a specific device:
     12{{{
     13SELECT locations.x,locations.y,nodes.motherboard_id,device_kinds.description
     14FROM nodes
     15LEFT JOIN locations ON nodes.location_id = locations.id
     16LEFT JOIN devices ON nodes.motherboard_id = devices.motherboard_id
     17LEFT JOIN device_kinds on devices.device_kind_id = device_kinds.id
     18WHERE (devices.device_kind_id = 41 OR devices.device_kind_id = 32)
     19ORDER BY locations.x,locations.y
     20}}}