Viewing 11 posts - 31 through 41 (of 41 total)
I think, This gives you some idea :)))
declare @Table table (Doc_Nbr int,Ticket_Nbr int)
insert into @Table values
(12,907),
(12,908),
(12,909),
(12,913),
(12,915),
(12,919),
(14,1481),
(14,1484),
(14,1485),
(14,1486),
(14,1487),
(14,1489),
(14,1490);
WITH C AS(
select Doc_Nbr,Ticket_Nbr,DENSE_RANK() OVER (PARTITION By Doc_Nbr ORDER BY Ticket_Nbr) as rownum
from @Table
)
select *...
April 27, 2012 at 1:37 am
I think, If you would use SQL Server 2012, here are some new functions lag and lead which will help you.
April 27, 2012 at 1:24 am
I want to write an iterative query with resetting counter if backup succeeed?
I achive this with Cursors but, i want to learn to do this with an iterative SQL Statement?
April 24, 2012 at 1:39 am
Thanks again, I am still reading Kalen's book, and tring to understand concepts.
New question:
Can i see all pages in a database with a command like DBCC IND?
OR
How can see...
April 12, 2012 at 5:29 am
Thanks All,
New questions:
If there is a mixed extent, Must it contain a Shared Global Allocation Map (SGAM) Page and Page Free Space (PFS) Page?
And
When a new extent will be...
April 12, 2012 at 4:55 am
Yes but, i must provide referantial integrity
August 10, 2011 at 4:25 am
I have same problem,
While updating AS 400 files message below is shown:
Server: Msg 7344, Level 16, State 2, Line 1
OLE DB provider 'MSDASQL' could not UPDATE table '[AS400_IZM].[S6503FBC].[PRDLIB].[PRODPLN]' because of...
June 11, 2007 at 7:40 am
Viewing 11 posts - 31 through 41 (of 41 total)