Mastercard Interview Question | View
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 2 )
Views are virtual tables that can be a great way to optimize your database experience. Not only are views good for defining a table without using extra storage, but they also accelerate data analysis and can provide your data extra security.
CREATE VIEW V_Customer
AS SELECT *
FROM Customer;
One of the things is to support legacy code.
If you want to change the structure of your table which can break the old code
in lot of different ways, you can create a view from the table and give the same name to
the view as of the table. This will help in not breaking the code.