0% found this document useful (0 votes)
53 views4 pages

DBMS Lab Assignment Guide

This document contains instructions for 16 questions as part of a database management systems (DBMS) lab assignment. The questions ask the student to create databases for students, employees, and a library using various templates and attributes. Additional tasks include creating relationships between tables, queries to extract specific records, forms to view and enter data, and reports to display data. Macros are also to be created to automate opening forms, queries, and reports.

Uploaded by

jtnshrma007
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views4 pages

DBMS Lab Assignment Guide

This document contains instructions for 16 questions as part of a database management systems (DBMS) lab assignment. The questions ask the student to create databases for students, employees, and a library using various templates and attributes. Additional tasks include creating relationships between tables, queries to extract specific records, forms to view and enter data, and reports to display data. Macros are also to be created to automate opening forms, queries, and reports.

Uploaded by

jtnshrma007
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

LINGAYAS LALITA DEVI INSTITUTE OF MANAGEMENT & SCIENCES

Affiliated to GGSIP University & Govt. of NCT of Delhi A grade NAAC Accredited Institution

D B M S Lab File
BBA 108
Semester 2nd

2013
Submitted By: Roll NO: Section: Branch: Student Name xxx19201712 A or B BBA

SUBMITTED

TO:

MR. NITIN NAGPAL

D B M S

Lab File
DBMS LAB QUESTIONS

Q1. Create a database using database templates. Q2. Create a new database Student from scratch (Blank Database).
Attributes 1. 2. 3. 4. 5. 6. 7. Stud_ID (primary key) Stud_Name Stud_Sur_Name Stud_Semester Stud_contact Stud_Address Stud_E-mail Data Type Number Text Text Memo Number Memo Memo

Q3. Create a Employee Database contains Employee entity with following attributes?

Attributes Emp_Id (primary key) Emp_ Name Emp_Last_Name Emp_Dept Emp_Designation Emp_Contact Emp_E-mail id Emp_Address

Data Type Number Text Text Text Text Number Memo Memo

Description ID of Employees First name of the Employees Last name of the Employees Department of the Employees Designation of the Employees Contact number of the Employees E-mail of the Employees Address of the Employees

Q4. Create a new Entity Project in Employee database and create lookup-column projects in Project.
Attributes 1. 2. 3. 4. Emp_Id (Foreign Key) Project_Id (Primary Key Project Type Projects(Lookup- Column ) Data Type Number Number Text Text

Lingayas Lalita Devi Institute Of Management & Sciences | xxx19201712

D B M S

Lab File

Q5. Continue with the Employee Database and where each record consists of the following attributes: Attributes

Data Type Number Number Number Number

Description Pay scale of employee Employees basic pay Employees deduction Employees gross pay

1. 2. 3. 4. i) ii) iii) iv) v)

Pay_scale Basic_pay Net Pay Gross Pay

Set emp_Id as primary key Set the validation rule for basic_pay as ( >8000 ) and the validation text as Basic pay should be greater than 8000 Set the caption value of the field Emp_Name as Employee Name Set the field pay_scale as a required(mandatory) field Enter 10 records.

Q6. Create a relationship in Employee Database between two tables. Q7. Create a Database of Library Management System. Q8. Create a Database of Hospital Management System. Q9. Create a Database of Company contains 4 different departments and applies the password. Q10. Create a query through query wizard. Q11. Create a query using design view: Table name- student, Database name student database.

Student Roll_name Stu_name Course Fees_Paid Address BBA Yes #2234 City Gurgaon Mobile_no

101 student a. b. c. d. e.

Set the criteria for roll_no of student as >102 Sort the student names in ascending order Set the criteria showing students who has not paid their fees. Set the criteria showing the courses BBA or BJMC Set the criteria for the course B* and city Ba*

Q12 Create a form using form wizard.

Lingayas Lalita Devi Institute Of Management & Sciences | xxx19201712

D B M S
i. Columnar ii. Tabular iii. Datasheet

Lab File

Q13. Create auto forms using:

Q14. Create a report using report wizard. Q15. . Create auto report using: i) Columnar ii) Tabular Q16. . Create a macro performing following actions: i) Open form ii) Open Query iii) Open Report

Lingayas Lalita Devi Institute Of Management & Sciences | xxx19201712

Common questions

Powered by AI

Validation rules, such as setting 'basic_pay' to be greater than 8000, enhance data accuracy by enforcing specific constraints on field values. This prevents erroneous or out-of-range data from being entered, ensuring data quality and reliability. The validation mechanism provides immediate feedback through validation text, guiding users to input valid data that meets predefined business requirements .

Criteria-based queries filter data according to specified conditions, enhancing data retrieval efficiency by narrowing down results to meet specific needs. In a Student database, criteria like 'roll_no > 102' or 'fees paid = no' focus on relevant records, reducing processing time and allowing users to gain insights into specific subsets of data. Such queries improve decision-making by providing targeted information quickly, facilitating deeper data analysis, and supporting business intelligence activities .

Implementing a password for a multi-department database enhances security by restricting unauthorized access, thus protecting sensitive data. This ensures confidentiality and maintains data integrity across departments. However, it presents challenges like password management complexities and the potential for user lockout scenarios. Ensuring robust authentication procedures must balance security needs with usability to avoid hindrances to legitimate access while maintaining data protection .

Forms and form wizards simplify data entry and management by providing structured interfaces that guide users through inputting information. They ensure data is entered systematically, reducing errors and improving efficiency. Form wizards automate form creation, enabling quick development of data entry forms with minimal technical knowledge. They enhance usability by incorporating design elements that promote easy navigation and data validation, increasing productivity and data accuracy .

Setting data types for fields is crucial as it determines the kind of data that can be stored in each field, impacting how data is processed and validated. For instance, using 'Number' for 'Emp_Id' ensures numerical operations can be performed, while 'Text' for 'Emp_Name' supports alphabetic entries. Clearly defined data types help prevent errors, optimize storage, and enhance database performance by aligning field usage with data characteristics, thus supporting data integrity and application logic .

Database templates provide a quick start for database creation, offering predefined structures and fields that align with common business operations. This can speed up setup time and ensure best practices are followed. However, templates may not fully fit specific requirements of unique use-cases, potentially necessitating custom modifications. Over-reliance on templates might limit the customization needed for specific organizational processes and can lead to underutilization of more advanced database functionality .

Setting 'Emp_Id' as a primary key ensures that each employee record is unique and can be efficiently retrieved, ensuring data integrity across the database. A primary key is critical because it prevents duplicate records and establishes a unique identifier for each entry, facilitating accurate data relationships and preventing anomalies .

Macros automate repetitive tasks by executing multiple actions with a single command, thereby increasing efficiency and reducing user errors. For instance, creating a macro to open forms, queries, and reports allows users to trigger complex operations with ease, streamlining workflows. This automation ensures consistency in task execution, saves time, and enhances productivity by minimizing manual intervention, making the system more user-friendly and efficient .

Lookup-columns in a database simplify data entry by providing predefined options from other tables, reducing errors and ensuring consistency. For example, adding a lookup-column for 'Projects' in the Project table streamlines the selection process and helps maintain data integrity by restricting entries to existing project types. This user-friendly feature minimizes manual data entry and enhances the user experience by simplifying complex data association tasks .

Creating a relationship between two tables, such as linking the Employee table with the Project table via 'Emp_Id', allows for the integration of related data, enabling complex queries and reports. It ensures data consistency and enforces referential integrity by aligning keys between tables, allowing changes in one table to cascade to related tables. This relational structure supports efficient data retrieval and analysis by maintaining coherent data across multiple entities .

You might also like