我有两张table
SETID CRSE_ID COMPONENT CAMPUS
A 10001 LAB C1
A 10002 LEC C1
A 10003 LAB C1
A 10004 LAB C1
表2
SETID ITEM TYPE DESCR CAMPUS
A 300000220010 Book C1
A 300000220020 Book C2
A 300000220030 Book C1
A 300000220040 Book C2
A 300000220050 Book C1
A 300000220060 Book C2
A 300000220070 Book C1
我想得到一个结果,其中项目类型Map到每一行
SETID CRSE_ID COMPONENT CAMPUS ITEM_TYPE
A 10001 LAB C1 300000220010
A 10001 LEC C1 300000220030
A 10001 LAB C1 300000220050
A 10001 LAB C1 300000220070
A 10002 LAB C1 300000220010
A 10002 LEC C1 300000220030
A 10002 LAB C1 300000220050
A 10002 LAB C1 300000220070
A 10003 LAB C1 300000220010
A 10003 LEC C1 300000220030
A 10003 LAB C1 300000220050
A 10003 LAB C1 300000220070
A 10004 LAB C1 300000220010
A 10004 LEC C1 300000220030
A 10004 LAB C1 300000220050
A 10004 LAB C1 300000220070
项目类型的顺序随着新客户id的增加而增加。项目类型以奇数结尾
1条答案
按热度按时间t9eec4r01#
我认为您只需要添加一个序列号,并将其用作
join
条件: