Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sequency_date

Author  Topic 

bheema
Starting Member

12 Posts

Posted - 2011-11-16 : 01:02:23
hi,

this is bheema..and i have requirement like this

date time sno
16-11-11 12:00am 1
16-11-11 11:59pm 2
17-11-11 12:00am 1

i have requirement like this that means if date and sno recycle every 24 hours.plz give me the ans

thanks in advance
Bheema

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-16 : 01:13:48
how will you get initial values for sno? is it already stored in table? or will you pass as an input?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

bheema
Starting Member

12 Posts

Posted - 2011-11-16 : 01:52:36
we wil pass as input
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-16 : 01:53:52
so what all will be input values you pass?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

bheema
Starting Member

12 Posts

Posted - 2011-11-16 : 01:58:36
if i generate pl/sql query i need o/p like that...that means we to create the sequence to date and it wil be reset every 24 hours
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-16 : 02:06:15
quote:
Originally posted by bheema

if i generate pl/sql query i need o/p like that...that means we to create the sequence to date and it wil be reset every 24 hours


this is ms sql server forum. if its pl/sql query you want, please try in some oracle forums like www.orafaq.com

you stil didnt give us any information on input values though

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

bheema
Starting Member

12 Posts

Posted - 2011-11-16 : 02:10:26
k.thanq
Go to Top of Page
   

- Advertisement -