Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
GeneralRe: ExecuteReader question Pin
jeff_martin12-May-03 7:38
jeff_martin12-May-03 7:38 
GeneralPerl Project Help Pin
micahk9-May-03 1:05
micahk9-May-03 1:05 
GeneralWriting a DataTable As DBF (Long Post) Pin
Mark Sanders8-May-03 10:32
Mark Sanders8-May-03 10:32 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
Daniel Turini8-May-03 10:58
Daniel Turini8-May-03 10:58 
GeneralSamples Pin
Mark Sanders9-May-03 8:10
Mark Sanders9-May-03 8:10 
GeneralBest Way Pin
Mark Sanders12-May-03 9:53
Mark Sanders12-May-03 9:53 
GeneralRe: Writing a DataTable As DBF (Long Post) Pin
User 31295915-May-03 2:27
User 31295915-May-03 2:27 
GeneralSQL Statment Question... Pin
Jason Weibel8-May-03 5:29
Jason Weibel8-May-03 5:29 
Working with a table containing 2 million records I want to get the next SeqNum for each group and display an order field.
Example:
Table:
ID Field1 Field2 DateEntered SeqNum
1 tom a 12/12/00 1
2 tom b 1/1/01 2
3 jack d 2/2/01 1
4 tom d 1/2/02 null
5 me a 1/2/02 1
6 jack a 2/2/02 null
7 me d 3/3/03 null
8 me a 3/3/03 null
Desired Output:
ID Field1 Field2 DateEntered SeqNum Order
1 tom a 12/12/00 1 1
2 tom b 1/1/01 2 2
3 jack d 2/2/01 1 3
4 tom d 1/2/02 3 4
5 me a 1/2/02 1 5
6 jack a 2/2/02 2 6
7 me d 3/3/03 2 7
8 me a 3/3/03 3 8
Could someone point me in the right direction on how to replace the null values with the appropriate next SeqNum and output the Order fields.
Because of the size of the table using a cursor is out of the question. Anyone know of a good way this can be done.
Thanks,

Jason W.
GeneralRe: SQL Statment Question... Pin
basementman12-May-03 6:01
basementman12-May-03 6:01 
GeneralRe: SQL Statment Question... Pin
Nick Parker28-Jul-03 8:03
protectorNick Parker28-Jul-03 8:03 
GeneralRe: SQL Statment Question... Pin
Jason Weibel28-Jul-03 8:07
Jason Weibel28-Jul-03 8:07 
GeneralRe: SQL Statment Question... Pin
Nick Parker31-Jul-03 10:30
protectorNick Parker31-Jul-03 10:30 
GeneralDetermining the oledbconnection is from oracle database Pin
Syed Abdul Khader7-May-03 23:46
Syed Abdul Khader7-May-03 23:46 
GeneralMaster-Detail WinForm Pin
itawil7-May-03 8:03
itawil7-May-03 8:03 
GeneralMS access relationships and ASP Pin
Sarvesvara (BVKS) Dasa6-May-03 22:40
Sarvesvara (BVKS) Dasa6-May-03 22:40 
GeneralRe: MS access relationships and ASP Pin
Jean-Marc Molina29-May-03 13:32
Jean-Marc Molina29-May-03 13:32 
Questionhow to access Paradox database? Pin
GreatSolar6-May-03 16:12
GreatSolar6-May-03 16:12 
GeneralHierarchical query Pin
Anonymous6-May-03 1:47
Anonymous6-May-03 1:47 
GeneralRe: Hierarchical query Pin
DiWa6-May-03 3:07
DiWa6-May-03 3:07 
GeneralRe: Hierarchical query Pin
James Simpson7-May-03 5:43
James Simpson7-May-03 5:43 
GeneralInstalling MySQL on Windows Pin
A Sha2-May-03 18:44
sussA Sha2-May-03 18:44 
GeneralRe: Installing MySQL on Windows Pin
Jon Sagara5-May-03 8:11
Jon Sagara5-May-03 8:11 
GeneralRe: Installing MySQL on Windows Pin
Jean-Marc Molina29-May-03 13:35
Jean-Marc Molina29-May-03 13:35 
GeneralPlease help me troubleshoot this SQL Statement Pin
MBoudet2-May-03 6:31
sussMBoudet2-May-03 6:31 
GeneralRe: Please help me troubleshoot this SQL Statement Pin
Chris Meech2-May-03 6:45
Chris Meech2-May-03 6:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.