We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0dc35 commit 0537581Copy full SHA for 0537581
README.md
@@ -153,3 +153,30 @@ select employee_id, first_name from employee;
153
```sql
154
select employee_id, first_name from employee where age > 25;
155
```
156
+
157
+## Views
158
159
+#### Create a view
160
+```sql
161
+create view personal_info as select first_name, last_name, age from employees;
162
+```
163
164
+#### Displaying view
165
166
+select * from personal_info;
167
168
169
+#### Updating in view
170
171
+update personal_info set salary = 1.1 * salary;
172
173
174
+#### Deleting record from view
175
176
+delete from personal_info where age < 40;
177
178
179
+#### Droping a view
180
181
+drop view personal_info;
182
0 commit comments