Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Needed Urgent with SQL Query

Status
Not open for further replies.

tranz125

Computer
Joined
Aug 29, 2005
Messages
1
Location
US
Hello,

I have the following scenario please help:

i have my source data as::

DEL STATUS TIMESTAMP EVENT

D1 ACT JAN 13 audit
D1 CURE JAN 23 CURRENT



MY TARGET TABLLE MUST HAVE DATA IN THSI FORMAT:

DEL STATUS EFFECTIVE_DATE END_DATE

D1 ACT JAN 13 JAN 23
D1 CURE JAN23 NULL


I am trying to write a SQL to implement it please help me or give your suggestions to implement it.


Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top