3
Good morning
I have a table called books that has 3 fields, Code, Name and Chapters Example of content:
32 - Jonas - 4
i need after select me return the following result
Codigo e Capitulo
32 1
32 2
32 3
32 4
I was told to use cursor, but I’m not getting
show only one more example of data. It seems to me that nothing needs to be done to the Name field?
– Renato Afonso
Really do not need to do anything with the name field, what will define the number of lines is the number of chapters as in example 4 could give as an example the book 19 - Psalms - 150 Chapters there would repeat the code 19 by 150 times going from chapter 1 to 150
– Alexandre Marchi
Add to the question the code you have already done using the cursor.
– Pagotti
The Code I made is completely wrong, that’s why I didn’t add it,
– Alexandre Marchi
You’ll do a function with this?
– Sorack