Professional Documents
Culture Documents
21mca044 Dbms (Practical 3)
21mca044 Dbms (Practical 3)
VIEW_ID VIEW_COMM
---------- ----------
101 25.52
102 12.21
103 11.11
104 33.33
105 88.99
1 1.1
106
107 11.22
108
109
Table altered.
7. Make a new table from the old table with the same structure.
Table altered.
Table created.
10 rows selected.
SQL> select * from sp2;
10 rows selected.
Table dropped.
Table created.
1 row created.
10 rows selected.
15. selects all customers with a City starting with any character,
followed by "_haruch"
16. selects all customers with a City starting with "B", followed by
any character, followed
17. selects all customers with a City starting with "G" and ends with
"a"
SQL> SELECT * FROM Customer WHERE City LIKE 'G%a';
19. selects all customers that are not located in "Goa", "France" or
"Ahmedabad"
20. selects all customers that are from the same city as the
salespeople: