Database Administration Questions


Q:

What occurs once in a minute twice in a moment?

Answer

Here the letter 'M' appears once in Minute and twice in a MoMent.

Report Error

View answer Workspace Report Error Discuss

5 2324
Q:

The multi part identifier could not be bound is

Answer

One of the most common errors that you might face in join statements is 


 


Server: Msg 4104, Level 16, State 1, Line 1
The multi-part identifier could not be bound.


 


A multipart identifier is any description of a field or table that contains multiple parts - for instance MyTable.SomeRow - if it can't be bound that means there's something wrong with it - either you've got a simple typo, or a confusion between table and column. It can also be caused by using reserved words in your table or field names and not surrounding them with [].


 


The main reason for this error is that the source table cannot be found, for example if you have statement such as Table1.OrderDate, and then if you get error above, this means that Table1 cannot be found in the query. Sometimes you can see that source table exists in the query, but T-SQL cannot understand it, especially when you write join statements.

Report Error

View answer Workspace Report Error Discuss

0 2322
Q:

Which is a reserved word in the java programming language?

A) Variable B) Identifier
C) Keyword D) Main
 
Answer & Explanation Answer: C) Keyword

Explanation:

Reserved words are words that cannot be used as object or variable names in a Java program because they're already used by the syntax of the Java programming language.

Java reserved words are keywords that are reserved by Java functions or other uses that cannot be used as identifiers (e.g., variable names, function names, class names).

If a reserved word was used as a variable you would get an error or unexpected result.

 

Examples : Int, Long, Abstract, Class, Break, Catch, Case, Public, Static, Void,...

 

 

Report Error

View Answer Report Error Discuss

1 2319
Q:

Choose the sentence that contains a relative pronoun?

A) That is my books bag B) Some boys are coming for tution
C) The girl, whom you have met yesterday is my sister D) Those are not your things
 
Answer & Explanation Answer: C) The girl, whom you have met yesterday is my sister

Explanation:

Here in the given options, The girl, whom you have met yesterday is my sister is the sentence which has relative pronoun.

 

The pronoun which is used to connect a clause or phrase to a noun or pronoun is called as relative pronoun.

 

The most common relative pronouns are who, whom, whose, which, and that. Sometimes when and where can also be used as relative pronouns.

Report Error

View Answer Report Error Discuss

1 2314
Q:

What is the difference between creating String as new() and literal ?

Answer

When we create string with new() Operator, it’s created in heap and not added into string pool while String created using literal are created in String pool itself which exists in PermGen area of heap.



String s = new String("Test");

does not put the object in String pool , we need to call String.intern() method which is used to put them into String pool explicitly. its only when you create String object as String literal e.g. String s = "Test" Java automatically put that into String pool.

Report Error

View answer Workspace Report Error Discuss

1 2313
Q:

Name one problem that led to the civil war.

A) Slavery B) Economic reasons
C) State's Rights D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:
Report Error

View Answer Report Error Discuss

0 2303
Q:

The more you take the more you leave behind. What is it?

Answer

Footsteps. 


Yes, as you walk forward, you will leave the footstep behind you.

Report Error

View answer Workspace Report Error Discuss

8 2301
Q:

Define Executive Plan in Database SQL ?

Answer

Executive plan can be defined as:


* SQL Server caches collected procedure or the plan of query execution and used thereafter by subsequent calls.


* An important feature in relation to performance enhancement.


* Data execution plan can be viewed textually or graphically.

Report Error

View answer Workspace Report Error Discuss

6 2287