Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please write SQL code to insert the following values into the (already created) tables employee, department, dep_manager, where the employee_id is a sequence already created
please write SQL code to insert the following values into the (already created) tables employee, department, dep_manager, where the employee_id is a sequence already created called Seqemp (CREATE SEQUENCE Seqemp START WITH 2200 INCREMENT BY 2;)
\begin{tabular}{|l|l|l|l|l|l|l|} \hline \multicolumn{6}{|c|}{ employee } & \\ \hline employeeid & \( \begin{array}{l}\text { employee_ } \\ \text { fname }\end{array} \) & \( \begin{array}{l}\text { employee_1 } \\ \text { name }\end{array} \) & address & dep_no & salary & hire_date \\ \hline 2200 & Huda & Ahmad & Albasateen & 102 & 5000 & 22102019 \\ \hline 2202 & Mona & Saeed & Almarwah & 101 & 4000 & 15072020 \\ \hline 2204 & Fatimah & Saleh & Alsafa & 102 & & 02022021 \\ \hline 2206 & Lobna & Muhammad & Alshati & 103 & 5300 & 15062015 \\ \hline 2208 & Maha & & Almarwah & 103 & 4500 & 01012017 \\ \hline 2210 & Suha & Rami & Alolaya & 101 & & 20112020 \\ \hline 2212 & Samirah & Samir & Alworood & 104 & 6000 & 02102021 \\ \hline 2214 & Sara & & Albasateen & 103 & 2500 & 17012020 \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline \multicolumn{3}{|c|}{ department } \\ \hline department_ id & department name & manager id \\ \hline 101 & Accounting & 2202 \\ \hline 102 & Administration & 2208 \\ \hline 103 & Information Technology & 2210 \\ \hline 104 & Sale & 2214 \\ \hline \end{tabular} \begin{tabular}{|l|l|l|} \hline \multicolumn{3}{|c|}{ dep manager } \\ \hline manager_id & department_id & office location \\ \hline 2200 & 102 & First Floor \\ \hline 2202 & 101 & Ground Floor \\ \hline 2206 & 103 & First Floor \\ \hline 2212 & 104 & Second Floor \\ \hline \end{tabular}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started