Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-1096-23 Topic 3 Question 24 Discussion

Actual exam question for Oracle's 1Z0-1096-23 exam
Question #: 24
Topic #: 3
[All 1Z0-1096-23 Questions]

Examine the SQL command: SQL> SELECT CUST_MARITAL_STATUS,MEDIAN(CUST_CREDIT_LIMIT) FROM SH.CUSTOMERS GROUP BY CUST_MARITAL_STATUS; Which statement is true about running this command where the table has columns cust_maritax._status3 (VARCHAR2) and cust_credit_limit (number) with 100k rows of non-null data?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Julene
11 months ago
I believe the correct answer is D) It will return the median value of customer credit limit grouped by marital status, based on the information provided.
upvoted 0 times
...
Staci
11 months ago
D, no doubt about it. Median credit limits by marital status - that's exactly what the query is asking for. Though I do wish they'd use something other than 'CUST_MARITAL_STATUS' for the column name. Sounds like a bad romance novel.
upvoted 0 times
Carmela
9 months ago
I agree, it does sound like a bad romance novel. But D is definitely the correct option here.
upvoted 0 times
...
Carmela
9 months ago
D) It will return the median value of customer credit limit grouped by marital status.
upvoted 0 times
...
Carmela
10 months ago
A) It will return a customer's marital status and credit limit grouped by marital status
upvoted 0 times
...
Emile
10 months ago
I agree, it does sound like a bad romance novel. But at least the query is clear in what it's trying to achieve.
upvoted 0 times
...
Emile
10 months ago
D) It will return the median value of customer credit limit grouped by marital status.
upvoted 0 times
...
Emile
11 months ago
A) It will return a customer's marital status and credit limit grouped by marital status
upvoted 0 times
...
...
Deane
11 months ago
I'm not sure, but I think it might be A) It will return a customer's marital status and credit limit grouped by marital status.
upvoted 0 times
...
Jeff
11 months ago
I'm gonna have to go with D on this one. MEDIAN() is a valid function in SQL, and the GROUP BY will give us the median credit limit for each marital status. Easy peasy!
upvoted 0 times
...
Emiko
11 months ago
Well, this is a tricky one. I'm going to go with B - it will return an error. The MEDIAN() function is not a valid function in SQL, so the query should fail.
upvoted 0 times
Estrella
11 months ago
I think you're right. The MEDIAN() function is not valid in SQL.
upvoted 0 times
...
Estrella
11 months ago
B) It will return an error.
upvoted 0 times
...
...
Vicente
11 months ago
I agree with Brittni, because the SQL command includes the MEDIAN function.
upvoted 0 times
...
Carol
12 months ago
Definitely D. The MEDIAN() function is the key here, and the GROUP BY clause will give us the median credit limit for each marital status.
upvoted 0 times
Edna
11 months ago
User 1
upvoted 0 times
...
Gracie
11 months ago
User 2
upvoted 0 times
...
Billy
11 months ago
User 1
upvoted 0 times
...
...
Brittni
12 months ago
I think the answer is D) It will return the median value of customer credit limit grouped by marital status.
upvoted 0 times
...
Elise
12 months ago
I think the answer is D. The MEDIAN() function is used to calculate the median value of a set of numbers, and the query is grouping the results by marital status, so it should return the median credit limit for each marital status.
upvoted 0 times
Merrilee
11 months ago
User 2
upvoted 0 times
...
Izetta
11 months ago
User 1
upvoted 0 times
...
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77