Objective of this task is to display the instructor

Assignment Help Basic Computer Science
Reference no: EM131835585

SQL Question

The objective of this task is to display the instructor ('IN') names in one column for each section separated by a semicolon. (all the outputs(columns) are from same tables )

SELECT

   section_id,

   temp_person_name

FROM

   stan.section_person

WHERE

   rnr_role_code = 'IN';

The code will have this output.

SECTION_ID TEMP_PERSON_NAME                                                         

---------- --------------------------------------------------------------------------------------------------------------------------------

    93 Herscher, Joshua                                                         

    93 Vankanegan, Steve                                                        

    95 Peyser, Michael                                                         

    96 Hoggard, Zabrina                                                         

    96 Simmons, Ghia                                                          

    60 Esirgen, Gokhan                                                         

    60 Griffith, Ryan

-- Expected/Desired Result

/*

60 Esirgen, Gokhan; Esirgen, Gokhan

93   Herscher, Joshua; Herscher, Joshua

95   Peyser, Michael

96   Hoggard, Zabrina; Simmons, Ghia

*/

My code is this:

SELECT section_id,

    temp_person_name = STUFF( // this is line 10

    (SELECT ',' + temp_person_name

        FROM stan.section_person 

        WHERE rnr_role_code = 'IN'

        FOR XML PATH('')), 1, 1, ''

        )

    FROM stan.section_person

    GROUP BY section_id;

and the output error is this:

ORA-00923: FROM keyword not found where expected

00923. 00000 - "FROM keyword not found where expected"

*Cause:   

*Action:

Error at Line: 10 Column: 25

Reference no: EM131835585

Questions Cloud

Taking a logical view of data : What is meant by "taking a logical view of data" as it pertains to the relational database model?
What are responsibilities of mortgage brokers to borrowers : What are the responsibilities of mortgage brokers to borrowers? To lenders? To investor? How well did they fulfill their responsabilities?
What are three examples of programming languages : What are three examples of programming languages? What makes each of these languages useful to programmers?
How large will the shortage of apartment be : Assume rental market for apartments in Anytown is in equilibrium as shown. How large will the shortage of apartment be? You must show you work to get credit.
Objective of this task is to display the instructor : The objective of this task is to display the instructor ('IN') names in one column for each section separated by a semicolon.
Possible ways to improve the hospital financial position : who has been the chairman for over 30 years, is discussing with you the possible ways to improve the hospital’s financial position.
Define and explain relevant legislation for WHS : Read the case study "WHS Management System of VTI Group Mining and Minerals" - Define and explain relevant legislation for WHS
Submit a screenshot showing the solved problem : Python Programming Help: Please help problems, in Python. Submit a screenshot showing the solved problem, for each of the below.
What happens if you leave out one of the parentheses : In a print statement, what happens if you leave out one of the parentheses, or both?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd