unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Oracle sql scripting homework
1. Oracle SQL scripting homework
Click Link Below To Buy:
https://hwaid.com/shop/oracle-sql-scripting-homework/
Contact Us:
hwaidservices@gmail.com
Oracle SQL scripting homework
Unit 2 Assignment1:String Manipulation & Calculated Fields
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
Displayall bowlers firstand lastnames in one column resultset,renaming the columnBowler’s Name.
Displaya listof all bowlers and addresses formatted suitabilityfor a mailing list,sorted by zipcode.
What was the pointspread between a bowler’s handicap and raw score for each game played in match 10?
Rename the pointspread field in the data resultsetas PointDifference and sorton the match field.
Displaythe 3rd, 4th, and 5th letters of each tournamentlocation dis playing the resulting data setasLocation
Letters.
Using a string function,displaythe tournamentlocation ofthe tournamentthat occurred on 12/04/2012 in
uppercase letters.
Show the lastname of each bowler that lives in Seattle, WA in lowercase letters . Rename the column in the
datasetbowler.
Displayeach bowler’s lastname,first,name and middle initial all in lowercase in one resultcolumn. Be sure that
you include spaces between each piece ofdata. Also, rename the field asFull Name.
For the bowler named David Cunningham,displayonly the world Old that is located in his address. Rename the
field in your resultPartial Address.
Displaythe team name MintJuleps asMintJuleps,naming the new resulting column NewName.
2. Note: Here you will use string and concatenation functions/clauses to take apartand piece back together the
new string that contains a space.
Part 2
Directions: After reviewing and completing the Unit2 Guided Practice 1, create six scenarios using the following SQL
syntax, clauses,and keywords.
Each scenario mustinclude a selectclause.
You need to include the where clause in at least3 scenarios.
You need to use at leasttwo of the following string functions: LOWER(), UPPER(), CONCAT(), and SUBSTR().
You need to create two scenarios thatcontain mathematical expressions.
Lastly, you will need to rename one resulting field in your resultdata set using the AS keyword.**Feel free to
include any string function that you have learned in the guided practice exercises to expand your learning
experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
Unit 2 Assignment2:Date/Time & Formatting Functions
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
Displayall of the tournamentlocations thathosted tournaments in the year 2012. Sort the results on the tourney
date field in descending order.
Displaythe month using formatting techniques ofall tournaments thatwere held at Imperial Lanes. Rename the
data column resultasMonth ofTournament.
Displayall tournamentdates oftournaments played atBolero Lanes in the following fashion: Full written
month/day/year (i.e., SEPTEMBER/28/10). Rename the resultcolumn asLong Date.
Provide an SQL statementthat will return the current date and time. Rename the resultcolumn asCurrentTime.
Please note that you will need to use a dual table for this scenario.
Provide an SQL statementthat will return the day that you were born. You will need to use both a formatting and
date function as well as a dual table to complete this task. Please pay attention to how to return a day of a date
via formatting functionality. Rename the resulting column asMy Birth Day.
Use the months_between() SQL function to find the value between the dates 02/13/2004 and 06/28/2003. Here
you will also be using a dual table. Feel free to rename the resultcolumn. Also if you would like to round the
decimal place to two places,you can use the ROUND() function.
Find all of the distinctmonths and years of all tournamentlocations thathave been involved in the bowling league
since its start. The results will look like this:SEPT12 OCT 12 NOV 12 Etc.
3. Part 2
Directions:After reviewing and completing the Unit2 Guided Practice 2, create five scenarios using the following SQL
syntax, clauses,and keywords.
Each scenario mustinclude a selectclause.
You need to include the where clause in at least2 scenarios.
You need to use at 3 of the following date/time or formatting functions: to_char(),to_date(), DATE(), TIME(),
NOW(), SYSDATE()
Feel free to use a dual table if you are returning values that are not contained in the databas e tables.
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
**********************************
Unit 3 Assignment1:Aggregate Functions
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
Show the total number of bowlers thatlive in Bethell,WA.
Displaythe number ofgames won in match 14, game 2. Rename the resulting data columnWINNERS.
Show the number of games thatthe bowler with bowlerID 8 has won thus far.
What is the total raw scores ofall bowlers who played in match 13, game 3?
Displaythe total handicap scores ofthe bowler that has a BowlerID of 18 for all matches and games. Rename the
resultcolumnTotal Handicap.
Show the average of all raw scores of games lostin match 19. Note: the WonGame field is a Boolean value,
therefore 0 represents a lostgame,and 1 represents a game thatwas won.
Displaythe largesthandicap score ofgames won in match 20,game 2. Note: the WonGame field is a Boolean
value, therefore 0 represents a lostgame,and 1 represents a game thatwas won.
Show the mostrecenttournamentdate in the bowling league schedule. Rename the resulting columnLast
TournamentDate.
4. Displaythe raw scores ofthe games thatare less than the average of all raw scores ofgames lostin match 20,
game 1. Note: the WonGame field is a Boolean value,therefore 0 represents a lostgame,and 1 repres ents a
game that was won. You will use a subqueryto retrieve this data. See p. 434 in your textbook.
Displayhow many tournaments have been played at Sports World Lanes. Rename the resultcolumnNumber of
Tournaments.
Part 2
Directions:After reviewing and completing the Unit3 Guided Practice 1, create five scenarios using the following SQL
syntax, clauses,and keywords.
Each scenario mustinclude a selectclause.
You need to include the where clause in at leasttwo scenarios.
You need to use at leastthree of the following aggregate functions: COUNT(), SUM(), AVG(), MIN(), MAX()
You also need to include one scenario thatincludes using aggregate function using filters as described on p.432
in the textbook.
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
Unit 3 Assignment2:Grouping Data & Summarizing Grouped Data
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
Displaythe bowler’s lastname and the average of every bowler’s raw score for each bowler. Hint: You will JOIN
the Bowlers table on the Bowler_Score table using the AVG() function and a Group By clause. To remove all of
the decimal places within the AVG() results,you can use the ROUND() function.
Calculate the current total raw score and games bowled for each bowler. Displaythe bowlers ID, lastname,and
first name in the resultset. Rename the total raw score asTotal Pins and the total number of games
bowled Bowled Games.Hint: Here you will JOIN the Bowlers table on the Bowler_Scores table using the SUM()
and COUNT() functions as well as a Group By clause.
Displaythe highestraw score for each bowler. Displaythe bowler’s lastand firstname in the resulting data set.
Hint: Here you will JOIN the Bowlers table on the Bowler_Scores table using the MAX() function. You can also
use a subqueryto return the same data set.
Listthe lastname of every bowler whose average raw score is less than or equal to the overall average score.
Displayboth the bowlers’ lastand firstnames in the resulting set. Hint: Here you will JOIN the Bowlers table with
5. the Bowler_Scores table using the HAVING clause and a subqueryto compare the averages AVG(). You will use
the Group By clause to accurately displaythe data. To remove all of the decimal places within the AVG() results,
you can use the ROUND() function.
Displaythe team ID, bowler ID, and bowler’s lastname for every bowler as well as their highestbowling score.
Hint: You will JOIN the Teams table,Bowlers table,and the Bowlers_Score table using the MAX() function and a
Group By clause. Rename the highestbowling scores in the resulting data setMax Raw Score.
Displayfor each bowler the bowler lastname and the average of the bowler’s raw games scores for the bowlers
whose average is greater than 160. Hint: You will JOIN the Bowlers table with the Bowlers_Scores table using
the AVG() function,Group By, and a HAVING clause. To remove all of the decimal places within the AVG()
results,you can use the ROUND() function.
Show the bowler ID, and bowler’s lastname and firstname for every bowler as well as their lowestbowling score.
Hint: You will JOIN the Bowlers table with the Bowlers_Score table using the MIN() function and a Group By
clause. Rename the lowestbowling scores in the resulting data setLowestRawScore.
Part 2
Directions:After reviewing and completing the Unit3 Guided Practice 2, create three scenarios using the following
SQL syntax, clauses,and keywords.
One scenario mustinclude a subquery.
You need to include the GROUP By clause in at leasttwo scenarios.
You need to use at leasttwo of the following aggregate functions: COUNT(),SUM(), AVG(), MIN(), MAX()
You also need to include one scenario thatutilizes the Having clause.
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
After you are finished,please submitthe Microsoft Word file that contains Part1 and Part 2 of your assignment.Your
documentshould be named U3_Assignment2_Lastname.docx.Submityour file using the Upload Instructions
below.
**********************************
Unit 4 Assignment1:Subqueries
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
6. Scenarios
Listthe bowler’s firstand lastnames ofall players on the Marlins Team. Hint: You will use a subqueryto join the
Bowlers and Team tables using the TeamID field.
Displaythe number ofgames each bowler has played. Show the bowler’s firstand lastname in the resultdata
set. Hint: You will create a subqueryusing the bowler ID field to join the Bowler and Bowler Scores tables. You
will also need to utilize the COUNT() function.
Listthelast tournamentdate that the bowling team Swordfish played. Hint: Here you will create a subqueryusing
the Teams and Tournaments tables connecting the TourneyID with the TeamsID fields using the MAX() function.
Displaythe captain’s firstand lastname ofthe Manatees. Hint: Here you will use a subquerywith the Bowlers
and Teams tables.
Listthe names ofall teams that have played on odd numbered lanes. Hint: Here you will use a subquerywith the
Teams and Tourney_Matches tables. Because this querywill return multiple rows,you will need to use the IN or
ALL keywords.
Displaythe names ofall bowlers thathave a handicap score greater than 200. Displaythe lastname and
handicap scores in the results. Here you will use a subquerywith the Bowlers and Bowlers_Scores tables.
Because this querywill return multiple rows,you will need to use the IN or ALL keywords.
Part 2
Directions:After reviewing and completing the Unit4 Guided Practice 1, create four scenarios using the following
SQL syntax, clauses,and keywords.
Each scenario mustinclude a subqueryusing data from multiple tables.
You need to include the where clause in at leastthree scenarios.
You need to use at leasttwo of the following aggregate functions: COUNT(),SUM(), AVG(), MIN(), MAX()
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
Unit 4 Assignment2:JOINs
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggestthatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
7. Displaythe bowling teams and the name ofeach captain. Be sure that you include both the first and lastname in
the same column,renaming the column,and using concatenation techniques. Hint: You should use JOIN
notation with the Teams and Bowlers tables.
Displaya listof bowling teams and all team members along with the game scores. Hint: You will use a JOIN
statementwith the Teams,Bowlers,and Bowler_Scores tables.
Find the bowlers thatlive in the same zip code. Hint: You should join the bowlers table to itself creating an alias
comparing equal zip codes AND non-matching BowlerIDs. Name the resulting columns like so: First
Bowler, Bowler Zip, and Second Bowler. To include both the first and lastname in the same column,you will
need to use concatenation techniques.
Displayall of the good bowlers who have played at Thunderbird Lanes. Note: A good player has a raw score
>=170. Hint: Here you will JOIN the Bowlers,Tourney_Matches,and the Tournaments tables.
Displayall game scores greater than 180. Hint: Here you will JOIN Bowler_Scores,Tourney_Matches,and
Tournaments together.
Show a listof all tournaments thathave not yet been played. Hint: You will JOIN the Tournaments table with the
Tourney_Matches table. Remember you are checking if the MatchID field is NULL. Displaythe Tournaments ID,
Date, and Location in the resultdata set.
Show all tournamentmatches thathave been played thus far. Hint: You will JOIN the Teams table with the
Tourney_Matches table. Remember you need to consider matches played on both even and odd lanes. Display
the match ID, TournamentID,Team Names ofteams that played on even lanes,and team name of the teams that
played on odd lanes in the resultdata set. Sort the results by the match ID field.
Part 2
Directions:After reviewing and completing the Unit4 Guided Practice 2, create three scenarios using the following
SQL syntax, clauses,and keywords.
Each scenario mustinclude JOIN notation to extract data from multiple tables.
You need to use alias notation as needed to join key fields.
You need to use at leastone of the following aggregate functions: COUNT(),SUM(), AVG(), MIN(), MAX()
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.
**********************************
Unit 5 Assignment:SetLogic and Unions
Part 1
After reviewing and completing the Unit1 Guided Practice 2, I suggest thatyou review all tables using the Object
Browser area of the SQL Workshop associated with the scenarios below,as well as field data types and data (case
sensitivity) before constructing your SQL statements.
After logging into Oracle Application Express,perform these steps to get started:
To access the SQL command area,click on SQL Workshop and then on the SQL command icon.
Your screen should resemble the following:
8. Directions:For all of the scenarios below,compose SQL syntax to retrieve data, click the Run button, and then review
the resulting setin the bottom pane. Save all scenarios,SQL syntax, and the screenshots for the resulting data sets
in a Microsoft Word documentto upload for review and grading.
Scenarios
Listall names from the Teams and Bowlers tables. Hint: Use a Union clause.
Listall of the tournaments thatare not scheduled for tournamentmatches. Hint: Here you will use the MINUS
clause with the Tournaments and Tourney_Matches tables.
Find the bowlers who had a raw score of 165 or better at Thunderbird Lanes combined with bowlers who had a
raw score of 150 or better at Bolero Lanes. Hint: You will use Join notation and a Union to retrieve the data in the
Bowlers,Tournaments,Tournament_Matches,and Bowlers_Scores tables.
Listthe tourney matches,team names,and team captains for teams starting on the odd lane together with the
tourney matches,team names,and team captains for teams starting on the even lane. Sort by tournamentdate
and match number. Hint: Here you will Join Tournaments,Tourney_Matches,and the Teams tables. You will
also use the UNION ALL clause. Your resulting data setshould resemble the screen shotbelow.
Part 2
Directions:After reviewing and completing the Unit5 Guided Practice, create three s cenarios using the following SQL
syntax, clauses,and keywords.
Each scenario mustinclude multiple tables.
You need to use alias notation as needed to join key fields.
You need to use one of the following clauses in each scenario: UNION,INTERSECT, MINUS
Lastly, you will need to rename at leastone resulting field in your resultdata set using the AS keyword.**Feel free
to include any other functions that you have learned in the guided practice exercises or previous SQL
syntax to expand your learning experience.
You may use any of the Bowling League tables or the Demo_CUSTOMERS/ORDERS/PRODUCTS tables in your
Oracle account. Be sure to listthe scenario,include the SQL syntax that retrieves the data, and include a screenshot
of your resultdata sets.