Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Oracle SQL query

    Hi,

    My Oracle sql isn't very good, I need to select from a table events that
    occurred + / - 28 days from now.

    So, SELECT blah from table_blah where date = sysdate

    Would give me events now, how do I modify this for + / - 28 days?

    Thanks.


    Miguel Orrego Guest

  2. Similar Questions and Discussions

    1. Limitation in oracle db list query
      I am getting the error while retrieving the records and exporting them to excel sheet where i had a query as follows select * from FEEDBACK_IN...
    2. query with oracle 10g
      hi all, i run this query in toad and it works but when i try to use it in coldfusion i have no records select...
    3. ColdFusion+cfquery+Oracle+CLOB+"Query of Query"
      Error message is: Query Of Queries runtime error. Unsupported SQL type "java.sql.Types.CLOB". My database table: RESMIGAZETEFIHRISTI: ...
    4. Query optimizer in Oracle 7.3.4
      Perhaps the statistics are diferent between both databases. On Tue, 07 Jan 2003 20:33:40 +0100, Aad Aldus wrote:
    5. need advice for query time on Oracle
      jyou wrote: General statements are difficult to debug. For one thing, you have to take into account the network load ... since you're comparing a...
  3. #2

    Default Oracle SQL query

    select * from blahdiblahdiblah where datecolumn between
    sysdate -27 and sysdate -29;
    >-----Original Message-----
    >Hi,
    >
    >My Oracle sql isn't very good, I need to select from a
    table events that
    >occurred + / - 28 days from now.
    >
    >So, SELECT blah from table_blah where date = sysdate
    >
    >Would give me events now, how do I modify this for + / -
    28 days?
    >
    >Thanks.
    >
    >
    >.
    >
    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