Database Schema for a Employee-pay scenario employee(emp_id: integer, emp_name: string) department(dept id: integer, dept_name:string) paydetails(emp_id :...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Database Schema for a Employee-pay scenario employee(emp_id: integer, emp_name: string) department(dept id: integer, dept_name:string) paydetails(emp_id : integer, dept_id: integer, basic: integer, deductions: integer, additions: integer, DOJ: date) payroll(emp_id: integer, pay_date: date) For the above schema, perform the following- a) Create the tables with the appropriate integrity constraints Insert around 10 records in each of the tables List the employee details department wise List all the employee names who joined after particular b) c) d) date e) List the details of employees whose basic salary is between 10,000 and 20,000 f) Give a count of how many employees are working in each department g) h) i) Give a names of the employees whose netsalary> 10,000 List the details for an employee_id=5 Create a view which lists out the emp_name, department, basic, dedeuctions, netsalary j) Create a view which lists the emp_name and his netsalary Database Schema for a Employee-pay scenario employee(emp_id: integer, emp_name: string) department(dept id: integer, dept_name:string) paydetails(emp_id : integer, dept_id: integer, basic: integer, deductions: integer, additions: integer, DOJ: date) payroll(emp_id: integer, pay_date: date) For the above schema, perform the following- a) Create the tables with the appropriate integrity constraints Insert around 10 records in each of the tables List the employee details department wise List all the employee names who joined after particular b) c) d) date e) List the details of employees whose basic salary is between 10,000 and 20,000 f) Give a count of how many employees are working in each department g) h) i) Give a names of the employees whose netsalary> 10,000 List the details for an employee_id=5 Create a view which lists out the emp_name, department, basic, dedeuctions, netsalary j) Create a view which lists the emp_name and his netsalary
Expert Answer:
Related Book For
Database management systems
ISBN: 978-0072465631
3rd edition
Authors: Raghu Ramakrishan, Johannes Gehrke, Scott Selikoff
Posted Date:
Students also viewed these programming questions
-
1. Draw direction vectors in unit cells for the following cubic directions: [ITT] (6) LI TO] [T3] (a) (d) Example : [T3] (d) 7 Dividing by 3, y=-%
-
Write a C++ prgram for the following question For a given K value ( K > 0) reverse blocks of K nodes in a single linked list. Example: Input: 1 2 3 4 5 6 7 8 9 10. Output for different K values:...
-
a. Establish response categories and codes for the following question that was asked of a sample of business executives: "In your opinion, which types of companies have not been affected by the...
-
International Microcircuits, Inc. Megan Bedding, vice-president of sales for International Microcircuits, Inc. (IM), was delighted when IM was one of the few firms invited to enter a bid to supply a...
-
Name some other types of auditors in addition to external, internal, and governmental auditors.
-
The financial statements for Castile Products, Inc., are given below: Account balances at the beginning of the year were: accounts receivable, $25,000; and inventory, $60,000. All sales were on...
-
Identify the most appropriate approach and then design. Provide a rationale as to why this approach and design would be most appropriate. Develop a hypothetical research scenario that would...
-
(Entries and Questions for Bond Transactions) On June 30, 2010, Mackes Company issued $5,000,000 face value of 13%, 20-year bonds at $5,376,150, a yield of 12%. Mackes uses the effective-interest...
-
1) John was in Miami, he visited his investment house and invested a total of US$12,000, a fraction at 4% and the remainder at 6%. His total annual return would be $620. How much did he invest at...
-
Write a program to generate two arrays from a given array M(i) stored in memory. One of the generated arrays will have (+ve numbers) and the other one will have (-ve) numbers. M(i) will contain 100...
-
list 6 examples of forms that are used in a manual control system . list 6 examples of stock items in the the industry . list 4 methods you can use to identify slow moving stock items.
-
"Financial Intelligence" gave examples of firms that had: 1) profit (positive net income) without cash (negative cash flow from operations) and 2) cash (positive cash flow from operations) without...
-
Can credit cards be issued to consumers who have been irresponsible with credit?
-
What are the three primary controls used in protecting corporate assets?
-
For the past several years, an audit client has bought company vehicles and depreciated them over a 10-year period. In the current year, the company determined that a more realistic estimated life...
-
Angelina Ltd acquired 25% of shares and significant influence over the operations of Singleton Ltd on 1 January 20X0. Both companies have financial years ending 31 December. Singleton Ltd reported a...
-
Find the numerical value of each expression. (a) sech 0 (b) cosh -1 1
-
Explain the statement that relational algebra operators can be composed. Why is the ability to compose operators important?
-
Why would you choose a database system instead of simply storing data in operating system files? When would it make sense not to use a database system?
-
The description in Section 18.6.1 of the Analysis phase made the simplifying assumption that no log records appeared between the begin checkpoint and end checkpoint records for the most recent...
-
Consider a bank with the following balance sheet, as shown on the next page. You read online that the banks return on assets (ROA) was 1 percent. What were the banks after-tax profits? Bank Balance...
-
Identify the types and sources of bank risk and explain how to control them.
-
Based on the following information about Banks A and B, compute for each bank its return on assets (ROA), return on equity (ROE), and leverage ratio. a. Bank A has net profit after taxes of $1.8...
Study smarter with the SolutionInn App