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 querry for list of branches for each company

how to querry for list of branches for each company

Scheduled Pinned Locked Moved Database
tutorialdatabasesql-serversysadmin
2 Posts 2 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.
  • D Offline
    D Offline
    developerit
    wrote on last edited by
    #1

    hi, iam using sql server 2000 , the table fields are brabchid nvarchar(50), branchname nvarchar(50), companyid nvarchar(50), startdate datetime, enddate datetime 1)how to querry for list of branches for each company please give me example which helps me.

    M 1 Reply Last reply
    0
    • D developerit

      hi, iam using sql server 2000 , the table fields are brabchid nvarchar(50), branchname nvarchar(50), companyid nvarchar(50), startdate datetime, enddate datetime 1)how to querry for list of branches for each company please give me example which helps me.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Get a book and work through some examples. Fire up query analyser and try something yourself

      SELECT
      C.ComapnyName,
      B.BranchName
      FROM Branch B
      INNER JOIN Company C ON C.CompanyID = B.ComapnID

      Never underestimate the power of human stupidity RAH

      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