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 / debi

(select * from table2)
minus
(select * from table1)

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the use of custom fields in report?

919


What are the advantages of using third-party tools?

969


You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?

1041


What are the types of sql server?

1031


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

937


What are different types of subquery?

1210


Tell me when is the update_statistics command used?

1079


What is the difference between osql and query analyzer?

972


Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1049


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

885


Can we use where clause in union?

1039


Which command is used for user defined error messages?

1050


How to enter binary string literals in ms sql server?

1126


Explain the difference between clustered and non-clustered index?

904


What is update locks?

865