sqlhelp Posted September 20, 2019 Report Posted September 20, 2019 Hello How to pull two columns data into a single column while the third column is common in T-SQL? Ila undi data ID Firstname Lastname Persongroup 123 Chitti Babu 123 345 Raj Krish 123 567 Hero Man 123 Naku Raj Krish , Hero Man ani Kavalli output Subquery tho try chesa but raledhu Quote
AndhraneedSCS Posted September 20, 2019 Report Posted September 20, 2019 select firstname + ' ' + Lastname from tablename 1 Quote
Sarvapindi Posted September 20, 2019 Report Posted September 20, 2019 15 minutes ago, sqlhelp said: Hello How to pull two columns data into a single column while the third column is common in T-SQL? Ila undi data ID Firstname Lastname Persongroup 123 Chitti Babu 123 345 Raj Krish 123 567 Hero Man 123 Naku Raj Krish , Hero Man ani Kavalli output Subquery tho try chesa but raledhu chitto babu em papam sesad va.. Quote
MuPaGuNa Posted September 20, 2019 Report Posted September 20, 2019 https://stackoverflow.com/questions/20284528/how-to-concat-two-columns-into-one-with-the-existing-column-name-in-mysql/20285571 just concatenate aani kotta , vachindi..konchem google cheyi vuncle t Quote
Desi_guy Posted September 20, 2019 Report Posted September 20, 2019 1 hour ago, sqlhelp said: Hello How to pull two columns data into a single column while the third column is common in T-SQL? Ila undi data ID Firstname Lastname Persongroup 123 Chitti Babu 123 345 Raj Krish 123 567 Hero Man 123 Naku Raj Krish , Hero Man ani Kavalli output Subquery tho try chesa but raledhu question idena..deeniki Subquery kuda na Quote
gunturfriends Posted September 20, 2019 Report Posted September 20, 2019 25 minutes ago, Desi_guy said: question idena..deeniki Subquery kuda na search listagg function in google..i think its called stuff function in sql server 1 Quote
soodhilodaaram Posted September 20, 2019 Report Posted September 20, 2019 50 minutes ago, Desi_guy said: question idena..deeniki Subquery kuda na subject weak unnapudu subquery vadite enti tappu.. aha enti tappu antunna 1 Quote
xano917 Posted September 20, 2019 Report Posted September 20, 2019 2 hours ago, sqlhelp said: Hello How to pull two columns data into a single column while the third column is common in T-SQL? Ila undi data ID Firstname Lastname Persongroup 123 Chitti Babu 123 345 Raj Krish 123 567 Hero Man 123 Naku Raj Krish , Hero Man ani Kavalli output Subquery tho try chesa but raledhu what is your role in job dude ? Non technical role ani e question veyyi good responses vasthayi. SQL lo ABCDs aduguthunnav andhuke telling Quote
Desi_guy Posted September 20, 2019 Report Posted September 20, 2019 30 minutes ago, soodhilodaaram said: subject weak unnapudu subquery vadite enti tappu.. aha enti tappu antunna Sub query a kadu stored procedure, Triggers kuda vadochu Quote
gunturfriends Posted September 20, 2019 Report Posted September 20, 2019 not many would need to know about "Listagg" or Stuff functions , please read his question carefully before commenting. Its is easy to point but make fun after answering his question understanding what he need. just my thoughts Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.