You are on page 1of 1

Oracle

SQL – Select Query


Q1. Create the following table in oracle and add 10 records .

Table name : Student01

Reg varchar2(20) primary key, [ R-001, R-002 etc ]


Roll int ,
Class varchar2(5), [ example : X, XI,VIII etc ]
Dob date,
Sub1 int,
Sub2 int,
Sub3 int,
Total int

Write the following SQL


1. Creating the table
2. Insert one record.
3. Insert record without total,
4. Show the record whose Reg is : R-003
5. Show records whose reg is R-002 and R-006.
6. Show all records whose class is IX
7. Show all records whose class is not VIII.
8. Show records whose Sub1 mark is more than 75.
9. Show records whose Sub1 mark is more than 60 but sub2 mark is less than 50.

You might also like