Practice Lab Activity: Solve using SQL Queries: 1. Create a college database. 2. Create a student...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Practice Lab Activity: Solve using SQL Queries: 1. Create a college database. 2. Create a student table with the following fields using SQ1 Query. StudentID, StudentName, Gender, Marks, CourseID. 3. Create a course table with the following fields using SQL Query. Courseld, CourseName, Specialization. 4. Insert the following values into the student table using SQL Query StudentID: S001, S002, S003, S004 StudentName; Ahmed, Hamed, Fatima, Soha Gender: M,M,F,F Marks: 65,83,80,63 CourseID: C101. C102, C102, C102 5. Insert the following values into the course table using SQL query CourseID: C101, C102, C103 CourseName: Ethics, Auditing, CRM Specialization: Common, Accounting, Marketing. 6. Add a new field coursetime to the course table. 7. Write a query to change the marks of student Ahmed to 68. 8. Write a query to remove duplicate values of course ID from the student table. 9. Write a query to display all details of the student table. 10. Write a query to display all details of female students whose marks are less than and equal to 65. 11. Write a query to count the number of students as 'scount' whose marks are greater than or equal to 80. 12. Write a query to display the maximum mark as 'maxmark' and miminum mark as 'minmark' from the student table. 13. Write a query to change the specialization of CRM course to common. 14. Write a query to display all details of course whose specialization begins with 'c'. 15. Write a query to display all the student details arranged in ascending order of marks. Solve using QBE: 1. List all details of the student table. 2. Count the number of courses from the course table. 3. Eliminate duplicate values from the course ID column of the student table. 4. List all the female students whose marks are less than 75. 5. Find the sum and average of marks from the student table. 6. Find the minimum mark and the maximum mark of the students. 7. List all student details who are taking ethics course. 8. List all student details whose marks are between 60 and 80. 9. List all student details who are in accounts specialization. Forms and Reports: 1. Create a form for the student table using form wizard and add the following record. i. ii. iii. StudentID: S006 2. Create a form using form wizard to display studentId, Name, Gender, Marks, CourseID StudentName; Ahmed Gender: M marks. Marks: 70 and Course Name. CourseID: C103 marks. Use tabular layout. Set the data view 'by course' Save as QBE form 3. Create a report using report wizard for the student table arranged course wise. 4. Create a report using report wizard for the student table arranged in decreasing order of 5. Create a report using report wizard to display total number of students and sum of their 6. Create a query using QBE to display the studentId, student name, gender, marks from the student table, course ID and course name from the course table for the students taking ethics course. Save as reportquery. Create a course wise report for the above query and give title as 'coursereport'. Practice Lab Activity: Solve using SQL Queries: 1. Create a college database. 2. Create a student table with the following fields using SQ1 Query. StudentID, StudentName, Gender, Marks, CourseID. 3. Create a course table with the following fields using SQL Query. Courseld, CourseName, Specialization. 4. Insert the following values into the student table using SQL Query StudentID: S001, S002, S003, S004 StudentName; Ahmed, Hamed, Fatima, Soha Gender: M,M,F,F Marks: 65,83,80,63 CourseID: C101. C102, C102, C102 5. Insert the following values into the course table using SQL query CourseID: C101, C102, C103 CourseName: Ethics, Auditing, CRM Specialization: Common, Accounting, Marketing. 6. Add a new field coursetime to the course table. 7. Write a query to change the marks of student Ahmed to 68. 8. Write a query to remove duplicate values of course ID from the student table. 9. Write a query to display all details of the student table. 10. Write a query to display all details of female students whose marks are less than and equal to 65. 11. Write a query to count the number of students as 'scount' whose marks are greater than or equal to 80. 12. Write a query to display the maximum mark as 'maxmark' and miminum mark as 'minmark' from the student table. 13. Write a query to change the specialization of CRM course to common. 14. Write a query to display all details of course whose specialization begins with 'c'. 15. Write a query to display all the student details arranged in ascending order of marks. Solve using QBE: 1. List all details of the student table. 2. Count the number of courses from the course table. 3. Eliminate duplicate values from the course ID column of the student table. 4. List all the female students whose marks are less than 75. 5. Find the sum and average of marks from the student table. 6. Find the minimum mark and the maximum mark of the students. 7. List all student details who are taking ethics course. 8. List all student details whose marks are between 60 and 80. 9. List all student details who are in accounts specialization. Forms and Reports: 1. Create a form for the student table using form wizard and add the following record. i. ii. iii. StudentID: S006 2. Create a form using form wizard to display studentId, Name, Gender, Marks, CourseID StudentName; Ahmed Gender: M marks. Marks: 70 and Course Name. CourseID: C103 marks. Use tabular layout. Set the data view 'by course' Save as QBE form 3. Create a report using report wizard for the student table arranged course wise. 4. Create a report using report wizard for the student table arranged in decreasing order of 5. Create a report using report wizard to display total number of students and sum of their 6. Create a query using QBE to display the studentId, student name, gender, marks from the student table, course ID and course name from the course table for the students taking ethics course. Save as reportquery. Create a course wise report for the above query and give title as 'coursereport'.
Expert Answer:
Answer rating: 100% (QA)
1 CREATE DATABASE databasename 2 CREATE TABLE student StudentID int StudentName varchar255 Gender va... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these programming questions
-
please show me er diagram as well as explain it between room and customer there will be many to many cardinality ratio please convert it into one to many .also show the entity hotel have staff and...
-
Please provide me with some real-word (numerical if possible) examples of outsourcing.
-
Please help me to discuss the results of the multitasking test from Addressing the Multitasking Myth. Describe effects of switchtasking that have personally or professionally experienced. What did...
-
The Chief Financial Officer at Ford Motor Company is said to usea hybrid-costing system. Define the hybrid-costing system. Explainthe advantages to this company to use this system. I want a 10 page 2...
-
The state of Iowa has a 5% sales tax. Hawkeye Services Inc., an Iowa company, had two revenue transactions as follows: May 8. Issued Invoice No. 112 to Howerton Inc. for services provided on account,...
-
Consider the following two equations estimated using the procedures developed in this section: i. yi = 4x1.8 ii. yi = 1 + 2xi + 2x2i Compute values of yi when xi = 1, 2, 4, 6, 8, 10.
-
Determine whether the following situations are negative indicators of the financial health of a government unit: a. Cash and investments divided by current liabilities ratio is decreasing over...
-
Valdespin Company manufactures three sizes of camping tentssmall (S), medium (M), and large (L). The income statement has consistently indicated a net loss for the M size, and management is...
-
Q1. Explain how authorization is given for payments made from the trust account, in the following circumstances: A. Settlement of a sale and payment of commission to an agent? B. Payment of an...
-
H ALL 1 2 3 2. Simple Matrix Summation Given an n x m matrix, a, where each a(i, j) is the value of the cell at the intersection of row i and column j, create another n x m matrix, b, using the...
-
What expenses will likely be higher during your retirement than now?
-
Give the advantages of I.C. engines over steam engines.
-
How do you classify I.C. engines ?
-
Define the following : (a) Clearance volume (b) Swept volume (c) compression ratio
-
What are the functions of the following in an I.C. engine ? (a) Piston (b) Crankshaft (c) valve gear mechanism.
-
Describe the function of various parts of an I.C. engine.
-
Watch the following TED talk (17:36 minutes) featuring Elizabeth Loftus, an American cognitive psychologist, and expert on human memory. https://youtu.be/fERbGDuPvWo After viewing the video and...
-
Copy and complete the statement. 3800 m ? km =
-
Define functional dependence.
-
When do you use OLAP?
-
How do you sort data in an Access query?
-
Wesley Parks Pencil Company is considering the purchase of a new machine to make pencils. The cost of the machine is \($248,000\). The pencil machine has an estimated useful life of 10 years and an...
-
Sylvia Heains Catering Service is considering the purchase of new energy-efficient cooking equipment. The cost of the new equipment is \($78,000\). The equipment has an estimated useful life of eight...
-
George Gonzalez Construction Company is considering the purchase of a new road grader. The cost of the road grader is \($68,000\). The road grader has an estimated useful life of seven years and an...
Study smarter with the SolutionInn App