Is it possible to select only equal to

A

ainese

Is it possible to select only equal to something, if so what is the
code?


.....

basically I have a table with esn numbers, and services types. ESN can
have up to 3 service types. Basic will be associated with every ESN
number but the other services types may not. I am trying to count the
esn numbers where SERVICE is only equal to BASIC....

any ideas on how to write this?

I am having trouble with the below code in that it is returning
duplicates due to the inner join, how do I omit these?


SELECT DISTINCT (Count(F.ESN)) AS ["Basic Activations"]
FROM Data AS F INNER JOIN Data AS G ON (F.ESN= G.ESN AND F.SERVICE=
"Basic" AND G.SERVICE <>"Data Push" AND G.SUBSCR_TYPE = "Service
Activation")
WHERE G.ESN NOT IN
(SELECT ESN FROM Data WHERE SERVICE = 'Tracking' );
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

'Not Equal to' 1
Not Equal To 1
Select 'ONLY = TO' 1
Query code for 'only equal to' 0
HELP - selecting 0
HELP PLEASE 3
Help Please 5
Update query updates multiple times 1

Top