all records in random orde?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default all records in random orde?

    Ok, this has probably been asked a thousand times, apologies for repeating..
    Is there a tutorial or extension to display all records from a recordset in
    a random order?
    I've tried using various options such as ORDER BY RAND() in the sql
    statement but none seem to work.
    At present my sql is -

    SELECT *
    FROM upload
    WHERE Date>DateAdd('yyyy',-1,Now());

    I also need to display all records in random order
    Thanks for any help
    Gary


    woodywyatt Guest

  2. Similar Questions and Discussions

    1. Random records from MySQL
      is there any way i can get my page to pull a record ot of a table at random in PHP and MySQL?????????:confused;
    2. random records from Access?
      Hi I'm using a Windows 2003 server an access database, with ODBC connection Is there anywhere I can find info about displaying all records in...
    3. Random records (but with logic)
      Hi, I need to extract randomly 5 records from the table "Questions". Now I use SELECT TOP 5 FROM Questions ORDERBY NEWID() And it works. The...
    4. Using Math.random to go to random frames
      Hello everyone. My cerebral density is preventing me from seeing the solution to this problem. I have the following code which causes the user to...
    5. Random image in a random place.
      Anyone know javascript? I have a grid(4 x 4) of 16 spacer images and a few text links on the side. Each text link represents a different folder of...
  3. #2

    Default Re: all records in random orde?

    Hopefully you are using SQL Server, if so here is a good start,

    [url]http://www.sqlteam.com/item.asp?ItemID=8747[/url]

    Drew

    "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
    news:d3eed5$gvq$1@forums.macromedia.com...
    > Ok, this has probably been asked a thousand times, apologies for
    > repeating..
    > Is there a tutorial or extension to display all records from a recordset
    > in
    > a random order?
    > I've tried using various options such as ORDER BY RAND() in the sql
    > statement but none seem to work.
    > At present my sql is -
    >
    > SELECT *
    > FROM upload
    > WHERE Date>DateAdd('yyyy',-1,Now());
    >
    > I also need to display all records in random order
    > Thanks for any help
    > Gary
    >
    >

    Drew Guest

  4. #3

    Default Re: all records in random orde?

    I'm using a Windows 2003 server an access database, with ODBC connection
    Is there anywhere I can find info about displaying all records in random
    order using this kind of set up?!
    Thanks
    Gary


    "Drew" <drew.laing@NOswvtc.dmhmrsas.virginia.SPMgov> wrote in message
    news:d3eigi$muj$1@forums.macromedia.com...
    > Hopefully you are using SQL Server, if so here is a good start,
    >
    > [url]http://www.sqlteam.com/item.asp?ItemID=8747[/url]
    >
    > Drew
    >
    > "woodywyatt" <woodywyatt@fuerteventura.com> wrote in message
    > news:d3eed5$gvq$1@forums.macromedia.com...
    > > Ok, this has probably been asked a thousand times, apologies for
    > > repeating..
    > > Is there a tutorial or extension to display all records from a recordset
    > > in
    > > a random order?
    > > I've tried using various options such as ORDER BY RAND() in the sql
    > > statement but none seem to work.
    > > At present my sql is -
    > >
    > > SELECT *
    > > FROM upload
    > > WHERE Date>DateAdd('yyyy',-1,Now());
    > >
    > > I also need to display all records in random order
    > > Thanks for any help
    > > Gary
    > >
    > >
    >
    >

    woodywyatt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139