Quantcast
Channel: Select customer who don't have data on sub tables - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Thorsten Kettner for Select customer who don't have data on sub tables

Don't join. If you want to know whether a notification exists, use an EXISTS or IN clause.SELECT customer_id, customer_token, customer_name, expiry_date, DATE_FORMAT(EXPIRY_DATE - INTERVAL 2 MONTH,...

View Article



Image may be NSFW.
Clik here to view.

Select customer who don't have data on sub tables

I am having customer data table is as below:And also sub data table is as below:Now i m trying out to access the data which is not available in sub data tableFor exampleI want customer as per below...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images