i trying to read data from quite a few tables.. Now the statement works well except when i include the where e.equipmentLoca tionID = l.equipmentLoca tionID AND e.cabinetID = c.cabinetID AND e.equipmentOsID = osy.equipmentOs ID AND e.equipmentServ iceLevelID = s.equipmentServ iceLevelID AND e.equipmentType ID = eq.equipmentTyp eID . But i need to include since the output i want is not the ID but the field.
I am using PHP...
I am using PHP...
Code:
$query = "select e.equipmentName, e.equipmentSerTagNum,l.location,c.name , osy.osName , s.type, e.hardwareDescription,e.macAddress,e.rackNum, eq.type,e.hostServerName,e.updatedDate,e.warrantyStartDate, e.warrantyEndDate ,e.equipmentBrand,e.equipmentApplication from equipmentInfo as e, equipmentLocation as l, cabinet as c, os as osy ,serviceLevelType as s, equipmentType as eq where e.equipmentLocationID = l.equipmentLocationID AND e.cabinetID = c.cabinetID AND e.equipmentOsID= osy.equipmentOsID AND e.equipmentServiceLevelID = s.equipmentServiceLevelID AND e.equipmentTypeID = eq.equipmentTypeID And e.equipmentName like \"%$trimmed%\" or e.equipmentSerTagNum like \"%$trimmed%\" order by e.equipmentName";
Comment