SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

Make Data into equal parts

Reply
Contributor
Posts: 40

Make Data into equal parts

Hi,

Can someone help me on this query.

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.

How can I do this using SQL.....?

Please provide some inputs at least..!

Thanks.

Super User
Posts: 19,822

Re: Make Data into equal parts

Posted in reply to NareshAbburi

Use Proc Rank.

SQL doesn't have a supported row count function that will allow you to do this. Monotonic() is unsupported so you could try that

Ask a Question
Discussion stats
  • 1 reply
  • 236 views
  • 0 likes
  • 2 in conversation