Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

hi,

how to match retrieve the unmatched records from 2 tables
in which we dont have any primary key. example : table1 has
1,2,3,4,5 and table2 has 1,2,3,4,5,6,7,8,9,10 and i want
the numbers from 6 to 10 to be displayed and should not
come as null. i need the numbers. please reply as soon as
possible.

Answer Posted / madhu sudhan g

Hiii

Its very simple to get the records that doesn't match lets
table1 is No1 and having A column values 1,2,3,4,5 and Table2
is No2 having column B values 1,2,3,4,5,6,7,8,9,10
Now Query is

select B from NO2 where B NOT IN(select A from NO1)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where are full-text indexes stored?

996


How many types of dimensions are there and what are they? : sql server analysis services, ssas

1072


What is join and name different type of joins?

1051


How to set a database state to offline in ms sql server?

1046


What is bit data type? What's the information that can be stored inside a bit column?

924


What is difference in performance between insert top (n) into table and using top with insert?

1052


What does this statement do @@rowcount?

975


What are four major operators that can be used to combine conditions on a where clause?

1054


What are subquery and its properties?

1049


What can be used instead of trigger?

1156


What is a raid and what are different types of raid configurations?

1267


How do database indexes work?

1014


Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

1009


What are the dmvs? : sql server database administration

1065


Explain steps of normalization?

1008