sql query for repeat rows -


name       telugu image         price  quan jaen123    ౭౦౦    bcb6a0b-.gif  805    23 tshirt35   ౩౫౦    9df27e4-.gif  402.5  35 jeans30-32 ౬౦౦    47d975c-.gif  690    50 jack1      ౮౦౦    4698ee8-.gif  920    25 

i want display like:

jack1 ౮౦౦ 4698ee8-.gif 920 jack1 ౮౦౦ 4698ee8-.gif 920 jack1 ౮౦౦ 4698ee8-.gif 920 jack1 ౮౦౦ 4698ee8-.gif 920 jack1 ౮౦౦ 4698ee8-.gif 920 jack1 ౮౦౦ 4698ee8-.gif 920 means 25 times 

means row repeat per number of quantity

try this

select name,telugu image,price join( select number master.dbo.spt_values number >0  , number <=2048 group number  ) on a.number<=quan 

here limitation.it should work on sql server , quan must less 2049


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -