SlideShare a Scribd company logo
2
Most read
1.Difference between Correlated subquery and Nested subquery

      S.No   Correlated subquery                   Nested subquery

      1      Correlated subquery runs once for     Nested subquery runs only once for the
             each row selected by the outer        entire nesting (outer) query. It does not
             query. It contains a reference to a   contain any reference to the outer
             value from the row selected by the    query row.
             outer query.

      2      Correlated subquery follows down      Nested subquery follows top-down
             to top approach i.e., main query      approach i.e., child query is executed
             is executed first(even though         first and then parent .
             parenthesis are present) and then
             child query.                          We can also say:In a subquery
                                                   Outer query condition is used in the
             We can also say: in a Correlated      the inner query.
             subquery,Inner query condition is
             used in the outer query

      4      Example:                              Example:

             select e1.empname, e1.basicsal,       select empname, basicsal, deptno from
             e1.deptno from emp e1                 emp

             where e1.basicsal = (select           where (deptno, basicsal) in (select
             max(basicsal) from emp e2 where       deptno, max(basicsal) from emp group
             e2.deptno = e1.deptno)                by deptno)


2.Difference between Weak Entity Set and Strong Entity Set


      S.No   Weak Entity Set                       Strong Entity Set

      1      An entity set which does not          An entity set which does have a
             possess sufficient attributes to      primary key is called a strong entity
             form a primary key is known as a      set.
             weak entity set.

      2      Member of a weak entity set is a      Member of a strong entity set is a
             subordinate entity.                   dominant entity.

      3      Example:                              Example:

             Specific                              Set of all
             Person,Company,Event,Plant            Persons,Companies,Trees,Holidays
3.Difference between char and varchar data types in Sql Server

      S.No   Char                                 Varchar

      1      Fixed length memory storage          Variable length memory
                                                  storage(Changeable)

      2      CHAR takes up 1 byte per             VARCHAR takes up 1 byte per
             character                            character, + 2 bytes to hold length
                                                  information

      3      Use Char when the data entries in    Use Varchar when the data entries in a
             a column are expected to be the      column are expected to vary
             same size like phone number          considerably in size like address

      4      Ex:                                  Ex:
             Declare test Char(100);              Declare test VarChar(100);
             test="Test" -                        test="Test" -
             Then "test" occupies 100 bytes       Then "test" occupies only 4+2=6
             first four bytes with values and     bytes. first four bytes for value and
             rest with blank data                 other two bytes for variable length
                                                  information.



4.Difference between Sql Server 2005 and Sql Server 2008

      S.No   Sql Server 2005                      Sql Server 2008

      1      XML datatype is introduced.          XML datatype is used.

      2      Cannot encrypt the entire            Can encrypt the entire database
             database.                            introduced in 2008.

      3      Datetime is used for both date and   Date and time are seperately used for
             time.                                date and time

      4      No table datatype is included.       Table datatype introduced.

      5      SSIS is started using.               SSIS avails in this version.

      6      CMS is not available.                Central Management Server(CMS) is
                                                  Introduced.

      7      PBM is not available                 Policy based management(PBM)
                                                  server is Introduced.

More Related Content

PPTX
Constructor in java
PPTX
Packages in java
PPTX
PPS
Interface
PPTX
Chapter 07 inheritance
PPTX
Object Oriented Programming Using C++
PPTX
Type casting in java
PPTX
Dynamic memory allocation in c++
Constructor in java
Packages in java
Interface
Chapter 07 inheritance
Object Oriented Programming Using C++
Type casting in java
Dynamic memory allocation in c++

What's hot (20)

PPTX
Java package
PPTX
Data types in java
PPTX
Tcp/ip server sockets
PPTX
Need of object oriented programming
PPTX
Pointer to function 1
PPTX
Oop c++class(final).ppt
PPT
Operator Overloading
PPTX
Python-Inheritance.pptx
PPTX
Ppt on this and super keyword
PPTX
structured programming
PPTX
Static Data Members and Member Functions
PPTX
Transaction management in DBMS
PPTX
Member Function in C++
PPTX
Data types in python
PPT
friend function(c++)
PPTX
classes and objects in C++
PPTX
[OOP - Lec 19] Static Member Functions
PPTX
Pointers,virtual functions and polymorphism cpp
PPTX
Inheritance in java
Java package
Data types in java
Tcp/ip server sockets
Need of object oriented programming
Pointer to function 1
Oop c++class(final).ppt
Operator Overloading
Python-Inheritance.pptx
Ppt on this and super keyword
structured programming
Static Data Members and Member Functions
Transaction management in DBMS
Member Function in C++
Data types in python
friend function(c++)
classes and objects in C++
[OOP - Lec 19] Static Member Functions
Pointers,virtual functions and polymorphism cpp
Inheritance in java
Ad

Similar to Sql server difference faqs- 4 (20)

