I want to count records using datediff() and where condition; I am getting the result with no. of days; but cant count records with condition; below is the my query

SELECT DATEDIFF(CURDATE(), jobs.jobs_listed_date)
FROM tbl_first_category AS 
FIRST , tbl_second_category AS 
SECOND , tbl_jobs AS jobs
WHERE first.fc_id = second.sc_fc_id
AND second.sc_url =  'accountancy-bookkeeping'
AND jobs.jobs_category_id = second.sc_id
AND jobs.jobs_status =1
LIMIT 0 , 30

Recommended Answers

what are sample records?
what output you expect from the query ?

Jump to Post

All 2 Replies

what are sample records?
what output you expect from the query ?

I want to count records

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.