What is the difference between in and exists.
Ex: select * from emp where empno in(....) and
select * from emp where empno exists(....)
What is the difference between a Join and Union and Union
and UnionAll.
Answer Posted / saradhi
Just like JOINS, UNION combines data into a single record-
set but vertically by adding rows from another table. JOINS
combine data horizontally by adding columns from another
table.
UNION insures you get DISTINCT records from both the tables.
UNION ALL pulls out all records from both the tables with
duplicates.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain use of expression builder.
Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.
How we create SQL Server 2005 Reporting Services ? Give me Sample
Explain how dts is used to extract, transform and consolidate data?
Characterize join and name diverse sorts of joins?
How to create stored procedures with parameters in ms sql server?
how to do partition in sqlserver
Define right outer join?
What do we have to check in database testing?
What is a trigger what are the advantages of trigger?
What is identity?
Explain sql server service broker?
What the different types of Replication and why are they used?
as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration
How do I change my passwords (database, LDAP, and so on) without causing an outage?