Professional Documents
Culture Documents
Local variables:
These variables can be used or exist only inside the function. These variables are not
used or referred by any other function.
Global variables:
These variables are the variables which can be accessed throughout the program.
Global variables cannot be created whenever that function is called.
Auto increment keyword allows the user to create a unique number to get generated
whenever a new record is inserted into the table.
This keyword is usually required whenever PRIMARY KEY is used.
AUTO INCREMENT keyword can be used in Oracle and IDENTITY keyword can
be used in SQL SERVER.
Q64. What are the different authentication modes in SQL Server? How can it
be changed?
Windows mode and Mixed Mode – SQL and Windows. You can go to the below
steps to change authentication mode in SQL Server:
Click Start> Programs> Microsoft SQL Server and click SQL Enterprise
Manager to run SQL Enterprise Manager from the Microsoft SQL Server
program group.
Select SQL Server Configuration Properties, and choose the Security page.
Q65. What are STUFF and REPLACE function?
REPLACE function: This function is used to replace the existing characters of all
the occurrences. Syntax:
REPLACE (string_expression, search_string, replacement_string)
Here every search_string in the string_expression will be replaced with the
replacement_string.
Q.75. What do you mean by Stored Techniques? How would we use it?
Ans. A stored procedure in SQL is basically statements that are collected that are
used as the function. We can make these put away procedure already before using it
and can execute these them wherever we require and furthermore apply some
contingent rationale to it. Put away systems are additionally used to lessen arrange
movement and enhance the execution.
Syntax:
1. CREATE Technique Technique_Name
2. (
3. /Parameters
4. )
5. AS
6. Start
7. SQL statements in stored methods to refresh/recover records
8. END
Q.76 What do we have to check in Database Testing?
Ans. The following attributes for testing –
Database Connectivity
Constraint Check
Required Application Field and its size
Data Retrieval and Processing With DML operations
Stored Procedures
Functional flow
Q87. Is it possible in SQL table to have more than one foreign key?
Ans. Yes, it is possible but it will always have only one primary key.
Q88. Characterize join and name diverse sorts of joins?
Ans. Join is used to get information from related at least two tables. It returns lines
where there is no less than one match in both the tables incorporated into the join.
Read more here.
Kind of joins are:
Right Join
External Join
Full Join
Cross Join
Self Join.
Q89. Explain SQL Delete command.
Delete is used to erase a column or lines from a table in light of the predetermined
condition.
The language SYNTAX is as per the following:
1. DELETE FROM table_name
2. WHERE <Condition>