Mak

Mak

  • NA
  • 6
  • 2.7k

How to divide a single column of a database table in 2 diff

May 12 2013 11:30 PM

I have one column named as Time with another column named as ID.

I want to divide the column Time in two different columns as InTime & OutTime.

But the important thing is that if the count of that ID present in a ID column is even, the  corresponding value present at that ID of column Time will be inserted in a  column named as OutTime & if the count of that ID is odd the corresponding value present at that ID of column Time will be inserted in a column named as InTime. Please  help me 

 

 

Its Urgent..

Please help me as I'm new in this field.....

THANK YOU in Advance.


Answers (6)