【 以下文字转载自 ebiz 讨论区 】 发信人: wintertulip (我天天在等她的来信,信箱永远是空的), 信区: ebiz 标 题: Tax Status Certification 发信站: BBS 未名空间站 (Sun Sep 14 12:23:41 2008) 登陆到BOA账户,里面有这个么一个tax status certification 这个是什么? In order to service your account(s) correctly, we need the Tax Status Certification for your deposit account(s). The form below will allow you to electronically complete the required documentation. We need to display your Social Security number below so that we can be sure that it is correct on file. Since yo
嗯,对我这个外行复杂,对各位大牛可能是很简单的啦。 两个表 Table Categories Id | Brand1 | Brand2 | Other Columns 1 | X | Y 2 | Z | Table Products Id | Brand | Other Columns 1 | X 2 | X 3 | X 4 | X 5 | Y 6 | Y 7 | Y 8 | Z 9 | Z 也就是说,每个产品类别有一到两个品牌,而每个品牌有很多个产品。 现在需要对根据其他条件选定的若干产品类别,挑出每个类别的每个 品牌要随机两个产品,提取一个产品列表。求搞定T-SQL,拜谢
n*3
6 楼
交流交流吧,特别是参考书籍。请站内发信给我吧。
S*I
7 楼
确认要不要银行代扣利息税
to sure
【在 w*********p 的大作中提到】 : 【 以下文字转载自 ebiz 讨论区 】 : 发信人: wintertulip (我天天在等她的来信,信箱永远是空的), 信区: ebiz : 标 题: Tax Status Certification : 发信站: BBS 未名空间站 (Sun Sep 14 12:23:41 2008) : 登陆到BOA账户,里面有这个么一个tax status certification : 这个是什么? : In order to service your account(s) correctly, we need the Tax Status : Certification for your deposit account(s). The form below will allow you to : electronically complete the required documentation. : We need to display your Social Security number below so that we can be sure
90%以上的数据库版SQL问题可以用partition by解决 Oracle version: WITH t AS ( SELECT c.category, p.brand, p.product, ROW_NUMBER() OVER (PARTITION BY c. category, p.brand ORDER BY dbms_random.value) rn FROM Categories c, Products p WHERE (p.brand = c.brand1 OR p.brand = c.brand2)) SELECT category, brand, product FROM t WHERE rn <= 2
【在 c*******e 的大作中提到】 : 嗯,对我这个外行复杂,对各位大牛可能是很简单的啦。 : 两个表 : Table Categories : Id | Brand1 | Brand2 | Other Columns : 1 | X | Y : 2 | Z | : Table Products : Id | Brand | Other Columns : 1 | X : 2 | X
c*e
21 楼
太谢谢了,赞美给出了翔实的答案,好人一生平安!包子奉上
【在 B*****g 的大作中提到】 : 90%以上的数据库版SQL问题可以用partition by解决 : Oracle version: : WITH t AS ( : SELECT c.category, p.brand, p.product, ROW_NUMBER() OVER (PARTITION BY c. : category, p.brand ORDER BY dbms_random.value) rn : FROM Categories c, Products p : WHERE (p.brand = c.brand1 OR p.brand = c.brand2)) : SELECT category, brand, product : FROM t : WHERE rn <= 2
90%以上的数据库版SQL问题可以用partition by解决 Oracle version: WITH t AS ( SELECT c.category, p.brand, p.product, ROW_NUMBER() OVER (PARTITION BY c. category, p.brand ORDER BY dbms_random.value) rn FROM Categories c, Products p WHERE (p.brand = c.brand1 OR p.brand = c.brand2)) SELECT category, brand, product FROM t WHERE rn <= 2
【在 B*****g 的大作中提到】 : 90%以上的数据库版SQL问题可以用partition by解决 : Oracle version: : WITH t AS ( : SELECT c.category, p.brand, p.product, ROW_NUMBER() OVER (PARTITION BY c. : category, p.brand ORDER BY dbms_random.value) rn : FROM Categories c, Products p : WHERE (p.brand = c.brand1 OR p.brand = c.brand2)) : SELECT category, brand, product : FROM t : WHERE rn <= 2