dbTalk Databases Forums  

Cross-checking data in 2 tables

comp.database.ms-sqlserver comp.database.ms-sqlserver


Discuss Cross-checking data in 2 tables in the comp.database.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Astra
 
Posts: n/a

Default Cross-checking data in 2 tables - 11-02-2004 , 12:02 PM






Dear All

I have 2 SQL tables called STOCK and STOCKDESCS.

The common field is STOCKID.

In the STOCK table I have all of the rows that I have posted, but my
STOCKDESCS table is short of the same rows.

Do you know of a quick query I could use that basically lists the following

(table STOCK) (table STOCKDESCS)
(field STOCKID) (field STOCKID)
IVP IVP
STP STP
JVC2 JVC2
TOSH4 <blank and therefore a missing row>
MJB MJB
V566 <blank and therefore a missing row>
KBG KBG
etc.... etc....

Many thanks for any help you can give.

Rgds

Robbie









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.