We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
2nd Internals Important questions
1. Explain Informal design guidelines for Normalization with example.
2. Why we need normalization? Explain with example 1NF,2NF and 3NF. 3. Explain different data types SQL database. 4. Explain syntax with example for the following SQL Commands. i)Insert ii) Update iii) Alter iv) Delete v) Truncate 5. Explain BCNF and 4 NF with an example. 6. Consider the universal relation R={A,B,C,D,E,F,G,H,I,J} and the set of functional Dependencies F={{A,B{C},{A}{D,E},{B}F,{F}{G,H},{D}{I,J}}.What is the key for R? Decompose R into 2NF and then 3NF relations. 7. Explain order by and group by statements with example. 8. Given the following schema: Write SQL Queries for the following: i) Retrieve the name of the manager of each department. ii) Retrieve the names of employees who work on all the project controlled by department 5. iii) Retrieve the name of employee who have no dependents. iv) Retrieve number of Male and Female employee working in the Company. v) Retrieve the name of employee who have at least one dependent. 9. Explain the types of update anomalies in SQL with an example. 10. What is Functional Dependency? Write algorithm to find minimal cover for set of Functional Dependency. Construct the minimal cover m for set of functional dependency. E={ BA, DA, ABD}. 11. ) Consider the following tables: Works (Pname,Cname,Salary) Lives (Pname,Street,City) Located -in (Cname,City) Write the following queries : i) List the names of the people who work for the Company ‘Wipro’ along with the cities they live in. ii) Find the names of the people who do not work for ‘Infosys’. iii) Find the people whose salaries are more than that of all of the ‘Oracle’ employees iv) Find the persons who works and lives in the same City. Find the names of the companies that are located in every city where the Company Infosys is located