Deck 8: Advanced Sql

ملء الشاشة (f)
exit full mode
سؤال
PL/SQL blocks have a section used to declare variables.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A sequence is not associated with a table and can be dropped from a database with a DROP SEQUENCE command.
سؤال
Each statement inside the PL/SQL code must end with a period (".").
سؤال
In Oracle, you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.
سؤال
An inequality condition is also known as a natural join and an equality condition is also called a theta join.
سؤال
A statement-level trigger is assumed if a designer omits the FOR EACH ROW keywords.
سؤال
The most useful feature of PL/SQL blocks is that they let a designer create code that can be named, stored, and executed by the DBMS.
سؤال
Triggers can only be used to update table values.
سؤال
A persistent stored module is stored and executed on the database client machine.
سؤال
To remedy the lack of procedural functionality in SQL, and to provide some standardization within the many vendor offerings, the SQL-99 standard defined the use of persistent stored modules.
سؤال
Just like database triggers, stored procedures are stored in the database.
سؤال
One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.
سؤال
Every PL/SQL block must be given a name.
سؤال
One of the disadvantages of stored procedures is that they increase network traffic.
سؤال
Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.
سؤال
A trigger is executed as part of the transaction that triggered it.
سؤال
To test a trigger, one should use the EXECUTE TRIGGER command.
سؤال
A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.
سؤال
UNION, INTERSECT, and MINUS work properly only if relations are intersect-compatible, which means that the names of the relation attributes and their data types must be different.
سؤال
SQL supports the conditional execution of procedures (IF-THEN-ELSE statements) that are typically supported by a programming language.
سؤال
How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?

A) 8
B) 18
C) 26
D) 144
سؤال
Stored procedures must have at least one argument.
سؤال
"Linked SQL" is a term used to refer to SQL statements that are contained within an application programming language such as COBOL, C++, ASP, Java, or ColdFusion.
سؤال
A(n) join will select only the rows with matching values in the common attribute(s).

A) natural
B) cross
C) full
D) outer
سؤال
The following SQL statement uses a(n) . SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;

A) set operator
B) natural join
C) "old-style" join
D) procedural statement
سؤال
MySQL allows multiple triggering conditions per trigger.
سؤال
Stored procedures are executed using the EXEC command.
سؤال
A row-level trigger is assumed if we omit the FOR EACH ROW keywords and a statement-level trigger required the use of the FOR EACH ROW keyword.
سؤال
Stored procedures help reduce code duplication by means of code isolation and code sharing.
سؤال
Cursor-style processing involves retrieving data from the cursor, one row at a time.
سؤال
A relational join operation merges rows from two tables.
سؤال
The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.
سؤال
A trigger definition consists of the triggering timing, the triggering event, the triggering level, and the triggering action.
سؤال
Cursors are held in a reserved memory area in the client computer.
سؤال
The statement SELECT * FROM T1, T2 produces a(n) join.

A) cross
B) natural
C) equi-
D) full
سؤال
Variables can be declared inside a stored procedure.
سؤال
A stored function is another name for a stored procedure.
سؤال
When using a(n) join, only rows that meet the given criteria are returned.

A) full
B) inner
C) outer
D) set
سؤال
An explicit cursor must return two or more rows.
سؤال
An implicit cursor is automatically created in procedural SQL when the SQL statement returns only one value.
سؤال
In the context of SELECT subquery types, a is returned when an UPDATE subquery is used.

A) NULL
B) single value
C) list of values
D) virtual table
سؤال
In subquery terminology, the first query in the SQL statement is known as the query.

A) outer
B) left
C) inner
D) base
سؤال
In Oracle, the function converts a date to a character string.

A) CONVERT()
B) TO_DATE
C) TO_CHAR()
D) TO_STRING()
سؤال
When using the Oracle TO_DATE function, the code represents a three-letter month name.

A) MON
B) MM3
C) MONTH
D) MM
سؤال
If a designer wishes to create an inner join, but the two tables do not have a commonly named attribute, he can use a(n) _____ clause.

