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

DBMS PRACTICAL FILE 46416701716

Q) 1:- Show all records of EMP Table

Answer: Points to make an EMP Table are as Follow:

1) Open Microsoft Office Access 2010


2) Create Blank Database with name HDFC Bank
3) Design a Table with Name EMP
4) Heads are EMP number ( primary key ) , Branch Number , First Name
Middle Name, Last Name, Department, Designation, MNGR number
5) Fill the details in table

1
DBMS PRACTICAL FILE 46416701716

2
DBMS PRACTICAL FILE 46416701716

Q2) :-Show all EMP Numbers , First Name , Middle Name , Last Number

Answer: Points to show an EMP Number, First Name, Middle Name and Last Number Table are as
Follow:

1) Click on CREATE >QUERY DESIGN


2) Select Table EMP and Fields : , First Name , Middle Name ,
Last Number to be displayed
3) Now check mark all of them and you can also sort them
4) Click on RUN to show the Output

3
DBMS PRACTICAL FILE 46416701716

Q3):- Display the Branch Details of Branch ROHINI

Answer: Points to Display the Branch Details of Branch ROHINI are as follow :

1) Click on CREATE >QUERY DESIGN


2) Select Table BRANCH and Branch Number
3) Now write in criteria ROHINI
4) Now check mark all of them and you can also sort them
5) Click on RUN to show the Output

4
DBMS PRACTICAL FILE 46416701716

Q4) :- Create a table named as ACCOUNT DETAILS having 3 fields : account number

, branch number, Current balance

Answer: Points to Create a table named as ACCOUNT DETAILS having 3 fields : account number

, branch number, Current balances are as follow

1) Click on Create Button and click on design new Query


2) Add a Table from Show table Dialog box and a close it
3) Table Box would open and select rows
4) Click on Make Table option in Query Type
5) Enter Table name and Click OK button
6) Click on view to check if all goes right
7) Click on RUN button to get the OUTPUT

5
DBMS PRACTICAL FILE 46416701716

6
DBMS PRACTICAL FILE 46416701716

Q5):- Delete all records of Table BRANCH

Answer: Points to delete all records of Table BRANCH are as follow:

1) Click on Create Button and click on design new Query


2) Add a Table from Show table Dialog box and a close it
3) Table Box would open and select rows to be deleted
4) Click on DELETE button appearing at Query Type
5) Click on view to check
6) If all goes right click on RUN and changes would save

7
DBMS PRACTICAL FILE 46416701716

8
DBMS PRACTICAL FILE 46416701716

Q6):- Delete those records from EMP table which shoes MANAGERS

Answer: Points to delete those records from EMP table which shoes MANAGERS are as follow:

1) Click on Create Button and click on design new Query


2) Add a Table from Show table Dialog box and a close it
3) Table Box would open and select row to be deleted
4) Click on DELETE button appearing at Query Type
5) Write MANAGERS in criteria
6) Click on view to check
7) If all goes right click on RUN and changes would save

9
DBMS PRACTICAL FILE 46416701716

BEFORE QUERY

OUTPUT

10
DBMS PRACTICAL FILE 46416701716

Q7):-Change Branch name NEW DELHI to MUMBAI

Answer: Points to Change Branch name NEW DELHI to MUMBAI are as follow:

1) Click on Create Button and click on design new Query


2) Add a Table from Show table Dialog box and a close it
3) Table Box would open and select row for changes
4) Type MUMBAI in Updated To box and NEWDELHI in Criteria box
8) Click on view to check
5) If all goes right click on RUN and changes would save

11
DBMS PRACTICAL FILE 46416701716

12
DBMS PRACTICAL FILE 46416701716

A) Generate the form using EMP and INSERT,DELETE,UPDATE records using forms

Answer: Points to Generate the form using EMP and INSERT,DELETE,UPDATE records using forms
are as follow:

1) Open the table through which form has to be built

2) Click on Create option and then form wizard as shown in the figure given below

13
DBMS PRACTICAL FILE 46416701716

3) Now select the fields from Dialog box

4) Select the new type Dialog box

14
DBMS PRACTICAL FILE 46416701716

5) Now select Type of FORM

6) Now at last step click on FINISH button to see the FORM

15
DBMS PRACTICAL FILE 46416701716

OUTPUT

DELETE option

16
DBMS PRACTICAL FILE 46416701716

NEW option

17
DBMS PRACTICAL FILE 46416701716

B) Generate the report through ACCOUNT NSTR with fields : Account, Branch Name, Current
Balance, Type Open Date

Answer: Points to Generate the Generate the report through ACCOUNT NSTR with fields: Account,
Branch Name, Current Balance, Type and Open Date are as follow:

1) Open the Table from which Report has to be made an click on REPORT WIZARD in CRETE button

2) Select the field from the Dialog box

18
DBMS PRACTICAL FILE 46416701716

3) We can also do grouping of Fields as shown in figure below

4) We can also do ascending order of any Field

19
DBMS PRACTICAL FILE 46416701716

5) Select the Layout type of the Report

6) Select the Type of Repot

20
DBMS PRACTICAL FILE 46416701716

7) The last step is

OUTPUT

21
DBMS PRACTICAL FILE 46416701716

Q8):-Specify Not Null Constraint on First Name and Department

Answer: Points to Specify Not Null Constraint on First Name and Department are as follow:

1) Open table EMP table

2) Click on View an then Design View

3) Select the FIRST NAME field to edit


22
DBMS PRACTICAL FILE 46416701716

4) Type is not null in Validation rule box given below

5) Type the validation text as shown in figure below

23
DBMS PRACTICAL FILE 46416701716

6) Now click the Department tab and then follow the same steps

7) Now click on save button two Dialog box will appear and both have to be clicked YES

24
DBMS PRACTICAL FILE 46416701716

OUTPUT

25
DBMS PRACTICAL FILE 46416701716

26
DBMS PRACTICAL FILE 46416701716

Q9):- Specify unique constraint on Branch Name

Answer: Points to specify unique constraint on Branch Name are as follow:

1) Open Design view of Branch Table and click on INDEXES

2) A new dialog box would open

27
DBMS PRACTICAL FILE 46416701716

3) Type Branch Name in Field Name box

4) Type Location in INDEX NAME box

28
DBMS PRACTICAL FILE 46416701716

5) Select Unique as YES as shown in figures below

6) C lick on Save button and an Dialog box will appear , click YES to apply this setting

29
DBMS PRACTICAL FILE 46416701716

Q10):- Show all the account details which are opened 1.1.2017

Answer: Points to Show all the account details which are opened 1.1.2017

are as follow:

1) Click on Create Button and click on design new Query


2) Add a Table from Show table Dialog box and a close it
3) Table Box would open and select rows to be shown
4) Enter 1/1/2017 in Criteria box
5) Click on view to check if all goes right
6) Click on RUN button to get the OUTPUT

30
DBMS PRACTICAL FILE 46416701716

31