0% found this document useful (0 votes)
253 views

Database Table and Queries

1. The document describes creating an employee database table with fields like name, ID, address, city, salary, and empid. 2. It explains how to save the database table and open it, then insert data into the fields. 3. Queries can be used to update, delete, sort, and change data in the table by writing SQL statements in the query design view. Examples include showing records by ID, salary range, or ordered by name.

Uploaded by

Prateek Jain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
253 views

Database Table and Queries

1. The document describes creating an employee database table with fields like name, ID, address, city, salary, and empid. 2. It explains how to save the database table and open it, then insert data into the fields. 3. Queries can be used to update, delete, sort, and change data in the table by writing SQL statements in the query design view. Examples include showing records by ID, salary range, or ordered by name.

Uploaded by

Prateek Jain
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 9

DATABASE TABLE AND QUERIES

1.First of all make an employee tables with several


names, IDs, address, city, salaries, empid etc with
suitable data type for ex= text for names ,
addresses or number data type for salaries , IDs
etc.

2. The next is to save the data table, a box with


name SAVE AS is open then click on OK, the
table is saved.
A dialog box is open containing the table , click on
it

3. A table is open containing all the fields


Put the data on there fields.

4. Click on queries, then click on create query in


design view

A dialog box is open name as SHOW TABLE click


on add , the table is add on query `dialog box
,then right click on and select SQL view
After selecting SQL view a new query sheet is
open, by writing query statement on it we can
update, delete, set table as increase and decrees
Order, change the table’s data.

DATABASE QUERIES
1. Show all the report from employee
table where ID is 1.

2. Show the name of all the employees whose


salary b/w 5000-8000.
3. Show all the reports from employee table
where salary of employee greater or equal to
7500.

4. Delete the record from employee table where


empid= 420
5. Show all the report from employee table
where empid=777 and salary = 6450.

6. Show all the report from employee in


ascending order by name.
7. Write a query to insert values in employee
table.

8. Show all the report from employee in


descending order by city.
9. Update the salary of employee table whose
empid =897.

10. Write a query to add new field remain n the


employee table.

You might also like