Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Oracle Certified Professional Exams (OCP & OCA) >> Which expression finds the number of different countries represented in the CUSTOMERS table?

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Which expression finds the number of different countries represented in the CUSTOMERS table?
 naidu  Posted: Dec 27, 2006 09:59:41 AM

 Total Post: 85
 Joined: Nov, 2006






 The CUSTOMERS table has these columns:
CUSTOMER_ID NUMBER (4) NOT NULL
CUSTOMER_NAME VARCHAR2 (100) NOT NULL
STREET_ADDRESS VARCHAR2 (150)
CITY_ADDRESS VARHCAR2 (50)
STATE_ADDRESS VARCHAR2 (50)
PROVINCE_ADDRESS VARCHAR2 (50)
COUNTRY_ADDRESS VARCHAR2 (50)
POSTAL_CODE VARCHAR2 (12)
CUSTOMER_PHONE VARCHAR2 (20)
The CUSTOMER_ID column is the primary key for the table.
You need to determine how dispersed your customer base is.
Which expression finds the number of different countries represented in the CUSTOMERS table?
A. COUNT (UPPER (country_address))
B. COUNT (DIFF (UPPER (country_address)))
C. COUNT (UNIQUE (UPPER (country_address)))
D. COUNT DISTINTC UPPER (country_address)
E. COUNT (DISTINTC (UPPER (country_address)))
Answer:

 Jayanta
Posted: Dec 27, 2006 10:58:54 AM  

 Total Post: 479
 Joined: Feb, 2006






 
e

 naidu
Posted: Dec 28, 2006 01:11:15 AM  

 Total Post: 85
 Joined: Nov, 2006






 
Ans: E is wrong answer
because COUNT(DISTINTC(UPPER(country_address)))
here DISTINCT is wrong
Ans is C.
COUNT(UNIQUE(UPPER(country_address)))

 Jayanta
Posted: Dec 28, 2006 01:22:50 AM  

 Total Post: 479
 Joined: Feb, 2006






 
hello naidu!

i dont know how u find that option e is wrong. will u plz explain a little bit elaborately, to make my understanding clear.
here i am giving my explanation against the option e:

the syntax of count is count({*|[distinct|all]expression})
and group functions can be nested to a depth of two.

expectingur explanation

with regards
jayanta

 naidu
Posted: Dec 28, 2006 02:00:19 AM  

 Total Post: 85
 Joined: Nov, 2006






 
can u plz see E is have DISTINCT spel is wrong
in case DISTINCT we can use UNIQUE
i hope this is right
if me is anything wrong let me know that Plz


 Jayanta
Posted: Dec 28, 2006 03:55:08 AM  

 Total Post: 479
 Joined: Feb, 2006






 
dear naidu,
u r supposed to write oracle not english literature
hope the source from where u got the question have some typing mistake.
and unique is a constraint name can't be used in this manner.

hope this helps.
with regards
jayanta

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software