- Create a table student with fields stid number, stname varchar2, stavg number, stdoj date.
- Insert 4 continuous records into student as an user interaction.
- Insert 5 continuous records into students for only columns of stid and stdate and stname.
- Display all the records of student table where the concatenation of all the record column
- should be provided with heading as “Student Information”.
- Display all the records from emp table containing only sal, comm and sal+comm as monthly salary.
- Display all the records of emp table who is working in deptno 10 and working as ‘clerk’.
- Display all the records of emp table who was hired between 02/02/1980 and 12/22/2000.
- Display all the records of student table who is joined in the month of april.
- Display all the records of emp table whose comm is not null.
- Display all the records of emp table who is working as clerk or salesman.
- Display the names of all the students whose name contains either ‘e’ or ‘a’.
- Display al the records of emp table sorted in the descending order of deptno and for a particular deptno they should be ordered in ascending order of ename.
- Display date and timestamp of the present day.
- Display only the month & year of joining of each student from student table.
- Display the number of employees working in each department.
Wednesday, October 22, 2008
SQL Practice Test 2
Labels:
SQL practice
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment