|
-
Feb 16th, 2004, 03:27 AM
#1
Thread Starter
Fanatic Member
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?
-
Feb 16th, 2004, 03:30 AM
#2
-
Feb 16th, 2004, 03:33 AM
#3
Thread Starter
Fanatic Member
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 &
-
Feb 16th, 2004, 03:34 AM
#4
Thread Starter
Fanatic Member
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...
-
Feb 16th, 2004, 03:37 AM
#5
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?
-
Feb 16th, 2004, 03:43 AM
#6
Thread Starter
Fanatic Member
yes i am sure all the records have that value....i try out in sql query for the number but still got 5 rows..
-
Feb 16th, 2004, 03:52 AM
#7
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?
-
Feb 16th, 2004, 03:54 AM
#8
Thread Starter
Fanatic Member
oppos sorrie again i mispost...kakakak
-
Feb 16th, 2004, 05:10 AM
#9
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?
-
Feb 16th, 2004, 05:15 AM
#10
-
Feb 16th, 2004, 05:47 AM
#11
Thread Starter
Fanatic Member
wua la igot null values..now trying to fill it up with a string...
-
Feb 16th, 2004, 10:00 AM
#12
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|