A) OF
B) USING
C) HAS
D) JOIN ON
سؤال
"Union-compatible" means that the .

A) names of the relation attributes can be different, but the data types must be alike
B) names of the relation attributes must be the same, but the data types can be different
C) names of the relation attributes must be the same and their data types must be alike
D) number of attributes must be the same, but the names and data types can be different
سؤال
is a string function that returns the number of characters in a string value.

A) LENGTH
B) SUBSTRING
C) CONCAT
D) UCASE
سؤال
is a relational set operator.

A) MINUS
B) PLUS
C) ALL
D) EXISTS
سؤال
The Oracle string concatenation function is .

A) CONCAT
B) +
C) ||
D) &&
سؤال
When using the Oracle TO_NUMBER function to convert a character string into a number, represents a digit.

A) 0
B) 9
C) $
D) #
سؤال
The function returns the current system date in MS Access.

A) TO_DATE()
B) SYSDATE()
C) DATE()
D) TODAY()
سؤال
The ANSI standard defines type(s) of outer join(s)

A) one
B) two
C) three
D) four
سؤال
A join returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched values.

A) natural
B) cross
C) full outer
D) left outer
سؤال
Which of the following is a feature of a correlated subquery?
A) The inner subquery executes first.
B) The outer subquery initiates the process of execution in a subquery.

A) The inner subquery initiates the process of
D) The outer subquery executes independent execution in a subquery. of the inner subquery.
سؤال
In a subquery, the query is executed first.

A) left
B) right
C) inner
D) outer
سؤال
A is a query inside a query.

A) subquery
B) range query
C) join
D) set query
سؤال
The syntax for a left outer join is .

A) SELECT column-list FROM table1 OUTER JOIN table2 LEFT WHERE join-condition
B) SELECT column-list FROM table1 LEFT [OUTER] JOIN table2 ON join-condition
C) SELECT column-list WHERE LEFT table1 = table 2
D) SELECT column-list FROM table1 LEFT table2 [JOIN] WHERE join-condition
سؤال
All join conditions are connected through a(n) logical operator.

A) NOR
B) OR
C) AND
D) NOT
سؤال
The Oracle function returns the current date.

A) DATE
B) SYSDATE
C) CURRENT_DATE
D) TO_DATE
سؤال
A(n) join returns not only the rows matching the join condition (that is, rows with matching values in the common columns) but also the rows with unmatched values.

A) outer
B) inner
C) equi-
D) cross
سؤال
The syntax for the UNION query is .

A) query + query
B) UNION (query, query)
C) UNION: query query
D) query UNION query
سؤال
Oracle recommends for creating audit logs.

A) triggers
B) stored procedures
C) stored functions
D) tables
سؤال
A(n) is a block of code containing standard SQL statements and procedural extensions that is stored and executed at the DBMS server.

A) PSM
B) PLS
C) SQL Statement
D) PMR
سؤال
In Oracle, make(s) it possible to merge SQL and traditional programming constructs, such as variables, conditional processing (IF-THEN-ELSE), basic loops (FOR and WHILE loops,) and error trapping.

A) cursor-style processing
B) stored procedures
C) embedded SQL
D) Procedural Language SQL
سؤال
The data type is considered compatible with VARCHAR(35).

A) DATE
B) INT
C) TINYINT
D) CHAR(15)
سؤال
Assume a designer is using the UNION operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Jenna and Howard are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION operator?

A) 7
B) 10
C) 15
D) 17
سؤال
Which of the following is a feature of oracle sequences?
A) Oracle sequences are tied to columns and tables.
B) Oracle sequences generate a character string that can be assigned to tables.

A) An oracle sequence uses the identity column
D) An oracle sequence can be created and deleted property to automatically number rows. anytime.
سؤال
The Oracle equivalent to an MS Access AutoNumber is a(n) .

