I've a column with nearly 1000+ rows and I wanted to make them into equal groups (if not equal, at least partially equal.). I mean it will be okay if I create a new flag column which represents 10 groups.
SQL doesn't have a supported row count function that will allow you to do this. Monotonic() is unsupported so you could try that
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.