Click here to Skip to main content
15,896,429 members
Home / Discussions / Database
   

Database

 
GeneralRe: String Comparison in MS SQL Pin
Colin Angus Mackay23-Feb-05 0:15
Colin Angus Mackay23-Feb-05 0:15 
GeneralRe: String Comparison in MS SQL Pin
Michael Potter23-Feb-05 9:41
Michael Potter23-Feb-05 9:41 
GeneralRe: String Comparison in MS SQL Pin
TPN23-Feb-05 16:52
TPN23-Feb-05 16:52 
GeneralCreate a new database Pin
Blue_Skye22-Feb-05 6:47
Blue_Skye22-Feb-05 6:47 
GeneralRe: Create a new database Pin
Chris Meech22-Feb-05 8:28
Chris Meech22-Feb-05 8:28 
GeneralRe: Create a new database Pin
Blue_Skye22-Feb-05 17:40
Blue_Skye22-Feb-05 17:40 
GeneralCurrent Row Index Pin
RChin22-Feb-05 6:14
RChin22-Feb-05 6:14 
GeneralRe: Current Row Index Pin
Michael Potter22-Feb-05 10:40
Michael Potter22-Feb-05 10:40 
Normally you would create a table (temp or memory) with a new identity field. Fill it then return that table.

If you have a unique field(s) in the query then you can also execute a correlated subquery.

SELECT
    t.Field1,
    t.Field2,
    (Select Count(*) FROM tblA WHERE Field1+Field2 < t.Field1+t.Field2) AS Idx
FROM
    tblA t
ORDER BY
    Field1,
    Field2



On a brighter note, I understand that SQL 2005 will give us a function for this.
GeneralRe: Current Row Index Pin
RChin22-Feb-05 22:48
RChin22-Feb-05 22:48 
GeneralMSDE2000A Pin
caoquanghanh22-Feb-05 0:05
caoquanghanh22-Feb-05 0:05 
Generalabout autherization Pin
Allah Kaa Bandaa21-Feb-05 22:10
Allah Kaa Bandaa21-Feb-05 22:10 
Generalstrange problem using ado to add record Pin
Dababa21-Feb-05 15:57
Dababa21-Feb-05 15:57 
GeneralStrange problem using OLE DB Consumer Templates Pin
lisoft21-Feb-05 13:56
lisoft21-Feb-05 13:56 
GeneralExcel Oledb Pin
Devius21-Feb-05 13:38
Devius21-Feb-05 13:38 
GeneralPlease HELP! Data Source Configuration Wizard Pin
Member 169642421-Feb-05 7:13
Member 169642421-Feb-05 7:13 
GeneralEXCLUDING DATA USING DATE AS PARAMETER Pin
Brendan Vogt20-Feb-05 19:28
Brendan Vogt20-Feb-05 19:28 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Colin Angus Mackay20-Feb-05 19:54
Colin Angus Mackay20-Feb-05 19:54 
GeneralRe: EXCLUDING DATA USING DATE AS PARAMETER Pin
Member 174480620-Feb-05 21:17
Member 174480620-Feb-05 21:17 
GeneralSQL Server Replace Text/Characters Pin
Brendan Vogt20-Feb-05 19:27
Brendan Vogt20-Feb-05 19:27 
GeneralRe: SQL Server Replace Text/Characters Pin
Colin Angus Mackay20-Feb-05 19:58
Colin Angus Mackay20-Feb-05 19:58 
GeneralCreating New Table and Pump data from ActiveX Pin
Mehbub19-Feb-05 3:27
Mehbub19-Feb-05 3:27 
GeneralRowNumber in results. Pin
ABBASI_RA18-Feb-05 23:52
ABBASI_RA18-Feb-05 23:52 
GeneralRe: RowNumber in results. Pin
Mike Ellison19-Feb-05 19:53
Mike Ellison19-Feb-05 19:53 
GeneralRe: RowNumber in results. Pin
ABBASI_RA20-Feb-05 1:37
ABBASI_RA20-Feb-05 1:37 
GeneralRe: RowNumber in results. Pin
Mike Ellison22-Feb-05 9:48
Mike Ellison22-Feb-05 9:48 

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.