Click here to Skip to main content
15,902,276 members
Home / Discussions / Database
   

Database

 
AnswerRe: extract a photo Pin
nelsonpaixao1-Oct-08 12:56
nelsonpaixao1-Oct-08 12:56 
QuestionRetrieve All the Column Names of SQL Table. Pin
astrovirgin30-Sep-08 20:07
astrovirgin30-Sep-08 20:07 
AnswerRe: Retrieve All the Column Names of SQL Table. Pin
Ashfield30-Sep-08 21:10
Ashfield30-Sep-08 21:10 
GeneralRe: Retrieve All the Column Names of SQL Table. Pin
astrovirgin30-Sep-08 21:16
astrovirgin30-Sep-08 21:16 
AnswerRe: Retrieve All the Column Names of SQL Table. Pin
PIEBALDconsult1-Oct-08 4:30
mvePIEBALDconsult1-Oct-08 4:30 
GeneralRe: Retrieve All the Column Names of SQL Table. Pin
Ashfield1-Oct-08 21:11
Ashfield1-Oct-08 21:11 
GeneralRe: Retrieve All the Column Names of SQL Table. Pin
PIEBALDconsult2-Oct-08 12:11
mvePIEBALDconsult2-Oct-08 12:11 
Questionselect random rows Pin
swjam30-Sep-08 15:19
swjam30-Sep-08 15:19 
is there a way to do the above? i found solutions but limited to a single row only and i don't want to do a 'cursor'-like solution, having to iterate. also my requirement is the select includes a where clause something like below:

[CODE]select
*
from
myTable
where
dateReceived between @startDate and @endDate
[/CODE]

and get say, 10 random rows from the result set.

i've tried the order by rand() but having run it a couple of times (in intervals greater than clock ticks) i get the same set of results.

thanks in advance!

----------------------------------------------------------
"unzip; strip; touch; finger; mount; fsck; more; yes; unmount; sleep" - my daily unix command list

Answerupdate... Pin
swjam30-Sep-08 15:43
swjam30-Sep-08 15:43 
AnswerRe: select random rows Pin
J4amieC30-Sep-08 22:36
J4amieC30-Sep-08 22:36 
QuestionSetup and Deployment of Database Project without server Pin
sawerr30-Sep-08 13:23
sawerr30-Sep-08 13:23 
AnswerRe: Setup and Deployment of Database Project without server Pin
nelsonpaixao30-Sep-08 14:20
nelsonpaixao30-Sep-08 14:20 
AnswerRe: Setup and Deployment of Database Project without server Pin
Mycroft Holmes30-Sep-08 23:20
professionalMycroft Holmes30-Sep-08 23:20 
AnswerRe: Setup and Deployment of Database Project without server Pin
Wendelius1-Oct-08 4:20
mentorWendelius1-Oct-08 4:20 
QuestionSelect Top 1 using join Pin
Lash2030-Sep-08 10:25
Lash2030-Sep-08 10:25 
QuestionHow can I select all but with a distinct column and top of another ordered column Pin
fly90430-Sep-08 5:40
fly90430-Sep-08 5:40 
AnswerRe: How can I select all but with a distinct column and top of another ordered column Pin
J4amieC30-Sep-08 5:50
J4amieC30-Sep-08 5:50 
GeneralRe: How can I select all but with a distinct column and top of another ordered column Pin
fly90430-Sep-08 6:05
fly90430-Sep-08 6:05 
AnswerRe: How can I select all but with a distinct column and top of another ordered column Pin
Blue_Boy30-Sep-08 8:33
Blue_Boy30-Sep-08 8:33 
GeneralRe: How can I select all but with a distinct column and top of another ordered column Pin
J4amieC30-Sep-08 22:35
J4amieC30-Sep-08 22:35 
Generaldesigning a software for a typical office Pin
niconicx30-Sep-08 2:36
niconicx30-Sep-08 2:36 
GeneralRe: designing a software for a typical office Pin
Mycroft Holmes30-Sep-08 23:23
professionalMycroft Holmes30-Sep-08 23:23 
QuestionGet All Database Names???? Pin
astrovirgin30-Sep-08 0:11
astrovirgin30-Sep-08 0:11 
AnswerRe: Get All Database Names???? Pin
Mycroft Holmes30-Sep-08 0:22
professionalMycroft Holmes30-Sep-08 0:22 
AnswerRe: Get All Database Names???? Pin
Wendelius30-Sep-08 3:19
mentorWendelius30-Sep-08 3:19 

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.