on 03-31-2009 2:16 PM
hi all,
SELECT T0.[Quantity] + (T0.[Quantity]/10), T0.[ItemCode] FROM RDR1 T0 INNER JOIN ORDR T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[DocNum] =[%0]
This query select particular sales order and then item is selected one by one in this order, after every selection we have to again run this query but my client want to select item by pressing ctrl button so that item can be selected at one time.so please provide me updated query.
thanks and regards
rahul
Hi Rahul,
You can use between condition i where clause so as to select a range of items.
Again here you may not be able to select in random the items required, they will be in sequential order only.
SELECT T0.Quantity + (T0.Quantity/10), T0.ItemCode FROM RDR1 T0 INNER JOIN ORDR T1 ON T0.DocEntry = T1.DocEntry WHERE T1.DocNum between [%0] and [%1]
Hope this solves ur issue!!!
Regards
Reno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One way you can try is in this way:
SELECT T0.Quantity * 1.1 AS 'QTY', T0.ItemCode
FROM DBO.RDR1 T0 INNER JOIN DBO.ORDR T1 ON T0.DocEntry = T1.DocEntry
WHERE T1.DocNum LIKE '[%0\]%'
It is all depending on the pattern you try to query. If no pattern, you have to check one by one.
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.