Results 1 to 12 of 12

Thread: return not the desire number of rows..

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    return not the desire number of rows..

    i have input 10 rows of data...and when i query (select) all the rows i only got the second set of 5 rows!... how come the first set of 5 rows are not shown?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    What's the QUERY

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    Code:
     SELECT Purchase_Requisition_T.PR_NO,Account_Name_Code,Authority_Name,Currency,Project_Name_Code, Date_Raise,Date_Require,Supplier,Purpose,YearR,Total_Cost_In_SGD,Description,Unit_Cost,Qty " & _
                " FROM Purchase_Requisition_T" & _
                " JOIN Account_Charge_To_T ON Purchase_Requisition_T.Account_Charge_To_ID = Account_Charge_To_T.Account_Charge_To_ID" & _
                " JOIN Authority_Name_T ON Purchase_Requisition_T.Authority_Name_ID = Authority_Name_T.Authority_Name_ID" & _
                " JOIN Currency_T ON Purchase_Requisition_T.Currency_ID = Currency_T.Currency_ID" & _
                " JOIN Project_T ON Purchase_Requisition_T.Project_ID = Project_T.Project_ID" & _
                " JOIN DataBase_T ON DataBase_T.PR_ID = Purchase_Requisition_T.PR_ID " & _
                " WHERE Purchase_Requisition_T.Status_ID = ' " & Status & " ' And Purchase_Requisition_T.User_Name_ID = ' " & UserName &

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    there are 5 rows of PR_NO 1 and another 5 rows of PR_NO 2...i only got the 5 rows of PR_NO 2...

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Goh
    Code:
     
                " WHERE Purchase_Requisition_T.Status_ID = ' " & Status & " ' And Purchase_Requisition_T.User_Name_ID = ' " & UserName &
    Gosh... you think it might be this?

    Are the records present with different values for User_Name_ID and Status_ID?

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    yes i am sure all the records have that value....i try out in sql query for the number but still got 5 rows..

  7. #7
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Originally posted by Goh
    Code:
     SELECT Purchase_Requisition_T.PR_NO,Account_Name_Code,Authority_Name,Currency,Project_Name_Code, Date_Raise,Date_Require,Supplier,Purpose,YearR,Total_Cost_In_SGD,Description,Unit_Cost,Qty " & _
                " FROM Purchase_Requisition_T" & _
                " JOIN Account_Charge_To_T ON Purchase_Requisition_T.Account_Charge_To_ID = Account_Charge_To_T.Account_Charge_To_ID" & _
                " JOIN Authority_Name_T ON Purchase_Requisition_T.Authority_Name_ID = Authority_Name_T.Authority_Name_ID" & _
                " JOIN Currency_T ON Purchase_Requisition_T.Currency_ID = Currency_T.Currency_ID" & _
                " JOIN Project_T ON Purchase_Requisition_T.Project_ID = Project_T.Project_ID" & _
                " JOIN DataBase_T ON DataBase_T.PR_ID = Purchase_Requisition_T.PR_ID " & _
                " WHERE Purchase_Requisition_T.Status_ID = ' " & Status & " ' And Purchase_Requisition_T.User_Name_ID = ' " & UserName &
    Did you mispost again, or did you actually miss the apostrophe after UserName at the very end?

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    oppos sorrie again i mispost...kakakak

  9. #9
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629
    Ok so what's the query?

    By the way, any chance that some of the fields you used for the ON conditions have NULL values?

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    kakakak

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908
    wua la igot null values..now trying to fill it up with a string...

  12. #12
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994
    Originally posted by mendhak
    I bet it's lauging! I'm chatting with a mexican who 'text-laughs' with 'jajaja' - reaaalllyyyy strange =).

    Totally unrelated to the subject - Cheers
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

Posting Permissions

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



Click Here to Expand Forum to Full Width