PDF
Dotnet programming concepts difference faqs- 2
PDF
JAVA Class Presentation.pdf Vsjsjsnheheh
PPTX
Java String
PPTX
Java Unit 2(Part 1)
PPTX
stream processing engine
PPTX
DATATYPES IN JAVA primitive and nonprimitive.pptx
PDF
Arrays
PPTX
oop 4.pptx
PDF
basics dart.pdf
PDF
CIS 1403 Lab 2- Data Types and Variables
PPTX
Data types ^J variables and arrays in Java.pptx
DOC
PPTX
This is a python data types ppt it is used for bca student also
PPTX
ICOM4015 CIIC4010 Exam Review #1
PPTX
java data typesxssxsxsxsxsxsxsx andvariablres.pptx
DOCX
What Do You Mean By NUnit
PDF
220 runtime environments
PDF
Dotnet difference questions & answers Compiled-1(updated)
PDF
Dotnet difference questions and answers compiled- 1(updated-2)
DOCX
COMPLEX AND USER DEFINED TYPESPlease note that the material on t.docx
Dotnet programming concepts difference faqs- 2
JAVA Class Presentation.pdf Vsjsjsnheheh
Java String
Java Unit 2(Part 1)
stream processing engine
DATATYPES IN JAVA primitive and nonprimitive.pptx
Arrays
oop 4.pptx
basics dart.pdf
CIS 1403 Lab 2- Data Types and Variables
Data types ^J variables and arrays in Java.pptx
This is a python data types ppt it is used for bca student also
ICOM4015 CIIC4010 Exam Review #1
java data typesxssxsxsxsxsxsxsx andvariablres.pptx
What Do You Mean By NUnit
220 runtime environments
Dotnet difference questions & answers Compiled-1(updated)
Dotnet difference questions and answers compiled- 1(updated-2)
COMPLEX AND USER DEFINED TYPESPlease note that the material on t.docx
Ad

More from Umar Ali (20)

PDF
Difference between wcf and asp.net web api
PDF
Difference between ActionResult() and ViewResult()
PDF
Difference between asp.net mvc 3 and asp.net mvc 4
PDF
Difference between asp.net web api and asp.net mvc
PDF
Difference between asp.net web forms and asp.net mvc
PDF
ASP.NET MVC difference between questions list 1
ODT
Link checkers 1
PDF
Affiliate Networks Sites-1
PDF
Technical Video Training Sites- 1
PDF
US News Sites- 1
PDF
How to create user friendly file hosting link sites
PDF
Weak hadiths in tamil
PDF
Bulughul Maram in tamil
PDF
Asp.net website usage and job trends
PDF
Indian news sites- 1
PDF
Photo sharing sites- 1
PDF
File hosting search engines
PDF
Ajax difference faqs compiled- 1
PDF
ADO.NET difference faqs compiled- 1
PDF
Dotnet differences compiled -1
Difference between wcf and asp.net web api
Difference between ActionResult() and ViewResult()
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net web api and asp.net mvc
Difference between asp.net web forms and asp.net mvc
ASP.NET MVC difference between questions list 1
Link checkers 1
Affiliate Networks Sites-1
Technical Video Training Sites- 1
US News Sites- 1
How to create user friendly file hosting link sites
Weak hadiths in tamil
Bulughul Maram in tamil
Asp.net website usage and job trends
Indian news sites- 1
Photo sharing sites- 1
File hosting search engines
Ajax difference faqs compiled- 1
ADO.NET difference faqs compiled- 1
Dotnet differences compiled -1

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Cloud computing and distributed systems.
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation theory and applications.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
MYSQL Presentation for SQL database connectivity
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
Understanding_Digital_Forensics_Presentation.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Cloud computing and distributed systems.
Programs and apps: productivity, graphics, security and other tools
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation theory and applications.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Empathic Computing: Creating Shared Understanding
MYSQL Presentation for SQL database connectivity
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation_ Review paper, used for researhc scholars

Sql server difference faqs- 4

  • 1. 1.Difference between Correlated subquery and Nested subquery S.No Correlated subquery Nested subquery 1 Correlated subquery runs once for Nested subquery runs only once for the each row selected by the outer entire nesting (outer) query. It does not query. It contains a reference to a contain any reference to the outer value from the row selected by the query row. outer query. 2 Correlated subquery follows down Nested subquery follows top-down to top approach i.e., main query approach i.e., child query is executed is executed first(even though first and then parent . parenthesis are present) and then child query. We can also say:In a subquery Outer query condition is used in the We can also say: in a Correlated the inner query. subquery,Inner query condition is used in the outer query 4 Example: Example: select e1.empname, e1.basicsal, select empname, basicsal, deptno from e1.deptno from emp e1 emp where e1.basicsal = (select where (deptno, basicsal) in (select max(basicsal) from emp e2 where deptno, max(basicsal) from emp group e2.deptno = e1.deptno) by deptno) 2.Difference between Weak Entity Set and Strong Entity Set S.No Weak Entity Set Strong Entity Set 1 An entity set which does not An entity set which does have a possess sufficient attributes to primary key is called a strong entity form a primary key is known as a set. weak entity set. 2 Member of a weak entity set is a Member of a strong entity set is a subordinate entity. dominant entity. 3 Example: Example: Specific Set of all Person,Company,Event,Plant Persons,Companies,Trees,Holidays
  • 2. 3.Difference between char and varchar data types in Sql Server S.No Char Varchar 1 Fixed length memory storage Variable length memory storage(Changeable) 2 CHAR takes up 1 byte per VARCHAR takes up 1 byte per character character, + 2 bytes to hold length information 3 Use Char when the data entries in Use Varchar when the data entries in a a column are expected to be the column are expected to vary same size like phone number considerably in size like address 4 Ex: Ex: Declare test Char(100); Declare test VarChar(100); test="Test" - test="Test" - Then "test" occupies 100 bytes Then "test" occupies only 4+2=6 first four bytes with values and bytes. first four bytes for value and rest with blank data other two bytes for variable length information. 4.Difference between Sql Server 2005 and Sql Server 2008 S.No Sql Server 2005 Sql Server 2008 1 XML datatype is introduced. XML datatype is used. 2 Cannot encrypt the entire Can encrypt the entire database database. introduced in 2008. 3 Datetime is used for both date and Date and time are seperately used for time. date and time 4 No table datatype is included. Table datatype introduced. 5 SSIS is started using. SSIS avails in this version. 6 CMS is not available. Central Management Server(CMS) is Introduced. 7 PBM is not available Policy based management(PBM) server is Introduced.