Different Types of Commands in SQL
Different Types of Commands in SQL
Different Types of Commands in SQL
COMMANDSto discuss :
1. create table
2. insert into
3. Alter table --- add, rename, modify columns
4. Update ---using & not using where
5. Select--- all columns and some columns
6. Delete ---all rows and some rows
7. Rename ---table
8. drop table
9. FLASHBACK TABLE
10.drop table customer2 purge
PROBLEMS
23. Suppose the customer with id no C63 has changed her last name & now it is just same as the
customer with id no C68.
24. Replace the last name of customer with cid “C68” with the last name of customer with id
“C63”
/*Update customer set lname=(select lname from customer where cid=C63) where cid=C68.*/
27. Display the name of the customer having crd_lmt between 2000 and 7000.
28. Display the records of the customers having income 20000,24000,300,4500 using only one
query.
32. Suppose your friend wants to select a name from the names of the customers. Show the
different names of the student.