9
Q:

Which dml command is used in conjunction with @@identity?

A) INSERT and UPDATE B) UPDATE and DELETE
C) SCOPE_IDENTITY and IDENT_CURRENT D) Commit and rollback

Answer:   C) SCOPE_IDENTITY and IDENT_CURRENT



Explanation:

Using automatically incrementing IDENTITY columns is very popular with database developers. You don’t need to explicitly calculate unique surrogate keys when inserting new data, the IDENTITY column functionality does that for you. The IDENTITY feature also allows you to specify useful Seed and Increment properties. When you use an INSERT statement to insert data into a table with an IDENTITY column defined, SQL Server will generate a new IDENTITY value.

 

You can use the @@IDENTITY variable and the SCOPE_IDENTITY and IDENT_CURRENT functions to return the last IDENTITY value that has been generated by SQL Server. This is very useful when you need to return the key for the row that has just been inserted, back to the caller.

Q:

Which packages contain the JDBC classes?

A) java.sql B) java.sl
C) java.jd D) java.jdbc
 
Answer & Explanation Answer: A) java.sql

Explanation:

The Java packages which contain JDBC classes and interfaces is Java.SQL.

Report Error

View Answer Report Error Discuss

6 19253
Q:

Which of the following is a comparison operator in SQL?

A) LIKE B) BETWEEN
C) = D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

LIKE, BETWEEN and = operators are used for comparison in SQL. Comparison operators test whether two expressions are the same. Comparison operators can be used on all expressions except expressions of the text, ntext, or image data types.

Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

2 2180
Q:

Count function in SQL returns the number of

A) groups B) values or rows
C) columns D) distinct values
 
Answer & Explanation Answer: B) values or rows

Explanation:

Count function in SQL returns the number of values or rows.

Report Error

View Answer Report Error Discuss

3 2968
Q:

The SQL keyword(s) ________ is used with wildcards.

A) LIKE only B) IN only
C) NOT IN only D) IN and NOT IN
 
Answer & Explanation Answer: A) LIKE only

Explanation:
Report Error

View Answer Report Error Discuss

2 7998
Q:

A relational database developer refers to a record as

A) a relation B) an attribute
C) a criteria D) a tuple
 
Answer & Explanation Answer: D) a tuple

Explanation:

A relational database developer refers to a record as a tuple.

Report Error

View Answer Report Error Discuss

7 12713
Q:

What is an Extension of Entity Type?

Answer

The collections of entities of a particular Entity Type are grouped together into an entity set.

Report Error

View answer Workspace Report Error Discuss

0 1889
Q:

How many joining conditions are required to join 4 tables in SQL?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: C) 3

Explanation:

To join 'n' tables 'n-1' conditions should be satisfied.

So to join 4 tables 3 conditions should be satisfied.

Report Error

View Answer Report Error Discuss

5 10883
Q:

Data integrity constraints are used to

A) Ensure that duplicate records are not entered into the table B) Prevent users from changing the values stored in the table
C) Control who is allowed access to the data D) Improve the quality of data entered for a specific property like table column
 
Answer & Explanation Answer: D) Improve the quality of data entered for a specific property like table column

Explanation:

Integrity constraints are used to ensure accuracy and consistency of data in a relational database. Data integrity is handled in a relational database through the concept of referential integrity. Many types of integrity constraints play a role in referential integrity (RI).

 

Hence, Data integrity constraints are used to Improve the quality of data entered for a specific property i.e, table column.

Report Error

View Answer Report Error Discuss

0 3079