A) auto-number
B) sequence
C) TO_NUMBER function
D) trigger
سؤال
The statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
سؤال
is a cursor attribute that returns True if the last FETCH returned a row, and FALSE if not.

A) %ROWCOUNT
B) %NOTFOUND
C) %FOUND
D) %ISOPEN
سؤال
The Oracle function compares an attribute or expression with a series of values and returns an associated value or a default value if no match is found.

A) NVL
B) TO_CHAR
C) DECODE
D) CONVERT
سؤال
The operator could be used in place of MINUS if the DBMS does not support it.

A) IN
B) NOT IN
C) AND
D) UNION
سؤال
Assume you are using the INTERSECT operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the INTERSECT operator?

A) 0
B) 2
C) 7
D) 10
سؤال
Assume you are using the MINUS operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the MINUS operator?

A) 0
B) 2
C) 8
D) 10
سؤال
The PL/SQL block starts with the section.

A) IS
B) OPEN
C) DECLARE
D) BEGIN
سؤال
The operator could be used in place of INTERSECT if the DBMS does not support it.

A) IN
B) OF
C) AND
D) UNION
سؤال
The statement combines rows from two queries and excludes duplicates.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
سؤال
Assume you are using the UNION ALL operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION ALL operator?

A) 7
B) 10
C) 15
D) 17
سؤال
The data type is compatible with NUMBER.

A) VARCHAR(15)
B) SMALLINT
C) DATE
D) CHAR(10)
سؤال
The pseudo-column is used to select the next value from a sequence.

A) CURRVAL
B) NEXTVAL
C) NEXT
D) GET_NEXT
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/109
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 8: Advanced Sql
1
PL/SQL blocks have a section used to declare variables.
True
2
A sequence is not associated with a table and can be dropped from a database with a DROP SEQUENCE command.
True
3
Each statement inside the PL/SQL code must end with a period (".").
False
4
In Oracle, you can use the SQL*Plus command SHOW ERRORS to help you diagnose errors found in PL/SQL blocks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
5
An inequality condition is also known as a natural join and an equality condition is also called a theta join.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
6
A statement-level trigger is assumed if a designer omits the FOR EACH ROW keywords.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
7
The most useful feature of PL/SQL blocks is that they let a designer create code that can be named, stored, and executed by the DBMS.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
8
Triggers can only be used to update table values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
9
A persistent stored module is stored and executed on the database client machine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
10
To remedy the lack of procedural functionality in SQL, and to provide some standardization within the many vendor offerings, the SQL-99 standard defined the use of persistent stored modules.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
11
Just like database triggers, stored procedures are stored in the database.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
12
One of the major advantages of stored procedures is that they can be used to encapsulate and represent business transactions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
13
Every PL/SQL block must be given a name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
14
One of the disadvantages of stored procedures is that they increase network traffic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
15
Automating business procedures and automatically maintaining data integrity and consistency are trivial in a modern business environment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
16
A trigger is executed as part of the transaction that triggered it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
17
To test a trigger, one should use the EXECUTE TRIGGER command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
18
A trigger is procedural SQL code that is automatically invoked by the RDBMS upon the occurrence of a given data manipulation event.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
19
UNION, INTERSECT, and MINUS work properly only if relations are intersect-compatible, which means that the names of the relation attributes and their data types must be different.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
20
SQL supports the conditional execution of procedures (IF-THEN-ELSE statements) that are typically supported by a programming language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
21
How many rows would be returned from a cross join of tables A and B, if A contains 8 rows and B contains 18?

A) 8
B) 18
C) 26
D) 144
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
22
Stored procedures must have at least one argument.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
23
"Linked SQL" is a term used to refer to SQL statements that are contained within an application programming language such as COBOL, C++, ASP, Java, or ColdFusion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
24
A(n) join will select only the rows with matching values in the common attribute(s).

A) natural
B) cross
C) full
D) outer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
25
The following SQL statement uses a(n) . SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;

A) set operator
B) natural join
C) "old-style" join
D) procedural statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
26
MySQL allows multiple triggering conditions per trigger.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
27
Stored procedures are executed using the EXEC command.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
28
A row-level trigger is assumed if we omit the FOR EACH ROW keywords and a statement-level trigger required the use of the FOR EACH ROW keyword.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
29
Stored procedures help reduce code duplication by means of code isolation and code sharing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
30
Cursor-style processing involves retrieving data from the cursor, one row at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
31
A relational join operation merges rows from two tables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
32
The NEXT command for a cursor is used to retrieve a row from the cursor and place it in the respective PL/SQL variables.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
33
A trigger definition consists of the triggering timing, the triggering event, the triggering level, and the triggering action.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
34
Cursors are held in a reserved memory area in the client computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
35
The statement SELECT * FROM T1, T2 produces a(n) join.

A) cross
B) natural
C) equi-
D) full
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
36
Variables can be declared inside a stored procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
37
A stored function is another name for a stored procedure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
38
When using a(n) join, only rows that meet the given criteria are returned.

A) full
B) inner
C) outer
D) set
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
39
An explicit cursor must return two or more rows.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
40
An implicit cursor is automatically created in procedural SQL when the SQL statement returns only one value.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
41
In the context of SELECT subquery types, a is returned when an UPDATE subquery is used.

A) NULL
B) single value
C) list of values
D) virtual table
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
42
In subquery terminology, the first query in the SQL statement is known as the query.

A) outer
B) left
C) inner
D) base
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
43
In Oracle, the function converts a date to a character string.

A) CONVERT()
B) TO_DATE
C) TO_CHAR()
D) TO_STRING()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
44
When using the Oracle TO_DATE function, the code represents a three-letter month name.

A) MON
B) MM3
C) MONTH
D) MM
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
45
If a designer wishes to create an inner join, but the two tables do not have a commonly named attribute, he can use a(n) _____ clause.

A) OF
B) USING
C) HAS
D) JOIN ON
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
46
"Union-compatible" means that the .

A) names of the relation attributes can be different, but the data types must be alike
B) names of the relation attributes must be the same, but the data types can be different
C) names of the relation attributes must be the same and their data types must be alike
D) number of attributes must be the same, but the names and data types can be different
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
47
is a string function that returns the number of characters in a string value.

A) LENGTH
B) SUBSTRING
C) CONCAT
D) UCASE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
48
is a relational set operator.

A) MINUS
B) PLUS
C) ALL
D) EXISTS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
49
The Oracle string concatenation function is .

A) CONCAT
B) +
C) ||
D) &&
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
50
When using the Oracle TO_NUMBER function to convert a character string into a number, represents a digit.

A) 0
B) 9
C) $
D) #
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
51
The function returns the current system date in MS Access.

A) TO_DATE()
B) SYSDATE()
C) DATE()
D) TODAY()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
52
The ANSI standard defines type(s) of outer join(s)

A) one
B) two
C) three
D) four
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
53
A join returns rows with matching values and includes all rows from both tables (T1 and T2) with unmatched values.

A) natural
B) cross
C) full outer
D) left outer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
54
Which of the following is a feature of a correlated subquery?
A) The inner subquery executes first.
B) The outer subquery initiates the process of execution in a subquery.

A) The inner subquery initiates the process of
D) The outer subquery executes independent execution in a subquery. of the inner subquery.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
55
In a subquery, the query is executed first.

A) left
B) right
C) inner
D) outer
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
56
A is a query inside a query.

A) subquery
B) range query
C) join
D) set query
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
57
The syntax for a left outer join is .

A) SELECT column-list FROM table1 OUTER JOIN table2 LEFT WHERE join-condition
B) SELECT column-list FROM table1 LEFT [OUTER] JOIN table2 ON join-condition
C) SELECT column-list WHERE LEFT table1 = table 2
D) SELECT column-list FROM table1 LEFT table2 [JOIN] WHERE join-condition
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
58
All join conditions are connected through a(n) logical operator.

A) NOR
B) OR
C) AND
D) NOT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
59
The Oracle function returns the current date.

A) DATE
B) SYSDATE
C) CURRENT_DATE
D) TO_DATE
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
60
A(n) join returns not only the rows matching the join condition (that is, rows with matching values in the common columns) but also the rows with unmatched values.

A) outer
B) inner
C) equi-
D) cross
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
61
The syntax for the UNION query is .

A) query + query
B) UNION (query, query)
C) UNION: query query
D) query UNION query
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
62
Oracle recommends for creating audit logs.

A) triggers
B) stored procedures
C) stored functions
D) tables
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
63
A(n) is a block of code containing standard SQL statements and procedural extensions that is stored and executed at the DBMS server.

A) PSM
B) PLS
C) SQL Statement
D) PMR
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
64
In Oracle, make(s) it possible to merge SQL and traditional programming constructs, such as variables, conditional processing (IF-THEN-ELSE), basic loops (FOR and WHILE loops,) and error trapping.

A) cursor-style processing
B) stored procedures
C) embedded SQL
D) Procedural Language SQL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
65
The data type is considered compatible with VARCHAR(35).

A) DATE
B) INT
C) TINYINT
D) CHAR(15)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
66
Assume a designer is using the UNION operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Jenna and Howard are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION operator?

A) 7
B) 10
C) 15
D) 17
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
67
Which of the following is a feature of oracle sequences?
A) Oracle sequences are tied to columns and tables.
B) Oracle sequences generate a character string that can be assigned to tables.

A) An oracle sequence uses the identity column
D) An oracle sequence can be created and deleted property to automatically number rows. anytime.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
68
The Oracle equivalent to an MS Access AutoNumber is a(n) .

A) auto-number
B) sequence
C) TO_NUMBER function
D) trigger
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
69
The statement in SQL combines rows from two queries and returns only the rows that appear in the first set but not in the second.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
70
is a cursor attribute that returns True if the last FETCH returned a row, and FALSE if not.

A) %ROWCOUNT
B) %NOTFOUND
C) %FOUND
D) %ISOPEN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
71
The Oracle function compares an attribute or expression with a series of values and returns an associated value or a default value if no match is found.

A) NVL
B) TO_CHAR
C) DECODE
D) CONVERT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
72
The operator could be used in place of MINUS if the DBMS does not support it.

A) IN
B) NOT IN
C) AND
D) UNION
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
73
Assume you are using the INTERSECT operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the INTERSECT operator?

A) 0
B) 2
C) 7
D) 10
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
74
Assume you are using the MINUS operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the MINUS operator?

A) 0
B) 2
C) 8
D) 10
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
75
The PL/SQL block starts with the section.

A) IS
B) OPEN
C) DECLARE
D) BEGIN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
76
The operator could be used in place of INTERSECT if the DBMS does not support it.

A) IN
B) OF
C) AND
D) UNION
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
77
The statement combines rows from two queries and excludes duplicates.

A) UNION
B) UNION ALL
C) INTERSECT
D) MINUS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
78
Assume you are using the UNION ALL operator to combine the results from two tables with identical structure, CUSTOMER and CUSTOMER_2. The CUSTOMER table contains 10 rows, while the CUSTOMER_2 table contains 7 rows. Customers Dunne and Olowski are included in the CUSTOMER table as well as in the CUSTOMER_2 table. How many records are returned when using the UNION ALL operator?

A) 7
B) 10
C) 15
D) 17
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
79
The data type is compatible with NUMBER.

A) VARCHAR(15)
B) SMALLINT
C) DATE
D) CHAR(10)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
80
The pseudo-column is used to select the next value from a sequence.

A) CURRVAL
B) NEXTVAL
C) NEXT
D) GET_NEXT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 109 في هذه المجموعة.