Dbms Programs
Dbms Programs
AIM:
• Create a table named StudentDetails in data sheet view. It should contain the
fields:
a) Register No b) Name c) DOB d) Phone No
Insert the details of 10 students
Set Register number as primary key
STEPS:
1. Start->all programs->Microsoft office->Microsoft access 2007
2. Create blank database
3. Create a table in datasheet view
4. In the Add New Field Column Name, rename the column with relevant fields you
want
5. Right click on column name->click insert column
6. Set the primary key
7. Insert the details of 10 students
8. Save and close the program
• Create a second table named InternalMarks in design view. It should contain
the fields
a) Internal ID b) Register No c)Mark 1 d)Mark 2 e)Mark 3
Insert the details of the above 10 students
STEPS:
1. Start->all programs->Microsoft office->Microsoft access 2007
2. Create a table in design view in the same database and insert the details of 10
students
a) From the create tab->tables group->table design button
b) Create a tables in design view(InternalMark)
c) To insert data: (Right click on table name->open)
1
d) Save the table
3. Close the program
STEPS:
2
2. AIM: Create two tables and create a Query in Design view displaying the following
information of the students:
3
3. AIM: Create two tables and create a Query using Wizard , displaying information of the
Books:
4
4. AIM:Create a Table named HomeAppliances with the following fields:
a) ID b) Products c) DateOfSale d) Sales e) Profit
5
5. AIM:Create a Table named Mark Sheet with the following fields:
a) Name b) Mark1 c) Mark2 d) Mark3
STEPS: For creating Calculated Query displaying, Name, Mark1, Mark2, Mark3
and Total Mark
6
6. AIM: Create a Table named Products with the following fields:
a) ProductID b) ProductName c) Price
Insert the details of 5 Products
STEPS: Creating an Update Query to increase the price of all products by 20%.
7
7. AIM: Create a Table named Cosmetics with the following fields:
a) ProductID b) ProductName c)Price
Insert the details of 5 Products
STEPS: Creating an Update Query to increase the price of all products by Rs.10
8
8. AIM: Create a Table named Cosmetics with the following fields:
a) ProductID b) ProductName c) Supplier d)Price
Insert the details of 8 Products
9
9. AIM: Create a Table named Products with the following fields:
a) ProductID b) ProductName c) Price
Insert the details of 5 Products
STEPS: For creating tables in Design view
STEPS:For creating a form in Design view and insert the details of another 5
products to the table
10
10. AIM: Create a Table named Sales with the following fields:
a) ProductID b) Product c)UnitPrice d) Quantity
Insert the details of 7 Products
STEPS: For creating tables in Design view
STEPS:For creating a form in Design view having all fields. The field Total Sales
should be created as a calculated control.
11
11. Click property sheet button in the tools tab.
12. In the name property type name for the field (type Total Sales).
13. In the control source property type the expression= [Quantity]*[Price].
14. In the Format property, set currency
15. Insert products into the fields and click add record button
16. Open the form in form view. Click add record button and then add new
record.
12
11. AIM:
• Create a table named Student , with the following fields:
b) RegNo b) Name c) District d) PhoneNo
Insert the details of 5 students
2. Select the Combo Box command, which looks like a drop-down list.
3. Select the desired location for the combo box. A line will appear to indicate the
location where your combo box will be created.
4. Creating a combo box is very easy, if we setup a field as a lookup wizard (while
creating a table, in the data type selection box, click the lookup wizard and
create a list of values).
5. If a field was not designated as a lookup wizard we cannot create a combo box
as mentioned above. Then we have to use the control wizard to create a combo
box or list box.
13
6. Click the combo box button from the controls group. The Combo Box
Wizard dialog box will appear. Select I will type in the values that I want, then
click next.
7. Type the choices you want to appear in your drop-down list. Each choice should
be on its own row.
8. Users will be able to select one of three choices from our finished combo box.
9. If necessary, resize the column so all of your text is visible. Once you are
satisfied with your list, click next.
10. Select Store that value in this field, then click the drop-down arrow
and select the field where you want selections from your combo box to be
recorded. After making your selection, click next.
11. Enter the label or name that will appear next to your combo box.
12. Click Finish. Your combo box will appear on the form.
14
12. AIM: Create a Table named HomeAppliances with the following fields:
a) ID b) Products c) DateOfSales d) Sales e) Profit
Insert the details of 10 products
15
13. AIM: Create a Table named MailingAddress with the following fields:
a) ID b) Name c) Housename d) Postoffice e) City f) District g) Pincode
Using Report create Mailing Labels.
STEPS: For creating tables in Design view
16