Off Topic
    • Categories
    • Tags
    • Users
    • Groups
    • Amazon
    • OT Fundraiser
    • Register
    • Login

    The OFFICIAL programming thread

    Tech
    22
    1.4k
    10.4k
    Loading More Posts
    • 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.
    • PakoonP
      Pakoon
      last edited by

      E5dT-87WUAQHOqV.jpg

      ♙♙♙ Michael Waltz added you to the group.

      tiggerT 1 Reply Last reply Reply Quote 2
      • tiggerT
        tigger @Pakoon
        last edited by

        @pakoon said in The OFFICIAL programming thread:

        E5dT-87WUAQHOqV.jpg

        Jajajaja!

        1 Reply Last reply Reply Quote 0
        • rote7R
          rote7
          last edited by

          Time for my favorite frownie: m(

          fffg

          1 Reply Last reply Reply Quote 0
          • rote7R
            rote7
            last edited by

            The Case Against SQL - Slashdot

            The Case Against SQL - Slashdot

            Long-time Slashdot reader RoccamOccam shares "an interesting take on SQL and its issues from Jamie Brandon (who describes himself as an independent researcher who's built database engines, query planners, compilers, developer tools and interfaces). It's title? "Against SQL." The relational model...

            Interesting article, I didn’t know that

            “The SQL spec (part 2 = 1732) pages is more than twice the length of the Javascript 2021 spec (879 pages), almost matches the C++ 2020 spec (1853) pages and contains 411 occurrences of ‘implementation-defined’, occurrences which include type inference and error propagation.”

            Sweet jesus, double the length of the JS specs…

            One SQL problem that I couldn’t solve so far is finding a good way to use the output of a single column query (multiple rows, result count must be flexible) as headers and/or fields for a subsequent query.

            fffg

            KilemallK Gators1G 2 Replies Last reply Reply Quote 0
            • KilemallK
              Kilemall Careful, railroad agent @rote7
              last edited by

              @rote7 said in The OFFICIAL programming thread:

              The Case Against SQL - Slashdot

              The Case Against SQL - Slashdot

              Long-time Slashdot reader RoccamOccam shares "an interesting take on SQL and its issues from Jamie Brandon (who describes himself as an independent researcher who's built database engines, query planners, compilers, developer tools and interfaces). It's title? "Against SQL." The relational model...

              Interesting article, I didn’t know that

              “The SQL spec (part 2 = 1732) pages is more than twice the length of the Javascript 2021 spec (879 pages), almost matches the C++ 2020 spec (1853) pages and contains 411 occurrences of ‘implementation-defined’, occurrences which include type inference and error propagation.”

              Sweet jesus, double the length of the JS specs…

              One SQL problem that I couldn’t solve so far is finding a good way to use the output of a single column query (multiple rows, result count must be flexible) as headers and/or fields for a subsequent query.

              Dynamic DB-driven filter query? Sounds like a specific SQL client function to me.

              https://i.imgur.com/hX2CMMZ.jpg

              Never go full Lithu-
              Twain

              No editing is gonna save you now-
              Wingmann

              http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

              http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

              1 Reply Last reply Reply Quote 0
              • rote7R
                rote7
                last edited by rote7

                @Kilemall Yes, that was my first idea too. My goal is to replace a whole lot of client logic with a set of queries/subqueries and/or joins. I am looking for a pivot mechanism to transform a set of column(s) into rows.

                E.g. turn

                col_1 | col_2
                param_1 | value_1
                param_2 | value_2
                param_foo | value_fo

                into a dynamic DB operation that delivers a result like the client generated query “SELECT * FROM table WHERE param_1 = value_1 AND param_2 = value_2 AND param_foo = value_foo” without all the string concatenation, input scrubbing etc. pp. going on in the client.

                fffg

                1 Reply Last reply Reply Quote 0
                • Gators1G
                  Gators1 @rote7
                  last edited by

                  @rote7 said in The OFFICIAL programming thread:

                  The Case Against SQL - Slashdot

                  The Case Against SQL - Slashdot

                  Long-time Slashdot reader RoccamOccam shares "an interesting take on SQL and its issues from Jamie Brandon (who describes himself as an independent researcher who's built database engines, query planners, compilers, developer tools and interfaces). It's title? "Against SQL." The relational model...

                  Interesting article, I didn’t know that

                  “The SQL spec (part 2 = 1732) pages is more than twice the length of the Javascript 2021 spec (879 pages), almost matches the C++ 2020 spec (1853) pages and contains 411 occurrences of ‘implementation-defined’, occurrences which include type inference and error propagation.”

                  Sweet jesus, double the length of the JS specs…

                  One SQL problem that I couldn’t solve so far is finding a good way to use the output of a single column query (multiple rows, result count must be flexible) as headers and/or fields for a subsequent query.

                  I think you need to do it as a stored procedure if I remember right and using the PIVOT function. Basically instead of defining the static columns as in the base function, you dynamically insert them in the stored procedure. If you are doing this as part of another code project, you could do the same by just assembling the text of the SQL script to sent dynamically (e.g. “SELECT “& [column name varIable]&” FROM TABLE_NAME;”

                  alt text

                  GustafG 1 Reply Last reply Reply Quote 0
                  • GustafG
                    Gustaf @Gators1
                    last edited by

                    This thread:

                    tenor (18).gif

                    "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                    KilemallK 1 Reply Last reply Reply Quote 2
                    • rote7R
                      rote7
                      last edited by rote7

                      @Gators1

                      Stored procedures are one possible solution. But, and this is a big but, they are DB dependent and I am looking for a way to achieve this with as little as possible DB specific SQL dialect.

                      As for the client generated SQL, that’s the current solution as a part of a homegrown ORM. I am just curious if it can be done purely in the DB as a way to replace a bunch of DB specific logic during the SQL generation in that ORM.

                      @Gustaf

                      linux_babe-wet-shirt.jpg

                      /* insert snappy comment here */

                      fffg

                      Gators1G KilemallK GustafG 3 Replies Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        I’d snap one off in her

                        1 Reply Last reply Reply Quote -1
                        • Gators1G
                          Gators1 @rote7
                          last edited by

                          @rote7 said in The OFFICIAL programming thread:

                          @Gators1

                          Stored procedures are one possible solution. But, and this is a big but, they are DB dependent and I am looking for a way to achieve this with as little as possible DB specific SQL dialect.

                          As for the client generated SQL, that’s the current solution as a part of a homegrown ORM. I am just curious if it can be done purely in the DB as a way to replace a bunch of DB specific logic during the SQL generation in that ORM.

                          @Gustaf

                          linux_babe-wet-shirt.jpg

                          /* insert snappy comment here */

                          @rote7
                          Yeah, I couldn’t find a way other than a stored procedure in Oracle. The function requires you to define the columns in the SQL so it’s static. Nothing in many searches I did changed that, though the procedure thing was suggested. Seems like a stupid design since pivoting often requires dynamic results.

                          @Gustaf
                          8f1cc3e9-7371-4564-9386-b9c36376d1ea-image.png

                          alt text

                          TazzT 1 Reply Last reply Reply Quote 0
                          • TazzT
                            Tazz @Gators1
                            last edited by

                            @gators1 She bumped her chin on something.

                            GTFO

                            1 Reply Last reply Reply Quote 0
                            • KilemallK
                              Kilemall Careful, railroad agent @Gustaf
                              last edited by

                              @gustaf said in The OFFICIAL programming thread:

                              This thread:

                              tenor (18).gif

                              This is what I was waiting for, the caterwauls of the computer illiterati! SUCCESS ROTE SUCCESS!

                              https://i.imgur.com/hX2CMMZ.jpg

                              Never go full Lithu-
                              Twain

                              No editing is gonna save you now-
                              Wingmann

                              http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                              http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                              1 Reply Last reply Reply Quote 0
                              • KilemallK
                                Kilemall Careful, railroad agent @rote7
                                last edited by

                                @rote7 said in The OFFICIAL programming thread:

                                @Gators1

                                Stored procedures are one possible solution. But, and this is a big but, they are DB dependent and I am looking for a way to achieve this with as little as possible DB specific SQL dialect.

                                As for the client generated SQL, that’s the current solution as a part of a homegrown ORM. I am just curious if it can be done purely in the DB as a way to replace a bunch of DB specific logic during the SQL generation in that ORM.

                                Suspected as much.

                                Do Dark Magic, pay with your soul. You know the rules.

                                https://i.imgur.com/hX2CMMZ.jpg

                                Never go full Lithu-
                                Twain

                                No editing is gonna save you now-
                                Wingmann

                                http://s3.amazonaws.com/rrpa_photos/72217/DSC_2528.JPG

                                http://s3.amazonaws.com/rrpa_photos/20416/PTOB 101_resize.jpg

                                1 Reply Last reply Reply Quote 1
                                • LithuL
                                  Lithu
                                  last edited by

                                  SELL! SELL! SELL!

                                  The end of open source?

                                  The end of open source?

                                  Several weeks ago, the Linux community was rocked by the disturbing news that University of Minnesota researchers had developed (but, as it turned out, not fully executed) a method for introducing what they called "hypocrite commits" to the Linux kernel -- the idea being to distribute hard-to...

                                  tiggerT 1 Reply Last reply Reply Quote 0
                                  • tiggerT
                                    tigger @Lithu
                                    last edited by

                                    @lithu said in The OFFICIAL programming thread:

                                    SELL! SELL! SELL!

                                    The end of open source?

                                    The end of open source?

                                    Several weeks ago, the Linux community was rocked by the disturbing news that University of Minnesota researchers had developed (but, as it turned out, not fully executed) a method for introducing what they called "hypocrite commits" to the Linux kernel -- the idea being to distribute hard-to...

                                    Yahoo news.

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by

                                      Mildly interesting article but the title is possibly the worst click bait I’ve ever seen.

                                      Gators1G 1 Reply Last reply Reply Quote 0
                                      • Gators1G
                                        Gators1 @A Former User
                                        last edited by

                                        @hog said in The OFFICIAL programming thread:

                                        Mildly interesting article but the title is possibly the worst click bait I’ve ever seen.

                                        Here’s a worser one…

                                        fd019616-bbf2-47f6-b0fc-66011cce711c-image.png

                                        alt text

                                        TazzT 1 Reply Last reply Reply Quote 0
                                        • TazzT
                                          Tazz @Gators1
                                          last edited by

                                          @gators1 probably let out a six minute long fart

                                          GTFO

                                          1 Reply Last reply Reply Quote 0
                                          • GustafG
                                            Gustaf @rote7
                                            last edited by

                                            @rote7 said in The OFFICIAL programming thread:

                                            @Gators1

                                            Stored procedures are one possible solution. But, and this is a big but, they are DB dependent and I am looking for a way to achieve this with as little as possible DB specific SQL dialect.

                                            As for the client generated SQL, that’s the current solution as a part of a homegrown ORM. I am just curious if it can be done purely in the DB as a way to replace a bunch of DB specific logic during the SQL generation in that ORM.

                                            @Gustaf

                                            linux_babe-wet-shirt.jpg

                                            /* insert snappy comment here */

                                            This is the kind of amazing posting that has won this website so many awards!

                                            "Let's give it a week! Still a disaster? Let's give it another week…" -Tazz

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post