Welcome Guest, Not a member yet? Register   Sign In
Help with SELECT statement
#5

[eluser]Samuurai[/eluser]
Thanks a lot everyone !

This is how my code turned out after I dumbed it down Smile
Code:
$this->db->select('downtime.*, application.name AS appname, device.name AS devname');
$this->db->join('application', 'application.id = downtime.application_id', 'left');
$this->db->join('device', 'device.id = downtime.device_id', 'left');
$this->db->where('status = 1');
$query = $this->db->get('downtime');


Messages In This Thread
Help with SELECT statement - by El Forum - 07-27-2009, 09:25 AM
Help with SELECT statement - by El Forum - 07-27-2009, 09:43 AM
Help with SELECT statement - by El Forum - 07-27-2009, 09:47 AM
Help with SELECT statement - by El Forum - 07-27-2009, 11:14 AM
Help with SELECT statement - by El Forum - 07-29-2009, 08:13 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:07 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:25 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:31 AM
Help with SELECT statement - by El Forum - 08-05-2009, 09:59 AM
Help with SELECT statement - by El Forum - 08-05-2009, 10:19 AM
Help with SELECT statement - by El Forum - 08-05-2009, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB