从其他表中提取数据 [英] PULLING data from other table

查看:87
本文介绍了从其他表中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个表:

表一:
原始拉链
目的地邮编
地址

表二:
原始拉链
目的地拉链不足
目的地拉链高
运输成本


我希望来自表一的所有数据(除加法),如果源邮政编码与从表一和两个相匹配,则要从表二获取成本.并且如果表一中的目标邮编介于目标邮编的低邮编和目标邮编的高邮编之间.如果不匹配,则返回空白.

桌子看起来像这样

表一:
原始zip目标zip地址
33625 1500 123 park st
33625 2000 123 parl st

表二
原始zip目标zip低目标zip高成本

33625 1000 1999 $ 10

返回destin zip成本
33625 1500 $ 10
33625 2000(空白)





帮助,仍然是菜鸟

请帮我!!!!!!

I have two tables:

table one:
origin zip
destination zip
address

table two:
origin zip
destination zip low
destination zip high
cost of shipment


I want all of the data from table one(EXCEPT ADD) and I want the cost from table two if the origin zip code matches FROM TABLES ONE AND TWO. and if the destination zip from table one falls between the zip from destination zip low and destination high. if no match return a blank.

tables looks like this

table one:
origin zip dest zip address
33625 1500 123 park st
33625 2000 123 parl st

table two
origin zip dest zip low destination zip hight cost

33625 1000 1999 $10

return destin zip cost
33625 1500 $10
33625 2000 (blank)





help, still a rookie

help me please!!!!!!

推荐答案

10

返回destin zip成本
33625 1500
10

return destin zip cost
33625 1500


10
33625 2000(空白)





帮助,仍然是菜鸟

请帮帮我!!!!!!
10
33625 2000 (blank)





help, still a rookie

help me please!!!!!!


这篇关于从其他表中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