Académique Documents
Professionnel Documents
Culture Documents
Name:YASHASHREE NIMONKAR
Roll No.:54 Div:TE Comp 1
TITLE:Design and Develop SQL DDL statements which demonstrate the use of SQL
objects such as Table, View, and Index using Client-Data sever (two tiers)
*/
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
2. CREATE VIEW view2 where name of employee start from letter ‘S’.
mysql> create view view2 as select * from Work where Emp_Name like 'S%';
Query OK, 0 rows affected (0.02 sec)
mysql> create view view3 as select * from Work where (Emp_Addr='PUNE' AND
Company_Name='TCS') OR (Emp_Addr='MUMBAI' AND Company_Name='INFOSY');
Query OK, 0 rows affected (0.04 sec)
10. Create View to Display total number of employee's working for “TCS”.
mysql> exit;
Bye
admin1@admin1:~$