Hi,
I need to try and write query which goes into my CUSTOMER table, and returns the number of male customers between the ages of 20 and 25.
The only thing in the CUSTOMER table which could help is DOB which is in the format 23/04/1975
There is also a field called Gender where you can either have an 'M' or 'F'.
Can anyone help? I can do the basic SQL quries, but this is a little too tricky.
I tried this: but it was not at the stage where it would return the number of customers, just the actual customers that met the parimiters of the query
SELECT title + firstName + lastName AS 'Customer'
FROM CUSTOMER
WHERE (((CUSTOMER.gender)="M"))
AND (((CUSTOMER.dob)= BETWEEN "01/01/1982" AND "01/01/1986"));
I need to try and write query which goes into my CUSTOMER table, and returns the number of male customers between the ages of 20 and 25.
The only thing in the CUSTOMER table which could help is DOB which is in the format 23/04/1975
There is also a field called Gender where you can either have an 'M' or 'F'.
Can anyone help? I can do the basic SQL quries, but this is a little too tricky.
I tried this: but it was not at the stage where it would return the number of customers, just the actual customers that met the parimiters of the query
SELECT title + firstName + lastName AS 'Customer'
FROM CUSTOMER
WHERE (((CUSTOMER.gender)="M"))
AND (((CUSTOMER.dob)= BETWEEN "01/01/1982" AND "01/01/1986"));