Results 1 to 4 of 4

Thread: sql server

  1. #1
    Addicted Member
    Join Date
    Apr 12
    Posts
    152

    sql server

    I've got several tables one is a table of classes (index by ClassID)
    Another table is "ClassList" (index by ClassListID) the second column is ClassID how can I search for all students who have the ClassID of 9 for example?

    I have this code

    SELECT * FROM ClassData WHERE ClassID = 6

    It returns nothing in SQL Server even though I can see rows in ClassData with the ClassID of 6.

    What is wrong?

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 05
    Location
    Philippines
    Posts
    10,277

    Re: sql server

    From where you are running your sql?

  3. #3
    Frenzied Member
    Join Date
    May 06
    Location
    some place in the cloud
    Posts
    1,652

    Re: sql server

    Table's name is "ClassList" or "ClassData" ?
    JG


    ... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...

  4. #4
    Unmoderated abhijit's Avatar
    Join Date
    Jun 99
    Location
    Chit Chat Forum.
    Posts
    3,117

    Re: sql server

    Quote Originally Posted by dee-u View Post
    From where you are running your sql?
    Quote Originally Posted by jggtz View Post
    Table's name is "ClassList" or "ClassData" ?
    Where are you running the SQL? Is it on the query analyzer window or your application?


    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •