This article discusses the Hair Salon Database and its functionalities. It also includes the ER diagram, functional dependency diagram, relational schema, database semantics, security commands, security policies, and bibliography.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Running head: DATABASE MANAGEMENT SYSTEM Database Management System Name of the Student: Name of the University: Author Note
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
1 DATABASE MANAGEMENT SYSTEM Description of the Hair Salon Database The Hair Salon Database would be storing the details of the stylist in the salon, the appointments, customers, Suppliers and products of the salon. The database would be very helpful for the users to obtain any type of data required by the organization for creating important documents such as reports about the customers and the products and making analysis about their business and make important decisions for the business. ER Diagram
2 DATABASE MANAGEMENT SYSTEM Functional Dependency Diagram Relational Schema Functional Dependencies The Functional Dependency for the system is provided below: EntitiesDependencies CustomerIDCustomerName, CustomerAddress, CustomerContact ServiceIDServiceName, Price StylistIDStylistName, StylistContact, StylistSalary AppoinmentIDDate, CustomerID, ServiceID, StylistID, ProductID ProductIDProductName, ProductCost, SupplierID SupplierIDSupplierName, SupplierContact
3 DATABASE MANAGEMENT SYSTEM Database Semantics The relationship in between the different entities of the system is provided below: EntityRelationshipEntity Customer1 to manyAppointment Stylist1 to 1Appointment Services1 to manyAppointment Product1 to manyAppointment ProductMany to 1Suppliers Database Security Commands The database security commands involve the backup and rollback commands. In addition to this the grant and revoke commands are also used for the access control of the database and users who would be using the database. The authentication process involves defining the passwords and the usernames of the database. Security policy Intended The general security policies which are intended for the database are: ï‚·Access control. ï‚·Auditing. ï‚·Authentication. ï‚·Encryption. ï‚·Integrity controls. ï‚·Backups.
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
4 DATABASE MANAGEMENT SYSTEM Bibliography Arasu, A., Babcock, B., Babu, S., Cieslewicz, J., Datar, M., Ito, K., ... & Widom, J. (2016). Stream: The stanford data stream management system. In Data Stream Management (pp. 317-336). Springer, Berlin, Heidelberg. Clifford, P., & Robinson, M. (2016).U.S. Patent Application No. 14/786,728.
5 DATABASE MANAGEMENT SYSTEM Appendix RelationTable Create and Insert Commands -- Database: `hairsalon` -- CREATE DATABASE IF NOT EXISTS `hairsalon` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `hairsalon`; -- -------------------------------------------------------- -- -- Table structure for table `appointments` --
6 DATABASE MANAGEMENT SYSTEM DROP TABLE IF EXISTS `appointments`; CREATE TABLE `appointments` ( `AppointmentID` int(11) NOT NULL, `Date` date NOT NULL, `CustomerID` int(11) NOT NULL, `ProductID` int(11) NOT NULL, `ServiceID` int(11) NOT NULL, `StylistID` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `appointments` -- INSERTINTO`appointments`(`AppointmentID`,`Date`,`CustomerID`,`ProductID`, `ServiceID`, `StylistID`) VALUES (1, '2018-11-07', 1, 1, 1, 1), (2, '2018-11-08', 2, 2, 2, 2), (3, '2018-11-10', 3, 3, 3, 3),
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
17 DATABASE MANAGEMENT SYSTEM Join Operation SELECT suppliers.SupplierName, products.ProductName FROM products INNER JOIN suppliers ON products.ProductID = suppliers.SupplierID View Creation Command CREATE VIEW product_suppliers AS SELECT suppliers.SupplierName, products.ProductName FROM products INNER JOIN suppliers ON products.ProductID = suppliers.SupplierID;
18 DATABASE MANAGEMENT SYSTEM Trigger Command CREATE TRIGGER `date` BEFORE INSERT ON `appointments` FOR EACH ROW IF NEW.date>CURRENT_DATE()THENSIGNALSQLSTATE'02000'SET MESSAGE_TEXT = 'Warning: date can not be greater than current date!'; END IF;