G
Guest
I have two tables-
vendortable -- Vendor_id and vendor_name ( it has 10 vendor)
Accounttable -- account_id, created_date, vendorid ( it contain user
registartion entry )
I need to find How many user registered between two date for all the
vendorid in vendortable. When I do a Count(*) and group by on the vendorid it
gived me only those vendor which has entry in accounttable.
I tried the right join but same is the case.
If no user is registered for a vendor then I want 0 in the output but it
must show up in result
my query is like this--
SELECT vendortable.Vendor_id, Count(Nz([account_id])) AS Expr1
FROM vendortable INNER JOIN dbo_accounts ON vendortable.Vendor_id =
dbo_accounttable.vendor_id
WHERE (((dbo_accounttable.created_date)>=[Start Date] And
(dbo_accounttable.created_date)<[End Date]))
GROUP BY PrivateLabelReportVendor.Vendor_id;
Ant help greatly appriciated.
rajesh
vendortable -- Vendor_id and vendor_name ( it has 10 vendor)
Accounttable -- account_id, created_date, vendorid ( it contain user
registartion entry )
I need to find How many user registered between two date for all the
vendorid in vendortable. When I do a Count(*) and group by on the vendorid it
gived me only those vendor which has entry in accounttable.
I tried the right join but same is the case.
If no user is registered for a vendor then I want 0 in the output but it
must show up in result
my query is like this--
SELECT vendortable.Vendor_id, Count(Nz([account_id])) AS Expr1
FROM vendortable INNER JOIN dbo_accounts ON vendortable.Vendor_id =
dbo_accounttable.vendor_id
WHERE (((dbo_accounttable.created_date)>=[Start Date] And
(dbo_accounttable.created_date)<[End Date]))
GROUP BY PrivateLabelReportVendor.Vendor_id;
Ant help greatly appriciated.
rajesh