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

  Election to choose new leader

A community of N pirates has recently conducted an election to choose their new leader. All pirates vote, and any pirate may run as a candidate. There is no preferential system, each pirate simply writes the number of their preffered leader on the..

  Find the range of the heights of these buildings

Which interval or intervals represent the greatest number of these buildings?

  Problem regarding the social networking site

Consider the security needs of an e-commerce company, such as eBay, and those of a social networking site, such as Facebook.

  What is the firewall going to be providing for you

If so, what other network design features might you use? What processes? If not, what is the firewall going to be providing for you?

  Explain the difference between an object reference in java

Explain the difference between an object reference in Java and an object. Use an example to illustrate your answer.

  Prepare an analysis of variance table

Plot the residuals versus the fitted values. Also construct a normal probability plot of the residuals. Comment on the results

  Construct a structure chart, as well as a flowchart

Construct a structure chart, as well as a flowchart and pseudocode,for the following problem. Assume that input record contains a taxpayer's name, the value of personal property belonging to taxpayer, and a code defining the type of a personal ..

  Which algorithm would probably work better on a computer

Write a recursive algorithm in pseudo code to generate the Fibonacci sequence.

  Determine whether these parameters should have default value

Use the find Globals () function available in code tools to check that the function is not relying on any global variables.

  Is hci a term to describe any interaction with digital

Is HCI a term to describe any interaction with digital technology? Suggest a more appropriate phase to describe this. Also, explain your answer. Whom or what are you interacting with, when you use a smart phone, a tablet, and a laptop? Google Glass o..

  Connected component is reduced to a single node

In a di-graph, when each strongly connected component is reduced to a single node, then the resulting di-graph is a directed acyclic digraph.

  Can the problem be solved during context-sensitive analysis

Can the problem be solved during context-sensitive analysis?

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