Código SQL:
Ver originalSELECT prendaselec.ID,prendaselec.IDTipo,prendaselec.IDMarca,prendaselec.IDFamilia,
tipo.Descripcion AS Desc_Tipo,
tipoprenda.Descripcion AS Desc_Familia,
prendaselec.Modelo,marcas.Descripcion AS Desc_Marca,
prendaselec.Minimo,prendaselec.Maximo,
prendaselec.Funciones,
prendaselec.Caracteristicas FROM
prendaselec INNER JOIN tipo
ON prendaselec.IDTipo=tipo.ID
LEFT JOIN marcas
ON prendaselec.IDMarca=marcas.ID
LEFT JOIN tipoprenda
ON prendaselec.IDFamilia=tipoprenda.ID
WHERE PrendaSelec.Sucursal=101 AND
Tipo.Sucursal=101 AND Marcas.Sucursal=101
AND TipoPrenda.Sucursal=101 AND
Prendaselec.IDTipo=6
GROUP BY prendaselec.ID
ORDER BY prendaselec.IDTipo,tipo.Descripcion,marcas.Descripcion
asì?