Practicle 3
Practicle 3
Query:
Output:
1
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15
2. Give details of account no. and deposited rupees of customers
having account opened between dates 01-01-96 and 25-07-96.
Query:
FROM deposit
Output:
Output:
FROM EMPLOYEE
Output:
2
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15
5. Display employee no, name and department details of those
employee whose department lies in(10,20).
Query:
SELECT emp_name,emp_no,dept_no
FROM EMPLOYEE
Output:
3
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15
SELECT * FROM EMPLOYEE WHERE emp_name LIKE 'A%';
7. Display all employee whose name start with ‘A’ and third
character is ‘a’.
Query:
SELECT *
FROM EMPLOYEE
Output:
4
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15
Query:
FROM EMPLOYEE
Output:
Query:
SELECT *
FROM EMPLOYEE
Output:
10. Display the null values of employee and also employee name’s third
character should be ‘a’.
Query:
SELECT *
FROM EMPLOYEE
Output:
11. What will be output if you are giving LIKE predicate as ‘%\_%’ ESCAPE ‘\.
5
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15
This query will return rows where column name contains an underscore
character.
6
Enrollment No: 220280107125 BE 3rd Sem CE,CE Dept,LDCE-A’bad-15