Viewing 15 posts - 31 through 45 (of 53 total)
Lynn Pettis (6/13/2012)
Nagaram (6/13/2012)
In my sample data TECH_MODE field...
June 13, 2012 at 10:01 am
thanks for suggesting rank function ..
I know about this..
But my problem is
-----------------------------------------------------
Looking at the following two records:
2 1 5 2012-05-03 20:29:53.000 2012-05-03 20:29:55.000 2
3 1 5 2012-05-03 20:29:56.000 2012-05-03 20:30:03.000...
June 13, 2012 at 9:58 am
your correct . !
:50 is just typo ..
Always begin_time in incremental value.
I am not sure on which rank function needs to be apply and where to apply ...
June 13, 2012 at 9:51 am
Actually I need to apply one of the rank function .
Expected output 1:
IDREFERENCE_IDTECH_MODE_IDBEGIN_TIMEEND_TIME RANK
1162012-05-03 20:29:22.0002012-05-03 20:29:52.000...
June 13, 2012 at 9:42 am
Thanks
Cadavre and Lynn Pettis for your valuable replays
April 3, 2012 at 8:42 am
i mean
TABLE1 and TABLE2 have no dependencies .
consider VIEW5 .. VIEW5 it depends on VIEW4 , VIEW4 depends on VIEW3 again VIEW3 depends on VIEW2 and VIEW2...
April 3, 2012 at 8:15 am
It is not about ORDER BY clause....
As per sample data to execute VIEW1 before we should create TABLE1 and TABLE2 So in this case the order of execution...
April 3, 2012 at 7:30 am
I Blindly inserted data for sample
my intension was to display next half an hour
May 16, 2011 at 8:58 am
Sorry ,
I got it by using following query.
select
dateadd(minute,30,dateadd(minute,(datediff(minute,0,startdate)/30)*30,0))startdate
,dateadd(minute,30,dateadd(minute,(datediff(minute,0,enddate)/30)*30,0))enddate
from #temp
May 16, 2011 at 2:56 am
Thank you Sean Lange,
Now I am adding HISTORY_TRANSACTION_DATE column to
ATP_TRANSACTION_HISTORY table
May 3, 2011 at 7:16 am
Hi sachnam,
DML Triggers not needed for my scenarios.
records will store in HISTORY table by front end application.
My requirement is :
at first ATP_FA_FLIGHTS table having following data
FLIGHT_IDFLIGHT_NAMEFLIGHT_EXTRANAME
151old flightold extra name
in...
May 2, 2011 at 11:11 pm
Hi Sean Lange,
for getting the most recent values for each column
i may use row_number() with partition by table name,column name
Please help me how can join rows of a history Table...
May 2, 2011 at 10:45 pm
I did it using cte
with cte as
(
select roomid,lookupdesc,fromdate from room
union all
select c.roomid,c.lookupdesc,c.fromdate+1 from cte c join room r on r.roomid=c.roomid where r.todate>c.fromdate
)
select
c.roomid
,c.lookupdesc
,c.fromdate as [date]
,subcustId
from cte c
left join subcustlink...
April 7, 2011 at 4:50 am
Viewing 15 posts - 31 through 45 (of 53 total)