BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Teeleaf
Fluorite | Level 6

Based on the answer explanation, it seems the correct answer is C not A, isn't it?

 

7.What happens if you use a GROUP BY clause in a PROC SQL step without a summary function?
a. The step does not execute.
b. The first numeric column is summed by default.
c. The GROUP BY clause is changed to an ORDER BY clause.
d. The step executes but does not group or sort data.
 
Correct answer: a
The GROUP BY clause is used in queries that include one or more summary functions. If you specify a GROUP BY clause in a query that does not contain a summary function, your clause is changed to an ORDER BY clause.
1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

yes, you are right it should be C

 

The below code confirms the same

 

image.png

Thanks,
Jag

View solution in original post

1 REPLY 1
Jagadishkatam
Amethyst | Level 16

yes, you are right it should be C

 

The below code confirms the same

 

image.png

Thanks,
Jag

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1094 views
  • 1 like
  • 2 in conversation