View Implementation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Byung Choi

    #1

    View Implementation

    Hi

    Anybody has implemented View for MySQL?
    I think it can be done outside of Database
    if query transformation approach is used.



    CREATE VIEW Model
    SELECT * FROM Model_CA, Brand
    WHERE Model_CA.brand_ rid = Brand.rid


    Select brand_name from Model
    where model.name = 'Test'

    This can be transformed into

    SELECT brand_name FROM Model_CA, Brand
    WHERE Model_CA.brand_ rid = Brand.rid and
    Model_CA.name = 'Test'


    Byung Choi
  • swdev1

    #2
    Re: View Implementation

    Byung -
    I do this all day long outside of mySql with Visual FoxPro.
    You can too - with Versions 5,6,7 and 8.
    Install your odbc driver and give it a whirl?
    Remote views are COOL, man .
    mondo regards [Bill]

    --
    William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
    email.
    FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
    mySql / VFP / MS-SQL
    "Byung Choi" <bchoi@ueic.com > wrote in message
    news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=blue]
    > Hi
    >
    > Anybody has implemented View for MySQL?
    > I think it can be done outside of Database
    > if query transformation approach is used.
    >
    >
    >
    > CREATE VIEW Model
    > SELECT * FROM Model_CA, Brand
    > WHERE Model_CA.brand_ rid = Brand.rid
    >
    >
    > Select brand_name from Model
    > where model.name = 'Test'
    >
    > This can be transformed into
    >
    > SELECT brand_name FROM Model_CA, Brand
    > WHERE Model_CA.brand_ rid = Brand.rid and
    > Model_CA.name = 'Test'
    >
    >
    > Byung Choi[/color]


    Comment

    • swdev1

      #3
      Re: View Implementation

      Byung -
      I do this all day long outside of mySql with Visual FoxPro.
      You can too - with Versions 5,6,7 and 8.
      Install your odbc driver and give it a whirl?
      Remote views are COOL, man .
      mondo regards [Bill]

      --
      William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
      email.
      FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
      mySql / VFP / MS-SQL
      "Byung Choi" <bchoi@ueic.com > wrote in message
      news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=blue]
      > Hi
      >
      > Anybody has implemented View for MySQL?
      > I think it can be done outside of Database
      > if query transformation approach is used.
      >
      >
      >
      > CREATE VIEW Model
      > SELECT * FROM Model_CA, Brand
      > WHERE Model_CA.brand_ rid = Brand.rid
      >
      >
      > Select brand_name from Model
      > where model.name = 'Test'
      >
      > This can be transformed into
      >
      > SELECT brand_name FROM Model_CA, Brand
      > WHERE Model_CA.brand_ rid = Brand.rid and
      > Model_CA.name = 'Test'
      >
      >
      > Byung Choi[/color]


      Comment

      • Brandon

        #4
        Re: View Implementation

        Yeah, I use Access for mine....

        "swdev1" <wsanders.bob@a dvmed.com> wrote in message
        news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=blue]
        > Byung -
        > I do this all day long outside of mySql with Visual FoxPro.
        > You can too - with Versions 5,6,7 and 8.
        > Install your odbc driver and give it a whirl?
        > Remote views are COOL, man .
        > mondo regards [Bill]
        >
        > --
        > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
        > email.
        > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
        > mySql / VFP / MS-SQL
        > "Byung Choi" <bchoi@ueic.com > wrote in message
        > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=green]
        > > Hi
        > >
        > > Anybody has implemented View for MySQL?
        > > I think it can be done outside of Database
        > > if query transformation approach is used.
        > >
        > >
        > >
        > > CREATE VIEW Model
        > > SELECT * FROM Model_CA, Brand
        > > WHERE Model_CA.brand_ rid = Brand.rid
        > >
        > >
        > > Select brand_name from Model
        > > where model.name = 'Test'
        > >
        > > This can be transformed into
        > >
        > > SELECT brand_name FROM Model_CA, Brand
        > > WHERE Model_CA.brand_ rid = Brand.rid and
        > > Model_CA.name = 'Test'
        > >
        > >
        > > Byung Choi[/color]
        >
        >[/color]


        Comment

        • Brandon

          #5
          Re: View Implementation

          Yeah, I use Access for mine....

          "swdev1" <wsanders.bob@a dvmed.com> wrote in message
          news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=blue]
          > Byung -
          > I do this all day long outside of mySql with Visual FoxPro.
          > You can too - with Versions 5,6,7 and 8.
          > Install your odbc driver and give it a whirl?
          > Remote views are COOL, man .
          > mondo regards [Bill]
          >
          > --
          > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
          > email.
          > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
          > mySql / VFP / MS-SQL
          > "Byung Choi" <bchoi@ueic.com > wrote in message
          > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=green]
          > > Hi
          > >
          > > Anybody has implemented View for MySQL?
          > > I think it can be done outside of Database
          > > if query transformation approach is used.
          > >
          > >
          > >
          > > CREATE VIEW Model
          > > SELECT * FROM Model_CA, Brand
          > > WHERE Model_CA.brand_ rid = Brand.rid
          > >
          > >
          > > Select brand_name from Model
          > > where model.name = 'Test'
          > >
          > > This can be transformed into
          > >
          > > SELECT brand_name FROM Model_CA, Brand
          > > WHERE Model_CA.brand_ rid = Brand.rid and
          > > Model_CA.name = 'Test'
          > >
          > >
          > > Byung Choi[/color]
          >
          >[/color]


          Comment

          • Brandon

            #6
            Re: View Implementation

            Yeah, I use Access for mine....

            "swdev1" <wsanders.bob@a dvmed.com> wrote in message
            news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=blue]
            > Byung -
            > I do this all day long outside of mySql with Visual FoxPro.
            > You can too - with Versions 5,6,7 and 8.
            > Install your odbc driver and give it a whirl?
            > Remote views are COOL, man .
            > mondo regards [Bill]
            >
            > --
            > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
            > email.
            > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
            > mySql / VFP / MS-SQL
            > "Byung Choi" <bchoi@ueic.com > wrote in message
            > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=green]
            > > Hi
            > >
            > > Anybody has implemented View for MySQL?
            > > I think it can be done outside of Database
            > > if query transformation approach is used.
            > >
            > >
            > >
            > > CREATE VIEW Model
            > > SELECT * FROM Model_CA, Brand
            > > WHERE Model_CA.brand_ rid = Brand.rid
            > >
            > >
            > > Select brand_name from Model
            > > where model.name = 'Test'
            > >
            > > This can be transformed into
            > >
            > > SELECT brand_name FROM Model_CA, Brand
            > > WHERE Model_CA.brand_ rid = Brand.rid and
            > > Model_CA.name = 'Test'
            > >
            > >
            > > Byung Choi[/color]
            >
            >[/color]


            Comment

            • Byung Choi

              #7
              Re: View Implementation

              "Brandon" <brandons@tenni sshop.com> wrote in message news:<IOM3b.361 39$dO2.22729@fe 2.columbus.rr.c om>...


              How about translation approach rather than remote view?
              Anybody tried it?

              [color=blue]
              > Yeah, I use Access for mine....
              >
              > "swdev1" <wsanders.bob@a dvmed.com> wrote in message
              > news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=green]
              > > Byung -
              > > I do this all day long outside of mySql with Visual FoxPro.
              > > You can too - with Versions 5,6,7 and 8.
              > > Install your odbc driver and give it a whirl?
              > > Remote views are COOL, man .
              > > mondo regards [Bill]
              > >
              > > --
              > > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
              > > email.
              > > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
              > > mySql / VFP / MS-SQL
              > > "Byung Choi" <bchoi@ueic.com > wrote in message
              > > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=darkred]
              > > > Hi
              > > >
              > > > Anybody has implemented View for MySQL?
              > > > I think it can be done outside of Database
              > > > if query transformation approach is used.
              > > >
              > > >
              > > >
              > > > CREATE VIEW Model
              > > > SELECT * FROM Model_CA, Brand
              > > > WHERE Model_CA.brand_ rid = Brand.rid
              > > >
              > > >
              > > > Select brand_name from Model
              > > > where model.name = 'Test'
              > > >
              > > > This can be transformed into
              > > >
              > > > SELECT brand_name FROM Model_CA, Brand
              > > > WHERE Model_CA.brand_ rid = Brand.rid and
              > > > Model_CA.name = 'Test'
              > > >
              > > >
              > > > Byung Choi[/color]
              > >
              > >[/color][/color]

              Comment

              • Byung Choi

                #8
                Re: View Implementation

                "Brandon" <brandons@tenni sshop.com> wrote in message news:<IOM3b.361 39$dO2.22729@fe 2.columbus.rr.c om>...


                How about translation approach rather than remote view?
                Anybody tried it?

                [color=blue]
                > Yeah, I use Access for mine....
                >
                > "swdev1" <wsanders.bob@a dvmed.com> wrote in message
                > news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=green]
                > > Byung -
                > > I do this all day long outside of mySql with Visual FoxPro.
                > > You can too - with Versions 5,6,7 and 8.
                > > Install your odbc driver and give it a whirl?
                > > Remote views are COOL, man .
                > > mondo regards [Bill]
                > >
                > > --
                > > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
                > > email.
                > > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
                > > mySql / VFP / MS-SQL
                > > "Byung Choi" <bchoi@ueic.com > wrote in message
                > > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=darkred]
                > > > Hi
                > > >
                > > > Anybody has implemented View for MySQL?
                > > > I think it can be done outside of Database
                > > > if query transformation approach is used.
                > > >
                > > >
                > > >
                > > > CREATE VIEW Model
                > > > SELECT * FROM Model_CA, Brand
                > > > WHERE Model_CA.brand_ rid = Brand.rid
                > > >
                > > >
                > > > Select brand_name from Model
                > > > where model.name = 'Test'
                > > >
                > > > This can be transformed into
                > > >
                > > > SELECT brand_name FROM Model_CA, Brand
                > > > WHERE Model_CA.brand_ rid = Brand.rid and
                > > > Model_CA.name = 'Test'
                > > >
                > > >
                > > > Byung Choi[/color]
                > >
                > >[/color][/color]

                Comment

                • Byung Choi

                  #9
                  Re: View Implementation

                  "Brandon" <brandons@tenni sshop.com> wrote in message news:<IOM3b.361 39$dO2.22729@fe 2.columbus.rr.c om>...


                  How about translation approach rather than remote view?
                  Anybody tried it?

                  [color=blue]
                  > Yeah, I use Access for mine....
                  >
                  > "swdev1" <wsanders.bob@a dvmed.com> wrote in message
                  > news:YZb3b.405$ rB1.195@newssvr 22.news.prodigy .com...[color=green]
                  > > Byung -
                  > > I do this all day long outside of mySql with Visual FoxPro.
                  > > You can too - with Versions 5,6,7 and 8.
                  > > Install your odbc driver and give it a whirl?
                  > > Remote views are COOL, man .
                  > > mondo regards [Bill]
                  > >
                  > > --
                  > > William Sanders / Electronic Filing Group Remove the DOT BOB to reply via
                  > > email.
                  > > FREE LONG DISTANCE -> mailto:excel-info@efgroup.ne t
                  > > mySql / VFP / MS-SQL
                  > > "Byung Choi" <bchoi@ueic.com > wrote in message
                  > > news:b797c63c.0 308271032.21854 0bb@posting.goo gle.com...[color=darkred]
                  > > > Hi
                  > > >
                  > > > Anybody has implemented View for MySQL?
                  > > > I think it can be done outside of Database
                  > > > if query transformation approach is used.
                  > > >
                  > > >
                  > > >
                  > > > CREATE VIEW Model
                  > > > SELECT * FROM Model_CA, Brand
                  > > > WHERE Model_CA.brand_ rid = Brand.rid
                  > > >
                  > > >
                  > > > Select brand_name from Model
                  > > > where model.name = 'Test'
                  > > >
                  > > > This can be transformed into
                  > > >
                  > > > SELECT brand_name FROM Model_CA, Brand
                  > > > WHERE Model_CA.brand_ rid = Brand.rid and
                  > > > Model_CA.name = 'Test'
                  > > >
                  > > >
                  > > > Byung Choi[/color]
                  > >
                  > >[/color][/color]

                  Comment

                  Working...