Now let’s move on to slightly more realistic (and useful) embedded SQL scenarios and write our first embedded SQL function.
By Rafael Victória-Pereira
In case you’re wondering, I haven’t forgotten that this series is about SQL, not RPG. However, you’ll see a bit of RPG in this and the next TechTips. My intention is to help you think outside the box and consider using SQL where you normally wouldn’t. In order to do that, this article and the next few articles will provide some examples, using RPG, so that you can get inspired and look at problems the “SQL way.”