Mis
Mis
Include tables for books, authors, customers, and orders. Provide SQL
commands for table creation and insert sample data.
2) Write an SQL query to find all customers who have purchased books in
the last 30 days, along with the book titles and order dates.
3) Given a sample un normalized table containing customer orders,
normalize the table up to the Third Normal Form (3NF). Explain each
step.
Suppose, we have a table:
5) Write SQL queries using INNER JOIN, LEFT JOIN, and RIGHT JOIN to
retrieve data from multiple tables. Provide examples and explain the
differences between each type of join.
LEFT JOIN
A LEFT JOIN returns all the rows from the left table and the matching rows from the
right table. If there is no match, the result is NULL on the right side.
RIGHT JOIN
A RIGHT JOIN is similar to a LEFT JOIN, but it returns all the rows from the right table
and the matching rows from the left table.
6) Create a Data Flow Diagram for a library management system. Include
processes like book borrowing, returning, and catalog management.
Create Operation
The Create operation is used to create a new table.
Insert Operation
This command inserts a new row into the "customers" table with the name "John
Doe” and email [email protected]
Read Operation
The Read operation is used to retrieve data from a table
Update Operation
The Update operation is used to modify existing data in a table. This command updates
the email address of the customer with the name "John Doe" to "[email protected]".
Delete Operation
The Delete operation is used to delete data from a table. This command deletes the row
from the "customers" table where the name is "John Doe".
11) Create a stored procedure to calculate the total sales for a specific
month. Demonstrate how to execute this procedure.
This stored procedure takes two input parameters: @month and @year, which
represent the month and year for which we want to calculate the total sales. The
procedure uses a SELECT statement to sum up the ‘Total’ column of the ‘Sales’ table,
filtering the results to only include sales that occurred in the specified month and year.
Output:
12) Write a trigger that automatically updates the stock quantity in the
database whenever a new order is placed.
Here is an example of a trigger that updates the stock quantity in the database
whenever a new order is placed:
This trigger is created on the Orders table and is triggered after a new order is
inserted. The trigger updates the StockQuantity column of the Products table by
subtracting the quantity of the product ordered from the current stock quantity.
13) Design a simple form in a database management system to enter
new customer details. Create a report to display all customers and
their contact information.
Output:
• Data loss prevention: Regular backups ensure that data is safe in case of
hardware failure, software corruption, or human error.
• Business continuity: Backups enable quick recovery in case of a disaster,
minimizing downtime and ensuring business continuity.
• Version control: Backups provide a history of changes, allowing for easy
rollbacks to previous versions if needed.
17) Explain how indexing can improve the performance of SQL queries.
Provide an example of creating an index for a specific query.
• Indexing.
• Optimize Queries.
• Partitioning.
• Caching
• Database Fragmentation.
Identifying Bottlenecks:
• Use Database Performance Monitoring Tools.
• Analyze Query Execution Plans.
• Monitor System Resources.
• Collect Database Statistics.
19. Analyze a case study where a company implemented a new MIS. Identify the key
challenges and benefits experienced by the company.
Background
Key Challenges
1. Resistance to Change
o Challenge: Employees were accustomed to the old system and resistant to adopting
the new MIS.
2. Data Migration
o Challenge: Migrating data from the legacy system to the new MIS was complex and
risked data loss or corruption.
o Solution: A phased approach was adopted, starting with less critical data, followed by
extensive testing and validation to ensure data integrity.
o Challenge: Ensuring the new MIS integrated seamlessly with other existing systems
such as ERP and CRM.
o Solution: The IT team worked closely with the MIS vendor to develop custom
integration solutions and conducted thorough integration testing.
4. Cost Overruns
o Challenge: The project experienced cost overruns due to unforeseen technical issues
and additional training requirements.
o Solution: The company secured additional funding and prioritized critical features to
stay within budget while deferring non-essential features to future updates.
5. User Adoption
Benefits Experienced
o Benefit: The new MIS provided a centralized database, reducing data redundancy and
errors.
o Benefit: Advanced reporting and analytics capabilities allowed for real-time data
analysis.
3. Streamlined Operations
o Benefit: Integration with the CRM system provided a holistic view of customer
interactions.
o Outcome: Improved customer service as employees had quick access to customer data
and history, enabling more personalized and efficient service.
5. Scalability
o Benefit: The new MIS was designed to scale with the company's growth.
o Outcome: As the company expanded, the MIS could handle increased data volume and
complexity without performance degradation.
6. Regulatory Compliance
7. Cost Savings
o Benefit: Over time, the MIS reduced operational costs through improved efficiency
and reduced manual processes.
Conclusion
The implementation of the new MIS in this mid-sized manufacturing company faced several
challenges, including resistance to change, data migration complexities, integration issues, cost
overruns, and user adoption hurdles. However, the company successfully addressed these challenges
through strategic planning, comprehensive training, phased implementation, and continuous support.
As a result, the company experienced significant benefits, including improved data accuracy,
enhanced reporting and analytics, streamlined operations, better customer service, scalability,
regulatory compliance, and long-term cost savings. This case study highlights the importance of a
well-planned and executed MIS implementation to achieve substantial business improvements.
20) Develop a basic implementation plan for a new MIS in a small
business. Include phases such as planning, design, development, testing,
and deployment.
Identify the business needs and goals for the new MIS.
Determine the key performance indicators (KPIs) to be tracked.
Establish a project timeline and budget.
• Conduct a Needs Assessment:
Interview stakeholders to gather requirements.
Analyze existing business processes and systems.
Identify areas for improvement and opportunities for automation.
Develop the business logic and workflows outlined in the design document.
Implement data validation, error handling, and security measures.
• Unit Testing:
Test individual components and modules of the MIS.
Ensure that each component functions as expected.
• Integration Testing:
Test the integrated system to ensure that all components work together
seamlessly.
Identify and resolve any integration issues.
• Train End-Users:
Provide training and support to end-users.
Ensure that users understand how to use the system effectively.
• Post-Implementation Review:
Conduct a post-implementation review to identify lessons learned.
Refine the system and make any necessary adjustments.