• Technical
marquee
LATEST DOTNET INTERVIEW QUESTIONS
Saturday, 9 May 2015
• Technical
.NET- Types of threading models in VB.net
- Types of compatability in VB and their usage
- Difference between CDATA and PCDATA in
XML
- What is Assync in XML api which version
of XML parser u worked with
- Types of ASP objects
- Difference between application and
session
- What is web application virtual directory
- Can two web application share a session
and application variable
- If i have a page where i create an
instance of a dll and without invoking any method can I send values to next
page
- Diffeernce between Active Exe and /Dll
- Can the dictionary object be created in
client’s ccope?
- About MTS and it’s purpose
- About writting a query and SP which is
better
- I have a component with 3 parameter and
deployed to client side now i changed my dll method which takes 4 parameter.How
can i deploy this without affecting the clent’s code
- How do you do multithreading application
in VB
- About Global .asax
- Connection pooling in MTS
- If cookies is disabled in clinet browser
will session work
- About XLST
- How do you attach an XSL to an XML in
presenting output
- What is XML
- How do you make your site SSL enabled
- Did you work on IIS adminisdtration
Saturday, 10 January 2015
What are joins?Sometimes we have to select data from two or more tables to make our result complete. We have to perform a join.
How many types of Joins?Joins can be categorized as:
Inner joins (the typical join operation, which uses some comparison operator like = or <>). These include equi-joins and natural joins.
Inner joins use a comparison operator to match rows from two tables based on the values in common columns from each table. For example, retrieving all rows where the student identification number is the same in both the students and courses tables.
Inner joins use a comparison operator to match rows from two tables based on the values in common columns from each table. For example, retrieving all rows where the student identification number is the same in both the students and courses tables.
Outer joins. Outer joins can be a left, a right, or full outer join.
Outer joins are specified with one of the following sets of keywords when they are specified in the FROM clause:
Outer joins are specified with one of the following sets of keywords when they are specified in the FROM clause:
What are the data types in SQL
bigint
|
Binary
|
bit
|
char
|
Cursor
|
datetime
|
Decimal
|
float
|
image
|
Int
|
money
|
Nchar
|
ntext
|
nvarchar
|
Real
|
smalldatetime
|
Smallint
|
smallmoney
|
text
|
Timestamp
|
tinyint
|
Varbinary
|
Varchar
|
uniqueidentifier
|
INDEX
What is Index? It’s purpose?
Indexes in databases are similar to indexes in books. In a database, an index allows the database program to find data in a table without scanning the entire table. An index in a database is a list of values in a table with the storage locations of rows in the table that contain each value. Indexes can be created on either a single column or a combination of columns in a table and are implemented in the form of B-trees. An index contains an entry with one or more columns (the search key) from each row in a table. A B-tree is sorted on the search key, and can be searched efficiently on any leading subset of the search key. For example, an index on columns A, B, C can be searched efficiently on A, on A, B, and A, B, C.
Indexes in databases are similar to indexes in books. In a database, an index allows the database program to find data in a table without scanning the entire table. An index in a database is a list of values in a table with the storage locations of rows in the table that contain each value. Indexes can be created on either a single column or a combination of columns in a table and are implemented in the form of B-trees. An index contains an entry with one or more columns (the search key) from each row in a table. A B-tree is sorted on the search key, and can be searched efficiently on any leading subset of the search key. For example, an index on columns A, B, C can be searched efficiently on A, on A, B, and A, B, C.
Index Optimization tips
2 tables
Employee
|
Phone
|
empid
empname salary mgrid |
empid
phnumber |
Select all employees who doesn't have phone?
SELECT empname
FROM Employee
WHERE (empid NOT IN
(SELECT DISTINCT empid
FROM phone))
SELECT empname
FROM Employee
WHERE (empid NOT IN
(SELECT DISTINCT empid
FROM phone))
Transact-SQL Optimization Tips
Use views and stored procedures instead of
heavy-duty queries.
This can reduce network traffic, because your client will send to server only stored procedure or view name (perhaps with some parameters) instead of large heavy-duty queries text. This can be used to facilitate permission management also, because you can restrict user access to table columns they should not see.
This can reduce network traffic, because your client will send to server only stored procedure or view name (perhaps with some parameters) instead of large heavy-duty queries text. This can be used to facilitate permission management also, because you can restrict user access to table columns they should not see.
Subscribe to:
Posts (Atom)
Popular Posts
-
ASP.NET QUESTIONS 1) On which of the operating system below ASP.NET can run? a) Windows XP Professional ...
-
T-SQL Queries 2 tables Employee Phone empid empname salary mgrid empid phnumber Select all employees...
-
76) Select the control which does not have any visible interface a) Datalist b) DropdownList ...
-
1. What is a Web service ? How it is different from remoting? 2. Diiferent life cycle events phases in asp.net web form. 3. OOPS conc...
-
56) Which of the following is true ? a) IsPostBack is a method of System.UI.Web.Page class b) IsPostBa...
-
Interview Questions .NET Windows Forms 1) Write a simple Windows Forms MessageBox statement? 2) Can you write a class witho...
-
126) Which of the following denote ways to manage state in an ASP.Net Application? a) Session objects b)...
-
Asp.net Page Life cycle This is a transcript of a programming manual, to refresh my memory, and it’s always good to RTFM. As a contro...
-
1. What is caching.? 2. Types of cahing? 3. What is cache Block? 4. What are indexers? 5. What is difference between Namespace and assembl...
-
21) To set page title dynamically in ASP.NET which of the following is used ? a) None of the above b) ...