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

[eluser]Samuurai[/eluser]
Hi,

I've only ever done simple SELECT statements, but am trying to advance to the world of JOINS and selecting from multiple tables.

I'm writing an app to track server downtimes for my organisation.

I have 5 tables
One called application which has an id and Name field
One called device which has an id and Name field
One table called "downtime", which has an "id" some fields with data and also application_id and device_id
I also have two lookup tables named downtime_application and downtime_device.

I'm ok with the basic SELECT * FROM downtime, but how do I then use the application_id and device_id do pull the application and device name ?


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