i am trying to designate a specific order in which the records come out, not ascending or descending. is this possible with a Select and Order By? or perhaps another keyword that i am unfamiliar with?
i'm working in Crystal Reports with SQL Server.
example:
SELECT LastName FROM People
WHERE
(SocSecNum = 123456783 OR
SocSecNum = 123456781 OR
SocSecNum = 123456787 OR
SocSecNum = 123456782)
but somehow order it to come out in the order i need it to print out, for instance in the order i just called it.
all i'm looking for is a way to do this in the select statement. if i need a procedure (or whatever else), a simple 'use a procedure, you baffoon' will do.
thanks
MJnaeblis
i'm working in Crystal Reports with SQL Server.
example:
SELECT LastName FROM People
WHERE
(SocSecNum = 123456783 OR
SocSecNum = 123456781 OR
SocSecNum = 123456787 OR
SocSecNum = 123456782)
but somehow order it to come out in the order i need it to print out, for instance in the order i just called it.
all i'm looking for is a way to do this in the select statement. if i need a procedure (or whatever else), a simple 'use a procedure, you baffoon' will do.
thanks
MJnaeblis