How to build all sequential of a table field value in SQL Server
i have a table similar this
a b b c d f
i need a function for this table with similar output
a ab abb abbc abbcd abbdcf
Assuming i have a ID that orders those items.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Assuming you have a (gapless, increasing) ID that orders those items:
SQLFiddle example: http://www.sqlfiddle.com/#!3/8840c/1