aadhar-matellio

compliance-alerts-email-15days

Dec 9th, 2021 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.45 KB | None | 0 0
  1. compliance-alerts-email-15days :
  2.  
  3. Query-1 (2 records):
  4.  
  5. SELECT
  6.     `id`
  7. FROM
  8.     `compliance_alerts`
  9. WHERE
  10.     due_date = '2021-12-24'
  11.     AND `filing_status` IS NULL
  12.     AND `15_day_email_sent` IS NULL
  13.     AND `compliance_alerts`.`deleted_at` IS NULL;
  14.  
  15. -------------------------------------------------------------------
  16.  
  17. Query-2 (2 records):
  18.  
  19. SELECT
  20.     *
  21. FROM
  22.     `compliance_alerts`
  23. WHERE
  24.     due_date = '2021-12-24'
  25.     AND `filing_status` IS NULL
  26.     AND `15_day_email_sent` IS NULL
  27.     AND `compliance_alerts`.`deleted_at` IS NULL;    
  28.  
  29. -------------------------------------------------------------------
  30.  
  31. Query-3 (2 records):
  32.  
  33. SELECT
  34.     *
  35. FROM
  36.     `compliance_alerts`
  37. WHERE
  38.     due_date = '2021-12-24'
  39.     AND `filing_status` IS NULL;
  40.  
  41.  
  42. -------------------------------------------------------------------
  43.  
  44. Query-4 (2 records):
  45.  
  46. SELECT
  47.     *
  48. FROM
  49.     `compliance_alerts`
  50. WHERE
  51.     due_date = '2021-12-24'
  52.     AND `filing_status` IS NULL
  53.     AND `15_day_email_sent` IS NULL;
  54.  
  55. -------------------------------------------------------------------
  56.  
  57. Query-5 (4 records):
  58.  
  59. SELECT
  60.     *
  61. FROM
  62.     `compliance_alerts`
  63. WHERE
  64.     due_date = '2021-12-24'
  65.     AND `15_day_email_sent` IS NULL;
  66.  
  67. -------------------------------------------------------------------
  68.  
  69. Query-6 (4 records):
  70.  
  71. SELECT
  72.     *
  73. FROM
  74.     `compliance_alerts`
  75. WHERE
  76.     due_date = '2021-12-24'
  77.     AND `compliance_alerts`.`deleted_at` IS NULL;
Add Comment
Please, Sign In to add comment