You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT s.IdBodega AS Bodega, dbo.Nombre_Completo_Ubicacion(s.IdUbicacion, s.IdBodega) AS Ubicacion, COUNT(DISTINCT s.lic_plate) AS Cant_Lic, CASE WHEN bt.es_rack = 1 THEN 'Si' ELSE 'No' END AS Es_Rack
FROM dbo.stock AS s INNER JOIN
dbo.bodega_ubicacion AS bu ON s.IdUbicacion = bu.IdUbicacion AND s.IdBodega = bu.IdBodega INNER JOIN
dbo.bodega_tramo AS bt ON bt.IdSector = bu.IdSector AND bt.IdBodega = bu.IdBodega