troubleshooting Question

Need help creating a SQL statement that will count the amount of days between two values

Avatar of maximus1974
maximus1974 asked on
Oracle DatabaseSQL* oracle syntax
12 Comments1 Solution120 ViewsLast Modified:
Need help creating a SQL statement that will count the amount of days when a RC_NUMBER is last set to DISP_CODE= QUARANTINE AND DISP_CODE = OK.
Example is attached and the SQL statement I currently have is below. Help is greatly appreciated.
SELECT RC_NUMBER
      ,DISP_CODE
	  ,TIME_STAMP
  FROM RC_AUDIT_LOG
  GROUP BY RC_NUMBER
      ,DISP_CODE
	  ,TIME_STAMP
	  ORDER BY RC_NUMBER, TIME_STAMP 
Capture.JPG
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros