[syntax="sql"]SELECT
nikebarcode.Code1,
nikebarcode.Code2,
nikebarcode.Shipment,
nikebarcode.Package,
shipmentinfo.week,
shipmentinfo.trailer,
shipmentinfo.Shipment,
shipmentinfo.Customer,
shipmentinfo.city,
shipmentinfo.no,
shipmentinfo.country,
shipmentinfo.Name,
shipmentinfo.Colli,
shipmentinfo.Weight,
shipmentinfo.Unit,
shipmentinfo.ProductName,
shipmentinfo.DeliveryDate,
shipmentinfo.time,
nikebarcode.MISSING,
shipmentinfo.Waybilldate,
shipmentinfo.WaybillCreated,
shipto.ID,
shipto.CustomerCode,
shipto.DeliveryName,
shipto.DeliveryAddress,
shipto.DeliveryAddress2,
shipto.DeliveryDistrict,
shipto.DeliveryCity,
shipto.DeliveryPostCode,
shipto.Deliverycode,
billto.ID,
billto.CustomerCode,
billto.CustomerName,
billto.Address,
billto.Address2,
billto.District,
billto.City,
billto.Postcode,
billto.TaxOffice,
billto.TaxNumber
FROM
billto,
shipto,
shipmentinfo,
nikebarcode
WHERE
(nikebarcode.code2 = 309) AND
(shipmentinfo.shipment = nikebarcode.shipment) AND
(shipmentinfo.customer = shipto.customercode) AND
(billto.customercode = shipto.customercode)[/syntax]
Thats my query.. I want to add waybill number to the result of this query.
But I have to control shipment number and customer code when I am adding waybill numbersto the query. For example
I have a report there is a record limit perpage its 15.then if customercode is same with the prior i want to give same waybill number to both of the shipments till that recorcount comes to 15 after than waybill number must be increase by 1...
I wish its clear.. Thanks..
update record by number
Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs
Moderators: gto, cipto_kh, EgonHugeist
Return to “6.5.1 (alpha) - 6.6.x (beta)”
Jump to
- Links
- ↳ Bugtracker
- ↳ Downloads
- ↳ Subversion
- ↳ GitHub
- ZEOS Library - General
- ↳ Announcements
- ↳ Downloads
- ↳ Documentations
- ↳ Tutorials
- ↳ ZDBC (ZEOS Database Connectivity)
- ↳ User Contributions
- ↳ Feature Requests
- ↳ User Patches
- ZEOS DBO v8.x
- ↳ ZeosLib 7.3/8.0 Forum
- ZEOS DBO v7.x
- ↳ ZeosLib 7.2 Forum
- ↳ ZeosLib 7.1 stable Forum
- ↳ ZeosLib 7.0 Stable Forum
- ↳ ZeosLib 7.0 Beta Forum
- SQL Servers and Databases
- ↳ ADO
- ↳ DB2
- ↳ Firebird
- ↳ Interbase
- ↳ MS SQL Server
- ↳ MySQL
- ↳ Oracle
- ↳ OleDB (Microsoft Windows)
- ↳ ODBC
- ↳ PostgreSQL
- ↳ SQLite
- ↳ Sybase ASE
- Compiler related
- ↳ CBuilder / C++
- ↳ Lazarus / Freepascal
- ZEOS DBO V 6.x
- ↳ 6.6 - stable
- ↳ 6.5.1 (alpha) - 6.6.x (beta)
- ↳ 6.1.5
- ↳ Other 6.x Versions
- ↳ Bug Reports
- ZEOS DBO V 5.x
- ↳ 5.x Versions
- Software projects using ZeosLib
- ↳ SQLite Administrator
- Other and Non-Technical
- ↳ Off Topic