S
subs
ozip dzip consignee shipdate
0101 3456 basf 2/1/2009
0104 3456 basf 2/1/2009
0890 2345 basf 3/4/2009
0105 3456 basf 2/1/2009
I have a table which has four fields- ozip, dzip, consignee,
shipdate. i want to extract all the rows with same dzip,
consignee, shipdate but with DIFFERENT ozip. In the above example,
the first, second and the fourth rows are extracted.
Can i pls get a SQL query which can extract only records that meet the
above described condition. The query should run fast and without any
problems. I have a query right now which corrupts and slows the entire
database. Thanks for any help . Multiple methods or solutions even
better.
0101 3456 basf 2/1/2009
0104 3456 basf 2/1/2009
0890 2345 basf 3/4/2009
0105 3456 basf 2/1/2009
I have a table which has four fields- ozip, dzip, consignee,
shipdate. i want to extract all the rows with same dzip,
consignee, shipdate but with DIFFERENT ozip. In the above example,
the first, second and the fourth rows are extracted.
Can i pls get a SQL query which can extract only records that meet the
above described condition. The query should run fast and without any
problems. I have a query right now which corrupts and slows the entire
database. Thanks for any help . Multiple methods or solutions even
better.