MeetCode
View to hide sensitive columns
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Run
Submit
Dark
Problem Statement
Solutions
Submissions
View to hide sensitive columns
Medium
SQL
Views
16 views
Explanation
Complexity
Problem Statement
Payroll(emp_id, salary, bank_account). Create view exposing emp_id and salary only.
Input Format
SQL DDL
Output Format
View created
Example
Input
Payroll
Output
View created
Constraints
Do not expose bank_account
Input / Output Format
Input Format
SQL DDL
Output Format
View created
Constraints
Do not expose bank_account
Examples
Input:
Payroll
Output:
View created
Example Solution (Public)
SQL
CREATE VIEW v_payroll_public AS SELECT emp_id, salary FROM Payroll;
Official Solution Code
Wrap
Copy
CREATE VIEW v_payroll_public AS SELECT emp_id, salary FROM Payroll;
Please
login
to submit solutions.
Editor
C
C++
Computer Mathematics
CSS
DSA
HTML
Java
JavaScript
NodeJS
PHP
Programming Interview
Python
ReactJS
SQL
Test Cases
Output
Submission Result
Input
Payroll
Expected Output
View created
Compile Output
Error
Output
Please
login
to submit solutions.