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
  1. Home
  2. Other Discussions
  3. Clever Code
  4. 1086 + 68 = 0? [modified]

1086 + 68 = 0? [modified]

Scheduled Pinned Locked Moved Clever Code
question
16 Posts 8 Posters 6 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.
  • B Brady Kelly

    I knew there were invoices and credit notes.  I just couldn't figure out why there weren't both together:

    select * from caExportBatchRecord
        where ExportRecordTypeCode in ('SINV, SCRN')
        and ExportBatchID = 1

    0 records

    I even checked them indiviudally:

    select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV'

    1086 records

    select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN'

    68 records


    Last modified: 2hrs 25mins after originally posted --

    Semicolons: The number one seller of ostomy bags world wide. - dan neely

    T Offline
    T Offline
    Tim Groven
    wrote on last edited by
    #4

    On your individual checks, try adding the exportbatchid.

    select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV' and ExportBatchID = 1

    select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN' and ExportBatchID = 1

    I bet you get zero for each query.

    B C 2 Replies Last reply
    0
    • T Tim Groven

      On your individual checks, try adding the exportbatchid.

      select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV' and ExportBatchID = 1

      select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN' and ExportBatchID = 1

      I bet you get zero for each query.

      B Offline
      B Offline
      Brady Kelly
      wrote on last edited by
      #5

      I double your bet I don't. :-\ By the way, this is NOT a help forum. The text at the top of this page says, "Subtle Bugs is a forum to post examples of interesting, aggravating and subtle bugs that you've found and fixed."

      Semicolons: The number one seller of ostomy bags world wide. - dan neely

      T 1 Reply Last reply
      0
      • B Brady Kelly

        I knew there were invoices and credit notes.  I just couldn't figure out why there weren't both together:

        select * from caExportBatchRecord
            where ExportRecordTypeCode in ('SINV, SCRN')
            and ExportBatchID = 1

        0 records

        I even checked them indiviudally:

        select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV'

        1086 records

        select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN'

        68 records


        Last modified: 2hrs 25mins after originally posted --

        Semicolons: The number one seller of ostomy bags world wide. - dan neely

        M Offline
        M Offline
        MidwestLimey
        wrote on last edited by
        #6

        Brady Kelly wrote:

        'SINV, SCRN'

        Hmmmmmm, don't like those ticks, do you? :)


        I'm largely language agnostic


        After a while they all bug me :doh:


        1 Reply Last reply
        0
        • T Tim Groven

          On your individual checks, try adding the exportbatchid.

          select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV' and ExportBatchID = 1

          select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN' and ExportBatchID = 1

          I bet you get zero for each query.

          C Offline
          C Offline
          codemunch
          wrote on last edited by
          #7

          'SINV, SCRN' vs 'SINV', 'SCRN'

          A 1 Reply Last reply
          0
          • B Brady Kelly

            I double your bet I don't. :-\ By the way, this is NOT a help forum. The text at the top of this page says, "Subtle Bugs is a forum to post examples of interesting, aggravating and subtle bugs that you've found and fixed."

            Semicolons: The number one seller of ostomy bags world wide. - dan neely

            T Offline
            T Offline
            Tim Groven
            wrote on last edited by
            #8

            Oops. Sorry, newbie here, and obviously not that helpful either. :laugh:

            B 1 Reply Last reply
            0
            • T Tim Groven

              Oops. Sorry, newbie here, and obviously not that helpful either. :laugh:

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #9

              Caydence wrote:

              :laugh:

              You got that right. This is one of those boards where it's OK to point and laugh. You can reserve being helpful for the serious boards. :)

              Semicolons: The number one seller of ostomy bags world wide. - dan neely

              P 1 Reply Last reply
              0
              • B Brady Kelly

                I knew there were invoices and credit notes.  I just couldn't figure out why there weren't both together:

                select * from caExportBatchRecord
                    where ExportRecordTypeCode in ('SINV, SCRN')
                    and ExportBatchID = 1

                0 records

                I even checked them indiviudally:

                select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV'

                1086 records

                select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN'

                68 records


                Last modified: 2hrs 25mins after originally posted --

                Semicolons: The number one seller of ostomy bags world wide. - dan neely

                D Offline
                D Offline
                Dewm Solo
                wrote on last edited by
                #10

                ??? WTH Subject: 1086 + 86 = 0?

                Brady Kelly wrote:

                select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV' 1086 records select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN' 68 records

                Reading seems to be a challenge here :wtf:

                Dewm Solo - Managed C++ Developer

                B 1 Reply Last reply
                0
                • D Dewm Solo

                  ??? WTH Subject: 1086 + 86 = 0?

                  Brady Kelly wrote:

                  select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV' 1086 records select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN' 68 records

                  Reading seems to be a challenge here :wtf:

                  Dewm Solo - Managed C++ Developer

                  B Offline
                  B Offline
                  Brady Kelly
                  wrote on last edited by
                  #11

                  No, the real challenge seems to realising the subject line has sweet f-all to do with the actual bug. :cool:

                  Semicolons: The number one seller of ostomy bags world wide. - dan neely

                  D 1 Reply Last reply
                  0
                  • B Brady Kelly

                    Caydence wrote:

                    :laugh:

                    You got that right. This is one of those boards where it's OK to point and laugh. You can reserve being helpful for the serious boards. :)

                    Semicolons: The number one seller of ostomy bags world wide. - dan neely

                    P Online
                    P Online
                    PIEBALDconsult
                    wrote on last edited by
                    #12

                    Brady Kelly wrote:

                    OK to point and laugh. You can reserve being helpful for the serious boards

                    Pointing and laughing doesn't help? I should think that it at least drives the lesson home. :-D

                    1 Reply Last reply
                    0
                    • B Brady Kelly

                      No, the real challenge seems to realising the subject line has sweet f-all to do with the actual bug. :cool:

                      Semicolons: The number one seller of ostomy bags world wide. - dan neely

                      D Offline
                      D Offline
                      Dewm Solo
                      wrote on last edited by
                      #13

                      Of course you can always cheat and go back to change it. Then again, miss writing stuff seems to be a habit:

                      Brady Kelly wrote:

                      No, the real challenge seems to realising the subject line has sweet f-all to do with the actual bug.

                      ;P

                      Dewm Solo - Managed C++ Developer

                      B 1 Reply Last reply
                      0
                      • D Dewm Solo

                        Of course you can always cheat and go back to change it. Then again, miss writing stuff seems to be a habit:

                        Brady Kelly wrote:

                        No, the real challenge seems to realising the subject line has sweet f-all to do with the actual bug.

                        ;P

                        Dewm Solo - Managed C++ Developer

                        B Offline
                        B Offline
                        Brady Kelly
                        wrote on last edited by
                        #14

                        Give me a break, I'm still at work at 22h00 on a Friday night. By choice. :doh:

                        Semicolons: The number one seller of ostomy bags world wide. - dan neely

                        1 Reply Last reply
                        0
                        • B Brady Kelly

                          I knew there were invoices and credit notes.  I just couldn't figure out why there weren't both together:

                          select * from caExportBatchRecord
                              where ExportRecordTypeCode in ('SINV, SCRN')
                              and ExportBatchID = 1

                          0 records

                          I even checked them indiviudally:

                          select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SINV'

                          1086 records

                          select count(*) from caExportBatchRecord where ExportRecordTypeCode = 'SCRN'

                          68 records


                          Last modified: 2hrs 25mins after originally posted --

                          Semicolons: The number one seller of ostomy bags world wide. - dan neely

                          B Offline
                          B Offline
                          Babycorn Starfish
                          wrote on last edited by
                          #15

                          try where ExportRecordTypeCode in ('SINV', 'SCRN')

                          1 Reply Last reply
                          0
                          • C codemunch

                            'SINV, SCRN' vs 'SINV', 'SCRN'

                            A Offline
                            A Offline
                            Alsvha
                            wrote on last edited by
                            #16

                            Bah - going and spoiling it :)

                            --------------------------- Blogging about SQL, Technology and many other things

                            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