Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8448309
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:23:30+00:00 2026-06-10T10:23:30+00:00

I have a query below: select col1, col2, . . . coln from table1

  • 0

I have a query below:

select col1,
       col2,
       .
       .
       .
       coln
  from table1
  left join table2
  on some condition
  .
  .
  left  join tablen
  on some condition
  left join (
              select t1.col1,
              (
                select t2.col2 + ';' as [data()]
                  from SomeTable t2
                 where t2.col1 = t1.col1
                 for xml path('')
              ) value
              from SomeTable t1
              group by t1.Col1
            )MyTable
         on some condition

The above query will return about 4000 rows. The inline select statement using xml path will also result in about 4000 records.

I wish to know if there will be any performance impact with this query due to the use of xml path.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:23:32+00:00Added an answer on June 10, 2026 at 10:23 am

    Unless and untill you have proper indexes on the all joining columns in left join and proper covering indexes in select list of columns,there wont be any performance issue here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have hibernate query as below: String mySql = SELECT S.col1, S.col2, T.col3, T.col4,
I have the following query: select col1, sum( col2 ), count( col3 ) from
I have an sql query Select * from tablename whose output is col1 col2
I have a select statement working as shown below $test = $pdo->query('Select col1, SUM(col2),
Say I have a query like the one below: SELECT t1.id, t1.Name FROM Table1
I have this query below: SELECT a.id, b.item_name FROM table_1 as a INNER JOIN
I have a query like below select f.id, s.name, ss.name from first f left
I have written this query for retrieving data from mysql as below select FeedbackCode,EMailID,FeedbackDetail,
I have the below query in a postgresql database SELECT * FROM accounts where
We have the query below. Using a LEFT OUTER join takes 9 seconds to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.