Ask a Question related to ASP, Design and Development.

  1. #1

    Default trouble with syntax

    hi!!
    This is my problem. Im planing this without success

    *i have 3 tables table1 table2 and table3...
    *The tables have some fields with the same name for example
    both table 2 and table 3 have the field "age"
    *The field id is a key

    select * from a table1, b table2, c table3 where a.id=session("memberId")
    and b.id= session("memberId") and c.id=session("memberId")

    MY QUESTION ARE
    How do i get data from tables that have the same field name like the example
    table 2 and table 3???
    My guess are something like this:

    response.write recordsset(b.age) and for the other
    response.write recordset(c.age)..

    This is wrong syntax i know, but how do i write the syntax in asp?


    Mikael Hellström Guest

  2. Similar Questions and Discussions

    1. if/else tag syntax
      Hello, I know, how to do if/else in Actionscript, but how can I do something like if/else in MXML syntax? I want to decide on startup/compile...
    2. If than syntax help please
      I'm trying to say: If price2 equals the selected price than apply the style bold price. If price 2 is nothing or zero than show nothing. If price...
    3. VisualAge 6 installation trouble on aix 5.2, gcc trouble too :)
      I've installed gcc 3.x from UCLA site. and I got this error - In file included from test.c:23: /usr/include/pthread.h:554: error: parse error...
    4. Syntax
      Hi, In a subclass, is sub new() end sub the same as sub new()
    5. Help with DB2 Syntax.
      Hi Everyone, Recently our comany upgraded their applications from MS ACCESS 2000 to DB2 version 7.2 UDB. I'm not as skilled in DB2 with the...
  3. #2

    Default Re: trouble with syntax

    Mikael Hellström wrote:
    Already answered in .asp.db.

    Mikael,
    The .asp.db newsgroup was the appropriate newsgroup for this question: it
    was database-related, and it was asp-related - a great fit for .asp.db. You
    did not have to post it here as well. Most of the experts in this group also
    subscribe to that group as well, and it can be annoying to have to read the
    same question multiple times. In addition, by posting the same question
    separately in these newsgroups, you created a "multipost". This is bad
    because users in one group cannot see replies to the question from the other
    group. This could cause somebody to waste his time answering a question that
    has already been answered in the other group, which will certainly be
    annoying, and may cause the person who wasted his time to put you on Ignore.
    Who knows, this person may be the only person in the newsgroups who knows
    the answer to your next question, and you're never going to receive his
    answer.

    The best policy is, post your question to one appropriate newsgroup. If
    you've posted it in the wrong place, someone will let you know, and
    hopefully will be polite enough to suggest a more appropriate newsgroup. If
    you can't decide which of several newsgroups is the most appropriate, use
    the cross-posting technique: put the names of the newsgroups into the To
    field of a single message and post it once. It will be posted to all the
    groups in your To field. The benefit is that replies to the message will
    appear in all the newsgroups to which you cross-posted it, so subscripers to
    all the groups will know that your problem has been resolved. The downside
    is that extra bandwidth will be used as a result, so always strive to keep
    the number of cross-posted groups to a minimum.

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows Guest

  4. #3

    Default Re: trouble with syntax

    ok sorry ...I'll think about that.

    "Bob Barrows" <reb01501@NOyahoo.SPAMcom> wrote in message
    news:ekQGFr8mDHA.2500@TK2MSFTNGP10.phx.gbl...
    > Mikael Hellström wrote:
    > Already answered in .asp.db.
    >
    > Mikael,
    > The .asp.db newsgroup was the appropriate newsgroup for this question: it
    > was database-related, and it was asp-related - a great fit for .asp.db.
    You
    > did not have to post it here as well. Most of the experts in this group
    also
    > subscribe to that group as well, and it can be annoying to have to read
    the
    > same question multiple times. In addition, by posting the same question
    > separately in these newsgroups, you created a "multipost". This is bad
    > because users in one group cannot see replies to the question from the
    other
    > group. This could cause somebody to waste his time answering a question
    that
    > has already been answered in the other group, which will certainly be
    > annoying, and may cause the person who wasted his time to put you on
    Ignore.
    > Who knows, this person may be the only person in the newsgroups who knows
    > the answer to your next question, and you're never going to receive his
    > answer.
    >
    > The best policy is, post your question to one appropriate newsgroup. If
    > you've posted it in the wrong place, someone will let you know, and
    > hopefully will be polite enough to suggest a more appropriate newsgroup.
    If
    > you can't decide which of several newsgroups is the most appropriate, use
    > the cross-posting technique: put the names of the newsgroups into the To
    > field of a single message and post it once. It will be posted to all the
    > groups in your To field. The benefit is that replies to the message will
    > appear in all the newsgroups to which you cross-posted it, so subscripers
    to
    > all the groups will know that your problem has been resolved. The downside
    > is that extra bandwidth will be used as a result, so always strive to keep
    > the number of cross-posted groups to a minimum.
    >
    > HTH,
    > Bob Barrows
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >

    Mikael Hellström 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