473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

minus in SQL not available in Access how to do ?

hi every body
hope u r fine

i would like to write this selest statement which is in SQL to the Access but i couldnt could any one give me a hint how can i do that ?

select * from t
minus
select * from n

thank you so much
best regards
Aug 21 '07 #1
2 6160
mlcampeau
296 Expert 100+
hi every body
hope u r fine

i would like to write this selest statement which is in SQL to the Access but i couldnt could any one give me a hint how can i do that ?

select * from t
minus
select * from n

thank you so much
best regards
instead of minus, try NOT IN
Aug 21 '07 #2
JKing
1,206 Expert 1GB
Another idea might be to use the EXISTS keyword.

Here's a common example:
Expand|Select|Wrap|Line Numbers
  1. SELECT Customers.CustomerID, Customers.CompanyName
  2. FROM Customers
  3. WHERE NOT EXISTS 
  4. (SELECT * FROM Orders WHERE Orders.CustomerID = Customers.CustomerID)
  5.  
Aug 21 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sumanth Suri | last post by:
Hi, I've used the minus functionality which is available in Oracle and i would like to use it in SQL server, but i don't know how to. The folllowing is how it works in Oracle Select symbols...
2
by: Newbie | last post by:
Hi, Could someone please tell how MINUS operator works for comparing and giving non-matching records in Table1? Does MINUS operator compares all records of Table1 with all records of Table2 to...
1
by: Bibic0711 | last post by:
I am having problem on following situation, any comments are welcome. I have this table A which contents most of the data, that needs to be query based on a name field in table B and was linked...
9
by: lauren quantrell | last post by:
Is there a way to determine the size of the user's screen minus the Windows task bar? I am trying to maximize an Access popup form that is also resizeable and it is causing me problems since it...
3
by: David | last post by:
ACCESS says there is a syntax error in this statement. I am trying to find out which records are not in the second table. SELECT Charges.ID, Charges.Total FROM Charges MINUS SELECT...
5
by: Jumbo | last post by:
I need a script for my site that shows my servertime minus 7 hours. Anyone who can help?
6
by: Matthew Cook | last post by:
I would like to overload the unary minus operator so that I can negate an instance of a class and pass that instance to a function without creating an explicit temporary variable. Here is an...
2
by: CenturionX | last post by:
Hello everybody i'm trying to use the minus operator like that: (SELECT DISTINCT TRIM(S.Lname & ', ' & Fname) AS Name, S.SID FROM Salesperson as S, Schedule as H WHERE S.SID = H.SID AND H.Day =...
2
by: Shalini Bhalla | last post by:
I want to extract records form a table . I have Table A and Table B . I want to extract unmatching records from table A to table B .... Can you Please tell me how to extrat it ? How to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.