Вы находитесь на странице: 1из 2

SQL Commands y y a.

Introduction to basic SQL commands SQL queries

Create Employee table : -

EID ENAME DESG BRANCH SALARY ADDRESS

Perform various SQL commands 1. Add column in above table date of joining, Experience. 2. Find out details of employee whose salary is above 25000. 3. Find out name of employee whose date of joining is before 1-jan-2010. 4. Find out details of employee whose name begin with a. 5. Find out details of employee order by salary. 6. Find out how many records are entered in employee table. b. Perform SQL commands: Student (roll-no, name, age, course, marks) 1. List all those students who are greater than 18 years of age and have opted for MBA course. 2. Display all details of student. 3. List name of student whose name end with i. 4. Find out total number of records in table. 5. Find out the name, course, marks and sort in the order of marks. 6. Display name and course of student.

c.

Create PROJECT table with attribute mention below: PROJECT PNO P_NAME PMGR_NAME PERSON BUDGET PSTART PEND

Tables: Columns :

Number (primary key) Varchar2 Varchar2 Number Number Date Date (a) Create table and assign constraints. (b) Add new Column Cust_name in project table. (c) Find out the details of project whose budget is exceed by 50000. (d) Display the P_NAME, Budget, Person from above table. (e) Find out the details of project whose end date is pending. (f) Sort table in desc order according to budget.

Вам также может понравиться