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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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