SQL Queries
SQL Queries
2. In how many ways you can create query in open office base?
3 ways
a. Create query in Design view
b. Create query using wizard
c. Create query in SQL view
3. Name the query language which is used in base?
SQL
4. Which command is used to retrieve data from the table?
Select command is used to retrieve data from the table.
5. Name the categories of SQL commands.
DDL,DML,DCL,TCL.
6. Differentiate between DDL and DML commands
DDL:
1. It stands for Data Definition Language
2. Ex: Create, Alter, Drop
DML:
Select*from book;
11. Write the shortcut to execute query in “ create query in SQL view” of base.
F5
Answers:
1. Select *from SCHOOL order by STUDENTNAME;
2. Update SCHOOL set CLASS =7 where STUDNETNAME =’Dhriti’
3. Select * from SCHOOL;
4. Select ROLLNO,STUDNETNAME from SCHOOL where CLASS =10;
5. Select * from SCHOOL where CLASS = 9;
6. Insert into SCHOOL values(‘R24’,’Kamal’,’15-05-2010’,8);
7. Select *from SCHOOL where CLASS>9;