Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Oprator in Ms-Access

Status
Not open for further replies.

PatelRam

Programmer
Aug 20, 2003
87
US
What is equivalent of Minus Operator (Oracle) in Ms-Access

??
 
I'm not too familiar with Oracle, but I don't think there is an equivalent operator in MS Access. If I understand "Minus Operator" in Oracle, it basically allows a search to be refined by lowering the rank of returned documents which contain the specified expression. MS Access is not that sophisticated (it doesn't cost near as much either).
 
From :
Use NOT EXISTS clause in your SELECT statement to generate the same result.

The following example illustrates the simulation of Oracle's MINUS operator:

SELECT OrderID, OrderDate
FROM Orders O
WHERE NOT EXISTS
(
SELECT 1
FROM RefundsTable R
WHERE O.OrderID = R.OrderID
)
 
Another method is to use a LEFT JOIN and testing the right side key against Null.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top