Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT DISTINCT tblServiceLevels.SLDesc, tblServiceLevels.SLMinDays, tblServiceLevels.SLMaxDays
FROM tblServiceLevels, tblSHPTypes INNER JOIN (tblShipFromLocations INNER JOIN (tblCarriers INNER JOIN tblZipCodeDest ON tblCarriers.CarrIndex = tblZipCodeDest.ZipCodeCarrier) ON
tblShipFromLocations.LocIndex = tblZipCodeDest.ZipCodeOrg) ON tblSHPTypes.SHPTypeIndex = tblCarriers.CarrShpType
WHERE (tblShipFromLocations.LocName="Austin" Or tblShipFromLocations.LocName="Nashville")
AND tblZipCodeDest.ZipCodeDest=501
AND tblSHPTypes.SHPTypeName="Bulk"
AND tblZipCodeDest.ZipCodeTransitTime<>0
And tblZipCodeDest.ZipCodeTransitTime<=[SLMaxDays]
ORDER BY tblServiceLevels.SLMinDays, tblServiceLevels.SLMaxDays;
--- temp query ---
- Inputs to Query -
Table 'tblServiceLevels'
Table 'tblSHPTypes'
Using index 'PrimaryKey'
Having Indexes:
PrimaryKey 2 entries, 1 page, 2 values
which has 1 column, fixed, unique, clustered and/or counter, primary-key, no-nulls
Table 'tblShipFromLocations'
Using index 'LocIndex'
Having Indexes:
LocIndex 2 entries, 1 page, 2 values
which has 1 column, fixed, clustered and/or counter
Loc_ZipCode 1 entrie, 1 page, 1 value
which has 1 column, fixed
Loc_Desc 1 entrie, 1 page, 1 value
which has 1 column, fixed
Table 'tblCarriers'
Using index 'CarrIndex'
Having Indexes:
CarrIndex 6 entries, 1 page, 6 values
which has 1 column, fixed, unique, clustered and/or counter, primary-key, no-nulls
Table 'tblZipCodeDest'
- End inputs to Query -
01) Restrict rows of table tblZipCodeDest
using rushmore
for expression "tblZipCodeDest.ZipCodeDest=501"
then test expression "Not tblZipCodeDest.ZipCodeTransitTime=0"
02) Inner Join result of '01)' to table 'tblCarriers'
using index 'tblCarriers!CarrIndex'
join expression "tblZipCodeDest.ZipCodeCarrier=tblCarriers.CarrIndex"
03) Inner Join result of '02)' to table 'tblSHPTypes'
using index 'tblSHPTypes!PrimaryKey'
join expression "tblCarriers.CarrShpType=tblSHPTypes.SHPTypeIndex"
then test expression "tblSHPTypes.SHPTypeName="Bulk""
04) Inner Join result of '03)' to table 'tblShipFromLocations'
using index 'tblShipFromLocations!LocIndex'
join expression "tblZipCodeDest.ZipCodeOrg=tblShipFromLocations.LocIndex"
then test expression "tblShipFromLocations.LocName In ("Austin","Nashville")"
05) Inner Join result of '04)' to table 'tblServiceLevels'
using X-Prod join
then test expression "tblZipCodeDest.ZipCodeTransitTime<=[SLMaxDays]"
06) Sort Distinct result of '05)'