Given the following table(Please replace the spaces with underscore for the column names): Student Student ID...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given the following table(Please replace the spaces with underscore for the column names): Student Student ID 2125600 2125620 2125631 2125642 2125633 2125624 2125627 2125677 2125648 2125611 2125610 2125688 Title Miss Miss Mrs Mr Mr Miss Miss Mrs Mr Mr Miss Mr Last Name Adu Agbeko- Afrifa Arthur Ofori Aidoo Akafia Okoe Ampofo Poku Opoku Danso First Name Christiana Mavis Yvette John Amanfo Patience Lawrencia Theodora David Kwame Berlinda NULL Other Name NULL NULL Akosua Kingsley Emmaneul NULL NULL NULL NULL Nana Prosper Gender Female Female Female Male Male Female Female Female Male Male Female Male DOB 6/30/1981 NULL 10/25/1987 3/14/1993 1/12/1991 5/15/1978 6/4/1980 7/14/1984 NULL 11/13/1984 9/23/1991 12/10/1982 1. Create a stored procedure that will retrieve all student ids and first name if the first name is not null the from the table 2. Create a stored procedure that will retrieve all female students only 3. Create a table called students marks with student_id and random student marks (A, A-, B, C....) 4. Create a stored procedure that creates a view of the left outer joins of the two tables. Submit your query scripts in a word document format. POB Tema Kumasi Accra Mankesim Sefwi Winso Tarkwa Acera Sandema Navrongo Tamale Wenchi Koforidua Given the following table(Please replace the spaces with underscore for the column names): Student Student ID 2125600 2125620 2125631 2125642 2125633 2125624 2125627 2125677 2125648 2125611 2125610 2125688 Title Miss Miss Mrs Mr Mr Miss Miss Mrs Mr Mr Miss Mr Last Name Adu Agbeko- Afrifa Arthur Ofori Aidoo Akafia Okoe Ampofo Poku Opoku Danso First Name Christiana Mavis Yvette John Amanfo Patience Lawrencia Theodora David Kwame Berlinda NULL Other Name NULL NULL Akosua Kingsley Emmaneul NULL NULL NULL NULL Nana Prosper Gender Female Female Female Male Male Female Female Female Male Male Female Male DOB 6/30/1981 NULL 10/25/1987 3/14/1993 1/12/1991 5/15/1978 6/4/1980 7/14/1984 NULL 11/13/1984 9/23/1991 12/10/1982 1. Create a stored procedure that will retrieve all student ids and first name if the first name is not null the from the table 2. Create a stored procedure that will retrieve all female students only 3. Create a table called students marks with student_id and random student marks (A, A-, B, C....) 4. Create a stored procedure that creates a view of the left outer joins of the two tables. Submit your query scripts in a word document format. POB Tema Kumasi Accra Mankesim Sefwi Winso Tarkwa Acera Sandema Navrongo Tamale Wenchi Koforidua
Expert Answer:
Answer rating: 100% (QA)
1 Stored procedure to retrieve student ids and first names where first name is not null SQL CREATE PROCEDURE getstudentidsandfirstnames BEGIN SELECT Student ID First Name FROM yourtablename WHERE Firs... 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 programming questions
-
Dover Enterprises recently used 14,000 labor hours to produce 7,500 completed units. According to manufacturing specifications, each unit is anticipated to take two hours to complete. The company's...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Food Enterprises is analyzing the performance of their retail business and have calculated Value At Risk at $17,350,000 under the statistical method at a 95% confidence level, and a mean of $898,000....
-
For the pulley system shown, what is the upper limit of weight the strong man can lift?
-
Debentures are shown in the company Balance Sheet under A. Reserve and Surplus B. Non-current Liabilities C. Current Liabilities D. Short-term Borrowings
-
Refer to Example 5 but suppose there are two additional design plans \(\mathrm{B}\) and \(\mathrm{C}\) for making miniature drones. Under B, 10 of 40 drones failed the initial test and under C 15 of...
-
Kawasaki Company shows the following entries in its Equipment account for 2013. All amounts are based on historical cost. Instructions(a) Prepare any correcting entries necessary.(b) Assuming that...
-
Watch the TED Talk, Social Services Are Broken. How Can We Fix Them ? Who is the speaker? What are her credentials? What does she mean the services are broken? How is it broken? What new approach did...
-
New Age Solar sells and installs solar panels for residential homes. The companys sales representatives contact and pay a personal visit to potential customers to present the benefits of installing...
-
Saji and Henry Lozano are married for all of 2022 and have an AGI of $130,000, taxable income of $120,000 and calculated income tax liability of $50,000. Their income tax liability in 2021 was...
-
It is the year 2048, and the US government needs serious amounts of cash to repair its failling infrastructure. It is issuing $1 Trillion worth of 50 year maturity Treasury bonds with a coupon rate...
-
Consider two possible public works projects: Project A and Project B. The costs and benefits of each project to each citizen depends on the citizen's height. The costs and benefits of each project to...
-
A researcher estimates an earning function by OLS using a country's Labor Force Survey data for one year. The dataset contains information on 2,000 individuals. The researcher obtained the following...
-
Watch the biological legal drama film titled Erin Brockovich. Make an essay composed of 500 to 1000 words. Please follow these guide questions to help you create your essay: 1. In your perspective...
-
Water flows through a pipe with radius 5.00 cm at the rate 0.08 m/s into an office building of height 10.00 m. The radius of the pipe tapers down to 2.00 cm at the top of the building. a. Use...
-
Save a copy of your original model to a new spreadsheet called "supplier cost increase". Say the supplier is expected to increase the cost of the products by 20%. What is the new operating income?...
-
The bookkeeper for Riley, Inc., made the following errors: a. A cash purchase of supplies of $357 was recorded as a debit to Supplies for $375 and a credit to Cash of $375. b. A cash sale of $3,154...
-
Robert Ramos (age 36) is a single taxpayer, living at 8765 Bay Dr., Monterey, CA 93940. His Social Security number is 976-23-5132. Robert's earnings and income tax withholding as the manager of a...
-
How are qualified dividends taxed in 2012? Please give the two rates of tax which apply to qualified dividends, and specify when each of these rates applies._________________________...
-
Russell (age 50) and Linda (age 45) Long have brought you the following information regarding their income and expenses for the current year. Russell owns and operates a landscaping business called...
-
Draw a class diagram for resource rental pattern and its installation for library service by using analogy approach.
-
What is Fowlers account pattern? Explain with the help of a diagram.
-
Draw a class diagram for account with entry pattern.
Study smarter with the SolutionInn App