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. Database & SysAdmin
  3. Database
  4. SQL query

SQL query

Scheduled Pinned Locked Moved Database
databasesalesquestion
5 Posts 3 Posters 0 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.
  • W Offline
    W Offline
    webhay
    wrote on last edited by
    #1

    I have two customer and order table how can i return all customer has no orders. Thank you hoho

    P K 2 Replies Last reply
    0
    • W webhay

      I have two customer and order table how can i return all customer has no orders. Thank you hoho

      P Offline
      P Offline
      P_pk
      wrote on last edited by
      #2

      i didn't get the clear picture.give the condition by using 'where'

      PPK

      1 Reply Last reply
      0
      • W webhay

        I have two customer and order table how can i return all customer has no orders. Thank you hoho

        K Offline
        K Offline
        Krish KP
        wrote on last edited by
        #3

        your question is not clear. can you please provide table structure and sample data. which will help us in solving your query.

        Regards KP

        W 1 Reply Last reply
        0
        • K Krish KP

          your question is not clear. can you please provide table structure and sample data. which will help us in solving your query.

          Regards KP

          W Offline
          W Offline
          webhay
          wrote on last edited by
          #4

          Thank you for you reply. I have customer table and Customer order and there is a PK in the customer table and FK in the order table i need to get all coustomer has no record in the order tables Thank you

          K 1 Reply Last reply
          0
          • W webhay

            Thank you for you reply. I have customer table and Customer order and there is a PK in the customer table and FK in the order table i need to get all coustomer has no record in the order tables Thank you

            K Offline
            K Offline
            Krish KP
            wrote on last edited by
            #5

            this can be done using two methods 1. outer join 2. not exists you can choose one on these two.

            Regards KP

            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