Consider these tables:
- Brands (Id, Name, Logo, Ratings)
- Products (Id, Title, Picture, Price)
Is it possible to use star selection to select ALL but ID fields from the Brands table in a join?
create view ProductViews
as
select
p.*,
-- Is it possible to use star selection to select all fields of the Brands, except the Id field?
b.Name,
b.Logo,
b.Ratings
from Products p
inner join Brands b
on p.BrandId = b.Id