SunQuest
 
           ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 23rd, 2008, 01:28 AM
guymun guymun is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 8 guymun User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 14 m 9 sec
Reputation Power: 0
ASP 1.0 - Database query help

I have a script I am working on to pull employee info from a database. This is my problem. In the database there are certain status codes in the 'status_code' column and a date timestamp in the 'dts' column, as well there is an employee number in the emp_id' column. I am having trouble pulling these status codes in a certain order. What I need to do is find a status code "OS" Which shows the employee starting a job. I need to grab that date time stamp and look for the next status code that ISN"T
"OS" but for this example lets say "DL" -So when looping through the records , I have to find the first "OS", skip any other OS's until I find any other code, then I need to find the next OS. sort of in the order ,OS, DL, OS,DL Once I get the timestamps from each status code entry I need to find out how much time the employee took to go from OS to DL (by using the date time stamps and I guess subtracting one from the other,, adding them up until I get a total for the day/
I can figure the time issue out but it is getting the timestamps from the status codes in the order above. HELP@@
thanks in advance

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > ASP 1.0 - Database query help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway