Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Compare records between table Expand / Collapse
Author
Message
Posted Friday, September 18, 2009 1:31 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, August 30, 2013 1:54 AM
Points: 39, Visits: 118
I have one table test where million of records.
The table is not having any primary column.
The columns in table are positionid,ID1,ID2,Event,DrC,Acct,Amount,
valuedate, and Ccyt.
There are lot of records for valuedate= 20070731 and 20070724. There are other valuedate also.
But i want to fetch all the different records except valuedate for these two value date (20070731 and 20070724) in table.

Please provide me query. I am using sql server 2005.
Post #790145
Posted Friday, September 18, 2009 3:28 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, August 27, 2014 1:51 AM
Points: 1,260, Visits: 3,422
All replies should go here



============================================================
SELECT YOUR PROBLEM FROM SSC.com WHERE PROBLEM DESCRIPTION =
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Post #790203
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse