Hi
Complete newbie to sql server. I have a Companies table from which I would
like to create a Clients view as follows;
SELECT ID, Company, CompanyType
FROM dbo.Companies
WHERE (CompanyType = N'Client')
Such that when I insert a record into this view it automatically sets
Company Type to Client. Just so I can treat the view as just another table
without having to worry about setting the correct company type. Is there a
way to do this either via views or some other way?
Thanks
Regards
Complete newbie to sql server. I have a Companies table from which I would
like to create a Clients view as follows;
SELECT ID, Company, CompanyType
FROM dbo.Companies
WHERE (CompanyType = N'Client')
Such that when I insert a record into this view it automatically sets
Company Type to Client. Just so I can treat the view as just another table
without having to worry about setting the correct company type. Is there a
way to do this either via views or some other way?
Thanks
Regards
Comment