Yes, of course!
TABLE `TeatroAsiento`
(`Id`, `IdModoTeatro`, `Numero`, `Fila`, `IdSector`)
VALUES
(135, '1001', 1, '7', '2002')
(136, '1001', 2, '7', '2002')
(137, '1001', 3, '7', '2002')
(138, '1001', 4, '7', '2002')
(139, '1001', 5, '7', '2002')
TABLE `PrecioEspectaculoSector`
(`IdEspectaculo`, `IdFuncion`, `IdSector`, `Precio`)
VALUES
('14', '23', '2002', '80.00')
TABLE `SectorTeatro`
(`Id`, `Nombre`, `IdModoTeatro`, `ColorHex`, `SectorUbicacion`)
VALUES
('2002', 'Lat. Izquierdo', '1001', 'ffb000', 'Izquierda')
TABLE `LocalidadEstado`
(`IdFuncion`, `IdEspectaculo`, `IdSector`, `IdTeatroAsiento`, `IdEstado`)
VALUES
('23', '14', '2002', '135', 2)
('23', '14', '2002', '136', 2)
('23', '14', '2002', '137', 2)
I try to do the following:
'TeatroAsiento.Id', 'LocalidadEstado.IdEstado'
135, 2 (Exists in table LocalidadEstado, so it shows NotAvailable.png)
136, 2 (Exists in table LocalidadEstado, so it shows NotAvailable.png)
137, 2 (Exists in table LocalidadEstado, so it shows NotAvailable.png)
138 (Doesn't exist in table LocalidadEstado, so it shows available.png)
139 (Doesn't exist in table LocalidadEstado, so it shows available.png)