الانتقال إلى المحتوى

أسئلة في امتحان Sql حيرتني


ANK

Recommended Posts

السلام عليكم
وجدت مجموعة من الاسئلة شوشتني لان الحلول التي وضعوها لها لم اقتنع بها، فارجو افادتي يا اخوان لاني مقبل على دخول الامتحان ، الاسئلة هي :


Which four statments correctly describe functions that are available in SQL? (Choose four)
A) INSTR returns the numeric position of a named character
:lol: NVL2 returns the first non-null expression in the expression list
C) TRUNCATE rounds the column, expression, or value to n decimal places
D) DECODE translates an expression after comparing it to each search value
E) TRIM trims the heading of trailing characters (or both) from a character string
F) NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal
G) NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal

Answers : A,D,E,G

ولكن اعتقد ان الاجابات الصحيحة لهذا السؤال هي
A,B,E,G

Which two statements accurately describe a role? (Choose two)
A) A role can be given to a maximum of 1000 users
:lol: A user can have access to a maximum of 10 roles
C) A role can have a maximum of 100 privileges contained in it
D) Privileges are given to a role by using the create role statement
E) A role is a named group of related privileges that can be granted to the user
F) A user can have access to several roles, and several users can be assigned the same role

Answers: D,F
ولكن اعتقد الاجابات الصحيحة هي:
E,F

ما هي الحلول الصحيحة؟

رابط هذا التعليق
شارك

Salam

Sorry I'm writing in english because I dont have arabic leters on my keyboard!!!!!!!

Regarding the first question, the correct answers are: A,D,E,G
Because decode is working like IF statement by comparing a specific value to other values.
But NVL2 is doing the following:

NVL2( string1, value_if_NOT_null, value_if_null )
string1 is the string to test for a null value.
value_if_NOT_null is the value returned if string1 is not null.
value_if_null is the value returned if string1 is null.

And regarding the second question, the correct answers are as you said: E,F

Best of luck.

Qusai.

رابط هذا التعليق
شارك

الأخ الكريم
الإجابات الموجودة في امتحانات testking وغيرها , فيها الكثير من الأخطاء , لا تثق كثيرا بإجاباتهم , كن واثقا من دراستك وتجربتك .
هناك الكثير من المشاركات المماثلة في المنتدى , استخدم خاصية البحث .
بالتوفيق

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية