Professional Documents
Culture Documents
Sql view:
SELECT employee.*
FROM employee;
Design view:
2. Select all data from the employee table inner join with department table.
Sql view:
Design view:
3. Select data from the employee table where employee id=5 (id can be any number)
Sql view:
FROM employee
Design view:
4. Select data from the employee table where employee address=”dankuni” (address can be any
where)
Sql view:
SELECT employee.E_NAME, employee.ADDRESS, employee.CONTACT, employee.SALARY,
employee.D_ID
FROM employee
WHERE (((employee.ADDRESS)="DANKUNI"));
Design view:
Sql view:
FROM employee;
Design view:
6. Select data from the employee table where employee’s name starts with p (it can be starts with
any letter)
Sql view:
FROM employee
Design view:
7. Select data from the employee table where employee’s name ends with a (it can be ends with
any letter)
Sql view:
FROM employee
WHERE (((employee.E_NAME) Like '*A'));
Design view:
8. Select data from the employee table where employee’s name content i (it can be any letter)
Sql view:
FROM employee
Design view:
9. Select data from the employee table inner join with department table where department
id=1236 (it can be any number)
Sql view:
WHERE (((department.D_ID)=1236));
Design view:
10. Select data from the employee table inner join with department table where salary >= 20000
(salary can be any value)
Sql view:
SELECT employee.*
Design view:
11. Select data from the employee table inner join with department table where salary >= 20000
and salary<=40000 (salary can be any value)
Sql view:
Design view:
Update query:
Sql view:
WHERE (((employee.E_ID)=4));
Design view:
We can’t perform this kind of update query. If we need to update any data then we must have use the
primary key criteria
Delete query:
DELETE employee.E_ID
FROM employee
WHERE (((employee.E_ID)=7));
Design view: