{"id":50328,"date":"2024-04-26T23:23:23","date_gmt":"2024-04-26T23:23:23","guid":{"rendered":"http:\/\/localhost\/branding\/for-the-data-given-we-need-to-create-two-tables-as-follows\/"},"modified":"2024-04-26T23:23:23","modified_gmt":"2024-04-26T23:23:23","slug":"for-the-data-given-we-need-to-create-two-tables-as-follows","status":"publish","type":"post","link":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/","title":{"rendered":"For the data given we need to create two tables as follows"},"content":{"rendered":"<p>\ufeffName<\/p>\n<p>Lecturer<\/p>\n<p>Course<\/p>\n<p>Date<\/p>\n<p>Exercise 8:<\/p>\n<p>For the data given we need to create two tables as follows:<\/p>\n<p>Employees Table<\/p>\n<p>CREATE TABLE IF NOT EXISTS `employee_t` ( `Employee_ID` int(2) NOT NULL AUTO_INCREMENT, `Employee_Name` varchar(9) DEFAULT NULL,  `Employee_Level` varchar(10) DEFAULT NULL, `Employee_Department` varchar(25) DEFAULT NULL, `Reports_to` varchar(8) DEFAULT NULL, PRIMARY KEY (`Employee_ID`) ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=35 ;<\/p>\n<p>Explanation<\/p>\n<p>Here we used the SQL DDL Command \u201cCREATE\u201d, which is referred to us create table construct in proper SQL language, in order to create the table \u2018employee_t\u2019 to represent employees with the five columns as shown above. We use the first column \u2018Employee_ID\u2019 as our primary key so that it can be joined with the second table below.<\/p>\n<p>Dependents Table<\/p>\n<p>CREATE TABLE IF NOT EXISTS `dependents_t` ( `Employee_ID` int(2) NOT NULL,  `Dependents` varchar(10) DEFAULT NULL,  `Dependent_Type` varchar(8) DEFAULT NULL,  KEY `Employee_ID` (`Employee_ID`)<\/p>\n<p>) ENGINE=MyISAM DEFAULT CHARSET=utf8;<\/p>\n<p>Explanation<\/p>\n<p>First I executed the above MYSQL DDL command of \u2018CREATE\u2019 to create the dependents table with three headings namely;  \u201d Employee_ID, Dependents and Dependent Type. In order to link the \u2018dependents_t\u201d table with the employees table I used the MYSQL DDL COMMAND \u2018ALTER\u2019 as follows:<\/p>\n<p>ALTER TABLE `dependents_t`<\/p>\n<p>ADD CONSTRAINT FOREIGN KEY (`Employee_ID`)<\/p>\n<p>REFERENCES employee_t(`Employee_ID`)<\/p>\n<p>This creates a constraint under the Employee_ID column and makes it the foreign key in our table.<\/p>\n<p>Exercise 9:<\/p>\n<p>1st Part:<\/p>\n<p>The Course Project Data Table 1 is NOT 1st normal form. 1st normal form (1NF) is used as a property for a relation in a relational database like Access or MYSQL. The relation is considered to be in 1NF if each attribute\u2019s domain contains atomic values only, and each attribute\u2019s value contains only one value from the said domain. From our data table we find out that some employees have more than one dependent thus the need to add more rows for the said employees in our table.<\/p>\n<p>This can be changed into 1st normal from by creating two tables as shown in exercise 8 above. The first table will capture the first 5 columns of our information and use Employee_ID as the primary key as this is used to uniquely identify each employee. The second table will have the last two column information and to join it with the first table we use the Employee_ID column as the FOREIGN KEY.<\/p>\n<p>The date above in the 1st Normal Form is NOT WELL STRUCTURED. This is because in our table we have several repeated values under the following table headings \u201cEmployee_Level\u201d, \u201cEmployee_Department\u201d and \u201cReports_to\u201d. To keep the data \u201cwell structured\u201d we need further normalize the tables by creating a further three tables to represent each of the columns above and represent their unique attributes with numerical digits e.g. for Employee_Level we can have the following representation: Employee to be represented by 1 and Supervisor by2, thus replacing all table data with just numerical digits. <\/p>\n<p>Lastly, for a \u201cwell structured\u201d table a single table must show one subject at a particular time and have distinct fields that can accommodate the data at its absolute minim, to do this we use fields having unique values. Advantages of \u201cwell structured\u201d tables:1. It has the capability to support both planned and unplanned retrieval of information. 2. It should be scalable and cater for future expansion of the database. 3. Saves the time in future redesign and re organization of the data.<\/p>\n<p>2nd Part:<\/p>\n<p>The SQL code for the Tables is as follows:<\/p>\n<p>Employee Table.<\/p>\n<p>&#8212; Database: `employee_db`<\/p>\n<p>&#8212; Table structure for table `employee_t`<\/p>\n<p>CREATE TABLE IF NOT EXISTS `employee_t` ( `Employee_ID` int(2) NOT NULL AUTO_INCREMENT, `Employee_Name` varchar(9) DEFAULT NULL,  `Employee_Level` varchar(10) DEFAULT NULL, `Employee_Department` varchar(25) DEFAULT NULL, `Reports_to` varchar(8) DEFAULT NULL, PRIMARY KEY (`Employee_ID`) ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=35 ;<\/p>\n<p>&#8212; Dumping data for table `employee_t`<\/p>\n<p>INSERT INTO `employee_t` (`Employee_ID`, `Employee_Name`, `Employee_Level`, `Employee_Department`, `Reports_to`) VALUES (1, &#8216;John&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (2, &#8216;Jason&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (3, &#8216;George&#8217;, &#8216;Supervisor&#8217;, &#8216;Manufacturing&#8217;, &#8216;Basil&#8217;), (4, &#8216;Sally&#8217;, &#8216;Supervisor&#8217;, &#8216;Sales&#8217;, &#8216;Basil&#8217;), (5, &#8216;Jennifer&#8217;, &#8216;Manager&#8217;, &#8216;Management&#8217;, NULL), (6, &#8216;Basil&#8217;, &#8216;Manager&#8217;, &#8216;Management&#8217;, NULL), (7, &#8216;Chris&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (8, &#8216;David&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (9, &#8216;Hana&#8217;, &#8216;Manager&#8217;, &#8216;Management&#8217;, NULL), (10, &#8216;Lana&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (11, &#8216;Robert&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (12, &#8216;Charles&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (13, &#8216;Rebecca&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (14, &#8216;Abi&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (15, &#8216;Abdul&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (16, &#8216;Cyrus&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (17, &#8216;Harvey&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (18, &#8216;Lucas&#8217;, &#8216;Supervisor&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Jennifer&#8217;), (19, &#8216;Marco&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (20, &#8216;Andrew&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (21, &#8216;Isabella&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (22, &#8216;Ian&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (23, &#8216;Claire&#8217;, &#8216;Supervisor&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Jennifer&#8217;), (24, &#8216;Anthony&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (25, &#8216;Alice&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;), (26, &#8216;Rhonda&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;), (27, &#8216;Darryl&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (28, &#8216;Daniel&#8217;, &#8216;Employee&#8217;, &#8216;Sales&#8217;, &#8216;Sally&#8217;), (29, &#8216;Ryan&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;), (30, &#8216;Sabrina&#8217;, &#8216;Employee&#8217;, &#8216;Manufacturing&#8217;, &#8216;George&#8217;), (31, &#8216;Harry&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;), (32, &#8216;Henry&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;), (33, &#8216;Alexandra&#8217;, &#8216;Employee&#8217;, &#8216;Finance and Accounting&#8217;, &#8216;Lucas&#8217;), (34, &#8216;Aziz&#8217;, &#8216;Employee&#8217;, &#8216;Logistics and Warehousing&#8217;, &#8216;Claire&#8217;);<\/p>\n<p>Dependents Table<\/p>\n<p>&#8212; Table structure for table `dependents_t`<\/p>\n<p>CREATE TABLE IF NOT EXISTS `dependents_t` ( `Employee_ID` int(2) NOT NULL,`Dependents` varchar(10) DEFAULT NULL,`Dependent_Type` varchar(8) DEFAULT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8;<\/p>\n<p>INSERT INTO `dependents_t` (`Employee_ID`, `Dependents`, `Dependent_Type`) VALUES (1, &#8216;Mary&#8217;, &#8216;Spouse&#8217;), (1, &#8216;Jane&#8217;, &#8216;Daughter&#8217;), (2, NULL, NULL), (3, &#8216;Dorothy&#8217;, &#8216;Spouse&#8217;), (3, &#8216;Michael&#8217;, &#8216;Son&#8217;), (3, &#8216;Sarah&#8217;, &#8216;Daughter&#8217;), (4, &#8216;Hector&#8217;, &#8216;Spouse&#8217;), (4, &#8216;Isabel&#8217;, &#8216;Daughter&#8217;), (4, &#8216;Manuel&#8217;, &#8216;Son&#8217;), (5, &#8216;John&#8217;, &#8216;Spouse&#8217;), (6, NULL, NULL), (7, NULL, NULL), (8, &#8216;Christine&#8217;, &#8216;Spouse&#8217;), (8, &#8216;Joanne&#8217;, &#8216;Daughter&#8217;), (8, &#8216;Jill&#8217;, &#8216;Daughter&#8217;), (9, &#8216;Salah&#8217;, &#8216;Spouse&#8217;), (10, &#8216;Demetrius&#8217;, &#8216;Spouse&#8217;), (10, &#8216;Derrick&#8217;, &#8216;Son&#8217;),  (10, &#8216;Danielle&#8217;, &#8216;Daughter&#8217;), (11, &#8216;Lynda&#8217;, &#8216;Spouse&#8217;), (11, &#8216;Jacqueline&#8217;, &#8216;Daughter&#8217;), (11, &#8216;Claudia&#8217;, &#8216;Daughter&#8217;),(11, &#8216;Alice&#8217;, &#8216;Daughter&#8217;), (11, &#8216;James&#8217;, &#8216;Son&#8217;), (12, &#8216;Alison&#8217;, &#8216;Spouse&#8217;), (12, &#8216;George&#8217;, &#8216;Son&#8217;), (13, &#8216;Mark&#8217;, &#8216;Spouse&#8217;), (14, &#8216;Malcolm&#8217;, &#8216;Spouse&#8217;), (15, &#8216;Falak&#8217;, &#8216;Spouse&#8217;), (15, &#8216;Hana&#8217;, &#8216;Daughter&#8217;), (16, &#8216;Rosemary&#8217;, &#8216;Spouse&#8217;), (17, NULL, NULL), (18, &#8216;Mabel&#8217;, &#8216;Spouse&#8217;), (18, &#8216;George&#8217;, &#8216;Son&#8217;), (18, &#8216;Michael&#8217;, &#8216;Son&#8217;), (19, &#8216;Alicia&#8217;, &#8216;Spouse&#8217;), (19, &#8216;David&#8217;, &#8216;Son&#8217;), (19, &#8216;Andrew&#8217;, &#8216;Son&#8217;), (19, &#8216;Russell&#8217;, &#8216;Son&#8217;), (20, &#8216;Anne&#8217;, &#8216;Spouse&#8217;), (21, &#8216;Charles&#8217;, &#8216;Spouse&#8217;), (21, &#8216;Lydia&#8217;, &#8216;Daughter&#8217;), (22, &#8216;Blaine&#8217;, &#8216;Spoues&#8217;), (22, &#8216;Sean&#8217;, &#8216;Son&#8217;), (22, &#8216;Conor&#8217;, &#8216;Son&#8217;), (23, &#8216;Russell&#8217;, &#8216;Spouse&#8217;), (24, &#8216;Jane&#8217;, &#8216;Spouse&#8217;), (24, &#8216;Maria&#8217;, &#8216;Daughter&#8217;), (24, &#8216;Teresa&#8217;, &#8216;Daughter&#8217;), (24, &#8216;Mario&#8217;, &#8216;Son&#8217;), (24, &#8216;Michele&#8217;, &#8216;Daughter&#8217;), (25, &#8216;Carlo&#8217;, &#8216;Spouse&#8217;), (25, &#8216;Angelo&#8217;, &#8216;Son&#8217;), (25, &#8216;Sergio&#8217;, &#8216;Son&#8217;), (26, &#8216;Hiroto&#8217;, &#8216;Spouse&#8217;), (26, &#8216;Miu&#8217;, &#8216;Daughter&#8217;), (27, &#8216;Sofia&#8217;, &#8216;Spouse&#8217;), (27, &#8216;Paula&#8217;, &#8216;Daughter&#8217;), (27, &#8216;Nicole&#8217;, &#8216;Daughter&#8217;), (27, &#8216;Maria&#8217;, &#8216;Daughter&#8217;), (27, &#8216;Emilio&#8217;, &#8216;Son&#8217;), (27, &#8216;Miranda&#8217;, &#8216;Daughter&#8217;), (28, NULL, NULL), (29, NULL, NULL), (30, &#8216;Alan&#8217;, &#8216;Spouse&#8217;), (30, &#8216;Matthew&#8217;, &#8216;Son&#8217;), (31, &#8216;Laura&#8217;, &#8216;Spouse&#8217;), (31, &#8216;Alex&#8217;, &#8216;Son&#8217;), (32, &#8216;Olivia&#8217;, &#8216;Spouse&#8217;), (33, &#8216;Howard&#8217;, &#8216;Spouse&#8217;), (34, &#8216;Karam&#8217;, &#8216;Spouse&#8217;), (34, &#8216;Maram&#8217;, &#8216;Daughter&#8217;), (34, &#8216;Basil&#8217;, &#8216;Son&#8217;);<\/p>\n<p>Exercise 9:<\/p>\n<p>The SQL Query to list managers\u2019 names and then who reports to each manager is as follows: <\/p>\n<p>SELECT Employee_name AS Employee, Reports_to AS Manager FROM employee_t<\/p>\n<p>WHERE Reports_to=&#8217;Jennifer&#8217;OR Reports_to=&#8217;Basil&#8217; OR Reports_to=&#8217;Hana&#8217; order by Reports_to<\/p>\n<p>The following table is an extract of how the report looks like:<\/p>\n<p>HYPERLINK &#8220;http:\/\/127.0.0.1\/phpmyadmin\/sql.php?db=employee_db&amp;table=employee_t&amp;sql_query=SELECT+Employee_name+AS+Employee%2C+Reports_to+AS+Manager+FROM+employee_t%0AWHERE+Reports_to%3D%27Jennifer%27OR+Reports_to%3D%27Basil%27+OR+Reports_to%3D%27Hana%27+ORDER+BY+%60employee_t%60.%60Employee%60+ASC&amp;token=40d847311dfb6227a36350aa27ca2a3d&#8221; o &#8220;Sort&#8221;Employee HYPERLINK &#8220;http:\/\/127.0.0.1\/phpmyadmin\/sql.php?db=employee_db&amp;table=employee_t&amp;sql_query=SELECT+Employee_name+AS+Employee%2C+Reports_to+AS+Manager+FROM+employee_t%0AWHERE+Reports_to%3D%27Jennifer%27OR+Reports_to%3D%27Basil%27+OR+Reports_to%3D%27Hana%27+ORDER+BY+%60employee_t%60.%60Manager%60+ASC&amp;token=40d847311dfb6227a36350aa27ca2a3d&#8221; o &#8220;Sort&#8221;Manager<\/p>\n<p>George Basil<\/p>\n<p>Sally Basil<\/p>\n<p>Lucas Jennifer<\/p>\n<p>Claire Jennifer<\/p>\n<p>The SQL script to show the supervisors\u2019 names followed by who reports to each supervisor is shown below: <\/p>\n<p>SELECT Employee_name AS Employee, Reports_to AS Supervisor FROM employee_t<\/p>\n<p>WHERE Reports_to=&#8217;George&#8217;OR Reports_to=&#8217;Sally&#8217; OR Reports_to=&#8217;Lucas&#8217; OR Reports_to=&#8217;Claire&#8217; order by Reports_to;<\/p>\n<p>The following data will be extracted.<\/p>\n<p>Employee_Name Reports_to<\/p>\n<p>Alice Claire<\/p>\n<p>Rhonda Claire<\/p>\n<p>Ryan Claire<\/p>\n<p>Harry Claire<\/p>\n<p>Henry Claire<\/p>\n<p>Aziz Claire<\/p>\n<p>Jason George<\/p>\n<p>Robert George<\/p>\n<p>Charles George<\/p>\n<p>Cyrus George<\/p>\n<p>Marco George<\/p>\n<p>Darryl George<\/p>\n<p>Sabrina George<\/p>\n<p>Abdul Lucas<\/p>\n<p>Harvey Lucas<\/p>\n<p>Andrew Lucas<\/p>\n<p>Isabella Lucas<\/p>\n<p>Anthony Lucas<\/p>\n<p>Alexandra Lucas<\/p>\n<p>John Sally<\/p>\n<p>Chris Sally<\/p>\n<p>David Sally<\/p>\n<p>Lana Sally<\/p>\n<p>Rebecca Sally<\/p>\n<p>Abi Sally<\/p>\n<p>Ian Sally<\/p>\n<p>Daniel Sally<\/p>\n<p>Exercise 11:<\/p>\n<p>SELECT O.Order_ID, Customer_name, O.Order_Date,<\/p>\n<p>O.Quantity, Sum([unit_Price]*[Quantity]) AS [Order Cost] , O.Mode_Payment<\/p>\n<p>FROM\u00a0Customer_t\u00a0 C, Order_line_t\u00a0OL,  Order_t\u00a0 O, Product_t P<\/p>\n<p>WHERE\u00a0O.Order_ID = 26<\/p>\n<p>AND O.Order_ID =\u00a0OL.Order_I<\/p>\n<p>AND\u00a0P.Product_ID = OL.Product_ID <\/p>\n<p>GROUP BY O.Order_Date, C.Customer_name, O.Order_ID ;<\/p>\n<p>This will give us the following view for Order Number 26 with two lines of items.<\/p>\n<p>The result is as follows:<\/p>\n<p>Order_ID  Customer_name  Order_Date  Quantity Order Cost  Mode_Payment<\/p>\n<p>26 Battle Creek Furniture  10\/30\/1998 7 $1,875.00  check<\/p>\n<p>26 California Classics  10\/21\/1998 3 $2,000.00  cash<\/p>\n<p>Exercise 12:<\/p>\n<p>It will be better to use a view and the following are some of the benefits of using a database View:<\/p>\n<p>1. Views Hide Complexity<\/p>\n<p>For queries that require joining several tables, or that have complex calculations\/logic, it\u2019s possible to code that logic to a view, and select your options from the view like you would do for a table.<\/p>\n<p>2. Security Mechanism<\/p>\n<p>A view can be used to select certain rows and\/or columns from a table, and permissions can then be set on the developed view instead of the tables themselves. This allows a user to surface only the data that he needs to see.<\/p>\n<p>3. Views Do Simplify the Supporting Legacy Code<\/p>\n<p>You can replace a table with a view with the same name, when you need to refactor a table needs a lot of code. The view will provide exactly the same schema like the original table, but instead the actual schema would already have changed. This prevents the legacy code referencing the table from breaking, allowing for changing the legacy code the users will.<\/p>\n<p>The SQL View for Our Query is as Follows<\/p>\n<p>SELECT O.Order_ID, Customer_name, O.Order_Date,\u00a0 Sum([Order_Quantity]*[Product_Price]) AS [Order Cost], Sum([Ordered Product].Order_Quantity) AS Total_Order_Quantity, Product.Product_Line_Name<\/p>\n<p>Customer_t\u00a0 C, Order_line_t\u00a0OL,  Order_t\u00a0 O, Product_t P<\/p>\n<p>WHERE\u00a0O.Order_ID = 26<\/p>\n<p>AND O.Order_ID =\u00a0OL.Order_I<\/p>\n<p>AND\u00a0P.Product_ID = OL.Product_ID GROUP BY O.Order_Date, C.Customer_name, O.Order_ID ;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ufeffName Lecturer Course Date Exercise 8: For the data given we need to create two tables as follows: Employees Table<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-50328","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>For the data given we need to create two tables as follows - sheilathewriter<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"For the data given we need to create two tables as follows - sheilathewriter\" \/>\n<meta property=\"og:description\" content=\"\ufeffName Lecturer Course Date Exercise 8: For the data given we need to create two tables as follows: Employees Table\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/\" \/>\n<meta property=\"og:site_name\" content=\"sheilathewriter\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-26T23:23:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/\",\"name\":\"For the data given we need to create two tables as follows - sheilathewriter\",\"isPartOf\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\"},\"datePublished\":\"2024-04-26T23:23:23+00:00\",\"author\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\"},\"breadcrumb\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sheilathewriter.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"For the data given we need to create two tables as follows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/\",\"name\":\"sheilathewriter\",\"description\":\"Custom essay writing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/opskill.com\/propapers\"],\"url\":\"https:\/\/sheilathewriter.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"For the data given we need to create two tables as follows - sheilathewriter","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/","og_locale":"en_US","og_type":"article","og_title":"For the data given we need to create two tables as follows - sheilathewriter","og_description":"\ufeffName Lecturer Course Date Exercise 8: For the data given we need to create two tables as follows: Employees Table","og_url":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/","og_site_name":"sheilathewriter","article_published_time":"2024-04-26T23:23:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/","url":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/","name":"For the data given we need to create two tables as follows - sheilathewriter","isPartOf":{"@id":"https:\/\/sheilathewriter.com\/blog\/#website"},"datePublished":"2024-04-26T23:23:23+00:00","author":{"@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab"},"breadcrumb":{"@id":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sheilathewriter.com\/blog\/for-the-data-given-we-need-to-create-two-tables-as-follows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sheilathewriter.com\/blog\/"},{"@type":"ListItem","position":2,"name":"For the data given we need to create two tables as follows"}]},{"@type":"WebSite","@id":"https:\/\/sheilathewriter.com\/blog\/#website","url":"https:\/\/sheilathewriter.com\/blog\/","name":"sheilathewriter","description":"Custom essay writing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/opskill.com\/propapers"],"url":"https:\/\/sheilathewriter.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/50328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/comments?post=50328"}],"version-history":[{"count":0,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/50328\/revisions"}],"wp:attachment":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/media?parent=50328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/categories?post=50328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/tags?post=50328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}