Odd
Create a Employee table in the database with the following fields:
EmpNo, EmpName, Designation, Salary.
Find out the records from this tale such as:
a) Salary is between 15000 and 20000
b) Salary is not between 15000 and 20000
c) Salary is greater than 17000
Solution:
1. Open the LibreOffice Base application
2. Create a table in Design view based on question
3. Assign primary key to EmpNo
4. Save the table with name “Employee”
5. Take printout and attach to project file
------------------ Paste the image -----------------
6. Enter values into the table in datasheet view
7. Take printout and attach to project file
------------------ Paste the image -----------------
8. Save and close the table
9. Click on Queries icon
10. Click on Create Query in Design view
11. Select the table in which you have records and click on add
12. Take printout and attach to project file
------------------ Paste the image -----------------
13. Choose all the fields in the design grid (one by one)
14. Place a check mark in the visible row for each field
15. In the salary field, add the criterion “Between 15000 and 20000”
16. Take printout and attach to project file
------------------ Paste the image -----------------
17. Click on Run query or press F5 function key
18. Take printout and attach to project file
------------------ Paste the image -----------------
19. Open the query window in design view
20. Set the criterion in the salary field as “Not between 15000 and 20000”
21. Take printout and attach to project file
------------------ Paste the image -----------------
22. Click on Run query or press F5 function key
23. Take printout and attach to project file
------------------ Paste the image -----------------
24. Open the query window in design view
25. Set the criterion in the salary field as “>17000”
26. Take printout and attach to project file
------------------ Paste the image -----------------
27. Click on Run query or press F5 function key
28. Take printout and attach to project file
------------------ Paste the image -----------------