A family of Microsoft relational database management systems designed for ease of use.
This works:
CREATE VIEW tBadPart AS
SELECT TOP 100 * FROM ( SELECT Part FROM SourceTable ORDER BY getRndVal(Part) )
This does not:
CREATE VIEW tBadPart AS
SELECT TOP 100 Part FROM SourceTable ORDER BY getRndVal(Part)
The latter causes an error about only allow simple queries in creating views.
But for me, the source table was so big that it took a few seconds to create the random column and sort by it. So I decided against a view and created a table instead. It is, after all, a small table being created from a very big table. This allowed to to avoid the bracketed nesting.