Cześć Guys
I am obecnie using przodować z odbc datasource query pewny akcyjny linia od nasz sql serwer baza danych using the nasz code
SELECT StockItem.Code, RTLPrdHierarchy.Description, RTLPrdHierarchy_2.HierNodeName, BinItem.BinName, Warehouse.Description, (BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock), StockItem.AverageBuyingPrice, (BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock) *StockItem. AverageBuyingPrice, StockItem.Manufacturer, BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock-BinItem.QuantityAllocatedSOP-BinItem.QuantityAllocatedStock
FROM dbo.BinItem BinItem, dbo.RTLPrdHierarchy RTLPrdHierarchy, dbo.RTLPrdHierarchy RTLPrdHierarchy_1, dbo.RTLPrdHierarchy RTLPrdHierarchy_2, dbo.RTLStockItem RTLStockItem, dbo.StockItem StockItem, dbo. Magazynowy Magazyn, WarehouseItem WarehouseItem
WHERE StockItem.Code = RTLPrdHierarchy.HierNodeName I RTLPrdHierarchy.ParentPrdHierNodeId = RTLStockItem.PrdHierNodeId I RTLStockItem.PrdHierNodeId = RTLPrdHierarchy_1.PrdHierNodeId I BinItem.ItemID = StockItem.ItemID I WarehouseItem.WarehouseItemID = BinItem.WarehouseItemID I Warehouse.WarehouseID = WarehouseItem.WarehouseID I RTLPrdHierarchy_1.ParentPrdHierNodeId = RTLPrdHierarchy_2.PrdHierNodeId I (((BinItem.ConfirmedQtyInStock+BinItem. UnconfirmedQtyInStock) <>$0) I (RTLStockItem.Code Lubić (? + ' % ')) I (StockItem.Manufacturer Lubić (? + ' % '))) ORDER StockItem.Code
I am the zapytanie w delphi ale i utrzymywać błąd "brakować dobrze wycena". Tutaj być the kod i próbować w ten sposób far.
'SELECT StockItem.Code, RTLPrdHierarchy.Description, RTLPrdHierarchy_2.HierNodeName, BinItem.BinName, Warehouse.Description, (BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock), StockItem.AverageBuyingPrice, (BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock) *StockItem. AverageBuyingPrice, StockItem.Manufacturer, BinItem.ConfirmedQtyInStock+BinItem.UnconfirmedQtyInStock-BinItem.QuantityAllocatedSOP-BinItem.QuantityAllocatedStock OD dbo.BinItem BinItem, dbo.RTLPrdHierarchy RTLPrdHierarchy, dbo.RTLPrdHierarchy RTLPrdHierarchy_1, dbo.RTLPrdHierarchy RTLPrdHierarchy_2, dbo.RTLStockItem RTLStockItem, dbo.StockItem StockItem, dbo. Magazynowy Magazyn, dbo.WarehouseItem WarehouseItem "+ 'WHERE StockItem.Code=RTLPrdHierarchy.HierNodeName I RTLPrdHierarchy.ParentPrdHierNodeId=RTLStockItem.PrdHierNodeId I RTLStockItem.PrdHierNodeId=RTLPrdHierarchy_1.PrdHierNodeId I BinItem.ItemID=StockItem.ItemID I WarehouseItem.WarehouseItemID=BinItem.WarehouseItemID I Warehouse.WarehouseID=WarehouseItem.WarehouseID I RTLPrdHierarchy_1.ParentPrdHierNodeId=RTLPrdHierarchy_2.PrdHierNodeId I (((BinItem.ConfirmedQtyInStock+BinItem. UnconfirmedQtyInStock) <>$0) I RTLStockitem.code LUBIĆ ('' %" + edit1.text + "% '') ROZKAZ StockItem.Code";
Could zadawalać zadawalać pomagać zadawalać życzliwy delphi query.
Thank ty w advance
|