Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to use this code in SQL

how to use this code in SQL

Scheduled Pinned Locked Moved Database
databasesysadminooptutorialquestion
24 Posts 4 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J jojoba20

    thanks but is there any software that i can make(create) FOODB (Fuzzy Object Oriented DataBase) for SQL ? I am seeking for software to create the DB first. I am confuzed! Thanks in advanced!

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #11

    I have no idea, but I gave you a Google search with lots of links, it's up to you to go through them and see if any contain what you are looking for.

    Veni, vidi, abiit domum

    J 1 Reply Last reply
    0
    • L Lost User

      I have no idea, but I gave you a Google search with lots of links, it's up to you to go through them and see if any contain what you are looking for.

      Veni, vidi, abiit domum

      J Offline
      J Offline
      jojoba20
      wrote on last edited by
      #12

      thanks I have searched that before but doesnt get any thing!

      L 1 Reply Last reply
      0
      • J jojoba20

        thanks I have searched that before but doesnt get any thing!

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #13

        So maybe there isn't any.

        Veni, vidi, abiit domum

        1 Reply Last reply
        0
        • J jojoba20

          thanks but is there any software that i can make(create) FOODB (Fuzzy Object Oriented DataBase) for SQL ? I am seeking for software to create the DB first. I am confuzed! Thanks in advanced!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #14

          jojoba20 wrote:

          is there any software that i can make(create) FOODB (Fuzzy Object Oriented DataBase) for SQL ?

          There is no such thing as a "fuzzy" object oriented database. The example you lnked to does not apply to an existing product.

          jojoba20 wrote:

          I am seeking for software to create the DB first.

          Simply use SQL Server and you can create databases. Why does it need be "fuzzy"?

          jojoba20 wrote:

          I am confuzed!

          ..because you're looking for something that does not exist. "Fuzzy object-relational"? What kind of data are you going to store that you're interested in that collection of buzzwords?

          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

          J 1 Reply Last reply
          0
          • L Lost User

            jojoba20 wrote:

            is there any software that i can make(create) FOODB (Fuzzy Object Oriented DataBase) for SQL ?

            There is no such thing as a "fuzzy" object oriented database. The example you lnked to does not apply to an existing product.

            jojoba20 wrote:

            I am seeking for software to create the DB first.

            Simply use SQL Server and you can create databases. Why does it need be "fuzzy"?

            jojoba20 wrote:

            I am confuzed!

            ..because you're looking for something that does not exist. "Fuzzy object-relational"? What kind of data are you going to store that you're interested in that collection of buzzwords?

            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

            J Offline
            J Offline
            jojoba20
            wrote on last edited by
            #15

            so how to use the code bellow ? I wanna have Object Oriented DataBase (In an object-relational database, one might see something like this, where the data types and expressions such as BirthDay() are user-defined.) this is example code for creating Table but give error in SQL Server Management 2008 !

            CREATE TABLE Customers (
            Id Cust_Id NOT NULL PRIMARY KEY,
            Name PersonName NOT NULL,
            DOB DATE NOT NULL
            );

            SELECT Formal( C.Name )
            FROM Customers C
            WHERE BirthDay ( C.DOB ) = TODAY;

            L S 2 Replies Last reply
            0
            • J jojoba20

              so how to use the code bellow ? I wanna have Object Oriented DataBase (In an object-relational database, one might see something like this, where the data types and expressions such as BirthDay() are user-defined.) this is example code for creating Table but give error in SQL Server Management 2008 !

              CREATE TABLE Customers (
              Id Cust_Id NOT NULL PRIMARY KEY,
              Name PersonName NOT NULL,
              DOB DATE NOT NULL
              );

              SELECT Formal( C.Name )
              FROM Customers C
              WHERE BirthDay ( C.DOB ) = TODAY;

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #16

              jojoba20 wrote:

              so how to use the code bellow ?

              The code from the example is not real code.

              jojoba20 wrote:

              I wanna have Object Oriented DataBase

              Then download one.

              jojoba20 wrote:

              In an object-relational database

              Object-relational is nonsense.

              jojoba20 wrote:

              this is example code for creating Table but give error in SQL Server Management 2008 !

              That's not example code, it's a made-up example. Sql Server is not an object oriented database and is not a fuzzy database. One talks to it using Sql, or using an ORM. The example sql statement is a pack o' nonsense. I mean, convert C.DOB to a birthday? If you need a function, create one in SQL. There are dozens of manuals on how one creates a function and how to use that function in a query. Real examples, not converting X to X. Even the "formal" function is something that's standard SQL. 1) it's not a real life example 2) it's not real code 3) you don't need it I'm convinced of 3 since you haven't named a single argument that says "need". I only read "want" from someone who cannot explain what it is he needs.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

              1 Reply Last reply
              0
              • J jojoba20

                so how to use the code bellow ? I wanna have Object Oriented DataBase (In an object-relational database, one might see something like this, where the data types and expressions such as BirthDay() are user-defined.) this is example code for creating Table but give error in SQL Server Management 2008 !

                CREATE TABLE Customers (
                Id Cust_Id NOT NULL PRIMARY KEY,
                Name PersonName NOT NULL,
                DOB DATE NOT NULL
                );

                SELECT Formal( C.Name )
                FROM Customers C
                WHERE BirthDay ( C.DOB ) = TODAY;

                S Offline
                S Offline
                Simon_Whale
                wrote on last edited by
                #17

                Have a read of this wiki page: Object Orientated database systems.[^] as you can see the example you have been given come from here! the examples from this wiki page show that the SQL was and is written around database servers such as postgres etc. The code like Eddy has said wont work on SQL Server! The create table [^] statement is incorrect as you haven't specified the correct datatypes. The Select statement wont work either, why? because you would need to create User definded functions[^] for Formal and BirthDay for further reading Relational database systems (RDBMS)[^]

                Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                1 Reply Last reply
                0
                • J jojoba20

                  how to use fuzzy object oriented database sql? have to install any other software behind SQL Management Server 2008 ? this is the query :

                  Select t.*, t.muAge('mid')asMu_Age, t.muHeight('tall')asMu_Height, t.muWeight('heavy')asMu_Weight, CalcTreshold(&wAge,&tAge,&wHeight, &tHeight,&wWeight,&tWeight) asTre From TBLPersons t Where ((((t.muAge('mid')*&wAge)+ (t.muHeight('tall')*&wHeight)+ (t.muWeight('heavy')*&wWeight) ) / (&wAge+&wHeight+&wWeight) )

                  = calctre (&wAge,&tAge,&wHeight, &tHeight,&wWeight,&tWeight ) )

                  J Offline
                  J Offline
                  jschell
                  wrote on last edited by
                  #18

                  jojoba20 wrote:

                  how to use fuzzy object oriented database sql?

                  Based on your responses and the other responses to you... The FIRST step is to define exactly what the above term means.

                  1 Reply Last reply
                  0
                  • J jojoba20

                    for my collage ! my sir asked me to do that ! and also he doesnt help any!

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #19

                    jojoba20 wrote:

                    for my collage !
                    my sir asked me to do that !
                    and also he doesnt help any!

                    Ah.. Object-orientend means that you model the world according to objects (containing other objects) and their relations; relational means that you model the world into lists, with a relational to other lists. Fuzzy is something that is used more in logic than in storing data. Data shouldn't be "fuzzy". Your client is either male or female, the data we store are facts. Imagine one of those facts becoming fuzzy. My apologies for being rude; you seemed stubborn, but then again, you'll need something that convinces your collage. Feel free to ask more details if he keeps refusing the answer.

                    Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                    1 Reply Last reply
                    0
                    • J jojoba20

                      how to use fuzzy object oriented database sql? have to install any other software behind SQL Management Server 2008 ? this is the query :

                      Select t.*, t.muAge('mid')asMu_Age, t.muHeight('tall')asMu_Height, t.muWeight('heavy')asMu_Weight, CalcTreshold(&wAge,&tAge,&wHeight, &tHeight,&wWeight,&tWeight) asTre From TBLPersons t Where ((((t.muAge('mid')*&wAge)+ (t.muHeight('tall')*&wHeight)+ (t.muWeight('heavy')*&wWeight) ) / (&wAge+&wHeight+&wWeight) )

                      = calctre (&wAge,&tAge,&wHeight, &tHeight,&wWeight,&tWeight ) )

                      J Offline
                      J Offline
                      jojoba20
                      wrote on last edited by
                      #20

                      Thanks all! SO Finally : There isnt any management (or database server or Tools ) for creating Object-Oriented DataBases ?

                      S 1 Reply Last reply
                      0
                      • J jojoba20

                        Thanks all! SO Finally : There isnt any management (or database server or Tools ) for creating Object-Oriented DataBases ?

                        S Offline
                        S Offline
                        Simon_Whale
                        wrote on last edited by
                        #21

                        yes this Google search shows a wiki page object orientated databases[^]. There is a huge list there.

                        Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                        J 1 Reply Last reply
                        0
                        • S Simon_Whale

                          yes this Google search shows a wiki page object orientated databases[^]. There is a huge list there.

                          Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                          J Offline
                          J Offline
                          jojoba20
                          wrote on last edited by
                          #22

                          i have got this from my sir.

                          SELECT <attribute list> FROM < Class1 with threshold1, Class2 with threshold2, ... , Classm with thresholdm> WHERE <Att1 = Val1 WITH Thold=τ1 WITH Weight=w1 , Att2 = Val2 WITH Thold=τ2 WITH Weight=w2 , ... , Attn = Valn WITH Thold=τn WITH Weight=wn>

                          S L 2 Replies Last reply
                          0
                          • J jojoba20

                            i have got this from my sir.

                            SELECT <attribute list> FROM < Class1 with threshold1, Class2 with threshold2, ... , Classm with thresholdm> WHERE <Att1 = Val1 WITH Thold=τ1 WITH Weight=w1 , Att2 = Val2 WITH Thold=τ2 WITH Weight=w2 , ... , Attn = Valn WITH Thold=τn WITH Weight=wn>

                            S Offline
                            S Offline
                            Simon_Whale
                            wrote on last edited by
                            #23

                            I have no experience with actually coding object orientated databases or even using them, I just know that they exist. What I would suggest find out which database engine you are to use and then have a look at it's documentation.

                            Every day, thousands of innocent plants are killed by vegetarians. Help end the violence EAT BACON

                            1 Reply Last reply
                            0
                            • J jojoba20

                              i have got this from my sir.

                              SELECT <attribute list> FROM < Class1 with threshold1, Class2 with threshold2, ... , Classm with thresholdm> WHERE <Att1 = Val1 WITH Thold=τ1 WITH Weight=w1 , Att2 = Val2 WITH Thold=τ2 WITH Weight=w2 , ... , Attn = Valn WITH Thold=τn WITH Weight=wn>

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #24

                              jojoba20 wrote:

                              i have got this from my sir.

                              It's called a witch-hunt. Did he make up this example himself, or did he simply come across something? It's a lousy way of researching. Object oriented databases exist; you can download an open-source version and give it a whirl. The query looks like he should be introduced to LINQ. Since it still does not explain what he is trying or needs, we can only guess. He's being "fuzzy", and will thus only receive fuzzy answers.

                              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups