2. Insert the following data in the tables: (1.5 marks) DEPARTMENT dptID dpt Name BA DSG...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Insert the following data in the tables: (1.5 marks) DEPARTMENT dptID dpt Name BA DSG IT SCORE st Num Business Administration Design dptBuilding с D Information Technology A scrMark 00 286860 85 crsCode scrDate 20201001 BADR1101 01/02/2020 75.55 COURSE 20201001 BAAC3101 20203001 ITDR1101 20203001 ITIN3101 20203001 ITDR2106 crsCode crs Title ITDR1101 Introduction to IT 01/06/2020 88.75 01/02/2020 85 01/09/2020 95 01/06/2020 88 20202001 DSDR2101 01/02/2020 95 20202001 DSGD3101 01/06/2020 20193015 ITDR1101 01/02/2018 20193015 ITDR2106 01/06/2018 BADR1101 Business Fundamentals DSDR2101 Photography 90 ITIN3101 Internship ITDR2106 Introduction to Databases BAAC3101 Accounting 20193015 ITIN3101 01/09/2018 20183014 ITDR1101 01/02/2018 55 DSGD3101 Graphical Design 3. Write an SQL command to list all student names and numbers in alphabetical order. (1 mark) 90 STUDENT stNum stName 20201001 Ahmed Mohammad 20203001 Ali Salem 20202001 Mariam Hamed 20193015 Hajer Sadeq Saleem Radhi Walid Alamri Fathi Fattoh 85 20191015 20193016 20183014 stAddress dptId BA IT DSG Ibri Nizwa Suhar 5. Write an SQL command to list student names, course titles they have finished. (1 mark) Sur Ibri Ibri Sur crsCredit 3 3 2 0 3 3 4 IT BA IT IT 4. Write an SQL command to list department code and number of students in each department. (1.5 marks) 6. Write an SQL command to list department name and number of courses of the department. (1.5 marks) dptId IT BA DSG 10. Write an SQL command to create the view mrksReport that contains student name, course title, score. (1.5 marks) IT IT BA DSG 7. Write an SQL command to display students' names and overall average. (1.5 marks) 8. Write an SQL command to display names and score of students who completed the course "Introduction to IT". (1.5 marks) 9. Write an SQL command to add the attribute crsPrereq to table COURSE. (1 mark) 2. Insert the following data in the tables: (1.5 marks) DEPARTMENT dptID dpt Name BA DSG IT SCORE st Num Business Administration Design dptBuilding с D Information Technology A scrMark 00 286860 85 crsCode scrDate 20201001 BADR1101 01/02/2020 75.55 COURSE 20201001 BAAC3101 20203001 ITDR1101 20203001 ITIN3101 20203001 ITDR2106 crsCode crs Title ITDR1101 Introduction to IT 01/06/2020 88.75 01/02/2020 85 01/09/2020 95 01/06/2020 88 20202001 DSDR2101 01/02/2020 95 20202001 DSGD3101 01/06/2020 20193015 ITDR1101 01/02/2018 20193015 ITDR2106 01/06/2018 BADR1101 Business Fundamentals DSDR2101 Photography 90 ITIN3101 Internship ITDR2106 Introduction to Databases BAAC3101 Accounting 20193015 ITIN3101 01/09/2018 20183014 ITDR1101 01/02/2018 55 DSGD3101 Graphical Design 3. Write an SQL command to list all student names and numbers in alphabetical order. (1 mark) 90 STUDENT stNum stName 20201001 Ahmed Mohammad 20203001 Ali Salem 20202001 Mariam Hamed 20193015 Hajer Sadeq Saleem Radhi Walid Alamri Fathi Fattoh 85 20191015 20193016 20183014 stAddress dptId BA IT DSG Ibri Nizwa Suhar 5. Write an SQL command to list student names, course titles they have finished. (1 mark) Sur Ibri Ibri Sur crsCredit 3 3 2 0 3 3 4 IT BA IT IT 4. Write an SQL command to list department code and number of students in each department. (1.5 marks) 6. Write an SQL command to list department name and number of courses of the department. (1.5 marks) dptId IT BA DSG 10. Write an SQL command to create the view mrksReport that contains student name, course title, score. (1.5 marks) IT IT BA DSG 7. Write an SQL command to display students' names and overall average. (1.5 marks) 8. Write an SQL command to display names and score of students who completed the course "Introduction to IT". (1.5 marks) 9. Write an SQL command to add the attribute crsPrereq to table COURSE. (1 mark)
Expert Answer:
Answer rating: 100% (QA)
Query 3 SELECT stNum stName FROM STUDENT ORDER BY stName ASC This query will list all student names ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Determine the type of shape and dimensions of the platinum - iridium prototype kilogram such that it has the smallest surface area for a given volume. The standard kilogram is an alloy of 9 0 %...
-
The Pacific Manufacturing Company operates a job-order costing system and applies overhead cost to jobs on the basis of direct labor cost. In computing an overhead rate for the year, the companys...
-
The following tables provide a very small portion of the data that will be kept in the database. This data needs to be inserted into the database for testing purposes. Write the INSERT commands...
-
Find the struggles faced by business (printed t-shirts) with suppliers? Explain what would be the communication plan for each stakeholder and how you'll implement the decision you have taken?
-
Briefly describe the notion of homemade dividends as it relates to M&M's irrelevancy argument?
-
A campus area merchant recorded the number of bad checks received per month, for five months Calculate: (a) The sample variance. (b) The sample standard deviation. 4 7 6 5.
-
Here you will account for Sherman Lawn Services transactions as it is actually done in practice. Sherman Lawn Service completed the following transactions during August: Aug 1 Received \($1,000\) and...
-
Prepare journal entries to record the following merchandising transactions of Cabela's, which uses the perpetual inventory system and the gross method. July 1 Purchased merchandise from Boden Company...
-
1 . Firms institute a variety of brand - related strategies to create and manage key brand assets that includes like brand extension and line extension, manufacturer brands and private - label...
-
At January 1, 2024, M. E. Gainor Corporation had outstanding the following securities: The following additional information is available: On September 1, 2024, M. E. Gainor sold 72 million...
-
Each project has a 10-year life span with no residual value. The initial investment on each is $15,000. The Weighted Average Cost of Capital (WACC) is 5% for each project as well. The difference...
-
For u(x,t) defined on the domain of 0 x 1 and t 0, find the full solution for the PDE, Ju x at with the boundary conditions: (i) u(0, t) = 0, (ii) u(1,t) = 0, (iii) u(x,0) = sin(2x) + sin(3x). In...
-
A block 1.2 kg is on the plane that makes 30 degrees relative to horizontal. There is no friction. What is the mass m on the string if the block is moving to the right with acceleration 1.5 m/s? What...
-
write a Java program to validate a name entered by a user. The program displays error message if the user didn't enter a name in three trials. import java.util.t public class validateName ( public...
-
A 1 , 7 4 9 . 2 HZ sound has a velocity of 5 1 0 0 m/s in glass and 5 9 4 0 m/s in steel. What is the wavelength ( m) of this sound in glass?
-
Martinez Products manufactures a line of desk chairs. Martinez's production operations are divided into two departments - Department 1 and Department 2. The company uses a process costing system....
-
Find the last two digits of 792026 using Euler's theorem. (i.e. the a(n) = 1 mod n, if ged(a, n) = 1).
-
A 2500-lbm car moving at 15 mi/h is accelerated at a constant rate of 15 ft/s 2 up to a speed of 50 mi/h. Calculate force and total time required?
-
Amy is a calendar-year taxpayer reporting on the cash basis. Please indicate how she should treat the following items for 2012: a. She makes a deductible contribution to an IRA on April 15,...
-
Jim is fired from his job as a waiter and decides to take an extended trip to Europe. After touring Europe for 3 months, Jim returns to look for a new job as a waiter. Are his job-hunting expenses...
-
During 2012, Palo Fiero purchases the following property for use in his manufacturing business: Palo uses the accelerated depreciation method under MACRS, if available, and does not make the election...
-
Think of an SoS problem of interest. With the help of the example provided in this chapter ,try to fill a ROPE table for the specific problem. Do not focus only on the Resources (component...
-
Dura Corporation makes metal frames for several world brands of portable home generators. They sell the frames to a wide variety of portable generator manufacturers such as DeWalt, DuroMax, Generac,...
-
Jake and Lilly Gifford founded J&L Packaging, Inc. (J&LP) in 1995 after graduating from the University of Cincinnati. Jake earned a degree in robotics and mechanical engineering, while Lilly...
Study smarter with the SolutionInn App