l*n
2 楼
a table(15k records) with codes to indicate state. now I have to compare it
with another table, so need to convert all state codes to state
abbreviations.
any quick way to do it? thanks
with another table, so need to convert all state codes to state
abbreviations.
any quick way to do it? thanks
x*y
4 楼
any quick way to do it?
g*5
9 楼
直径两尺半? 那么大?
30英寸的花盆, 很多果树都可以种了. 桔子, 无花果, 枣树, 水梨, 桃子, 柿子, 葡
萄等等都可以. 当然了, 盆栽果树, 修枝的功夫就比较重要了. 如果有, 尽量选dwarf
或semi-dwarf的品种.
30英寸的花盆, 很多果树都可以种了. 桔子, 无花果, 枣树, 水梨, 桃子, 柿子, 葡
萄等等都可以. 当然了, 盆栽果树, 修枝的功夫就比较重要了. 如果有, 尽量选dwarf
或semi-dwarf的品种.
l*n
10 楼
OK, Beijing
This is my problem.
Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
event contains many events
Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
is using abv, but STATE2 use code, which has to use table 3 to know the abv
. Each state1(to 7) only contains 1 state or nothing.
Table 3 is Statecode, State.
now I want to know how the relationship between table 1 and table 3.
I want to know in year 2008 and 2007, in each state how man
【在 B*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 不明白。
:
: like
: of
This is my problem.
Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
event contains many events
Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
is using abv, but STATE2 use code, which has to use table 3 to know the abv
. Each state1(to 7) only contains 1 state or nothing.
Table 3 is Statecode, State.
now I want to know how the relationship between table 1 and table 3.
I want to know in year 2008 and 2007, in each state how man
【在 B*****g 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 不明白。
:
: like
: of
n*6
11 楼
Is it for production? Or just for your research?
If it is just for your research, change the full state name to abv and put
them in a temp table might be a way with clear logic for later process.
abv,
STATE1
abv
【在 l******n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: OK, Beijing
: This is my problem.
: Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
: event contains many events
: Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
: is using abv, but STATE2 use code, which has to use table 3 to know the abv
: . Each state1(to 7) only contains 1 state or nothing.
: Table 3 is Statecode, State.
: now I want to know how the relationship between table 1 and table 3.
: I want to know in year 2008 and 2007, in each state how man
If it is just for your research, change the full state name to abv and put
them in a temp table might be a way with clear logic for later process.
abv,
STATE1
abv
【在 l******n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: OK, Beijing
: This is my problem.
: Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
: event contains many events
: Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
: is using abv, but STATE2 use code, which has to use table 3 to know the abv
: . Each state1(to 7) only contains 1 state or nothing.
: Table 3 is Statecode, State.
: now I want to know how the relationship between table 1 and table 3.
: I want to know in year 2008 and 2007, in each state how man
B*g
12 楼
好像有点复杂。
state3-7是word,还是code?
你用那个DB? version?
abv,
STATE1
abv
are
【在 l******n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: OK, Beijing
: This is my problem.
: Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
: event contains many events
: Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
: is using abv, but STATE2 use code, which has to use table 3 to know the abv
: . Each state1(to 7) only contains 1 state or nothing.
: Table 3 is Statecode, State.
: now I want to know how the relationship between table 1 and table 3.
: I want to know in year 2008 and 2007, in each state how man
state3-7是word,还是code?
你用那个DB? version?
abv,
STATE1
abv
are
【在 l******n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: OK, Beijing
: This is my problem.
: Table 1 has Year, STATES, Event. STATES may contain many states and use abv,
: event contains many events
: Table 2 has Year, STATE1, STATE2,..., STATE7, Event1,...,Event10. But STATE1
: is using abv, but STATE2 use code, which has to use table 3 to know the abv
: . Each state1(to 7) only contains 1 state or nothing.
: Table 3 is Statecode, State.
: now I want to know how the relationship between table 1 and table 3.
: I want to know in year 2008 and 2007, in each state how man
B*g
16 楼
想了想,还是再建个table吧。
Table4
Table4 has ID, Year, STATES, Event, STATES_MIX
(ID is autonumber)
INSERT INTO Table4 (Year, Event, STATES_MIX)
SELECT Year, Event(1-10), STATE(1-7)
WHERE Event(1-10) is not null
AND STATE(1-7) is not null
***70个insert
Option: delete the dup records in table4
Table4 create index on state_mix
UPDATE table4 t4 inner join table3 t3 on t4.state_mix = t3.Statecode set t4.
state = t3.state.
UPDATE table4 t4 inner join table3 t3 on t4.state_mix = t3.State set t4.stat
e = t3.s
【在 l******n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: state 1- 7 all use text, but some of them are abv, some are codes. And the
: positions are not fixed.
: I am using access and it is the only one I can use.
Table4
Table4 has ID, Year, STATES, Event, STATES_MIX
(ID is autonumber)
INSERT INTO Table4 (Year, Event, STATES_MIX)
SELECT Year, Event(1-10), STATE(1-7)
WHERE Event(1-10) is not null
AND STATE(1-7) is not null
***70个insert
Option: delete the dup records in table4
Table4 create index on state_mix
UPDATE table4 t4 inner join table3 t3 on t4.state_mix = t3.Statecode set t4.
state = t3.state.
UPDATE table4 t4 inner join table3 t3 on t4.state_mix = t3.State set t4.stat
e = t3.s
【在 l******n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: state 1- 7 all use text, but some of them are abv, some are codes. And the
: positions are not fixed.
: I am using access and it is the only one I can use.
j*n
18 楼
不好整,先解决 table1 再说其他:
In States column of table1, the states are delimited by space, so you may
have to come out a string process to read characters one by one, from begin
to the end. put each state as a element of an array.
In States column of table1, the states are delimited by space, so you may
have to come out a string process to read characters one by one, from begin
to the end. put each state as a element of an array.
相关阅读
trigger vs. log ?sql server 面试题 (9)How to negotiate Job offer?谁能帮我看看这个sql query的优化求教一个数据库面试题,多对多关系表设计 (转载)出题了Help! A cluster method in SQL请问:有没有什么免费工具提交Data form to SQL?问一个关于SQL的问题有什么软件可以显示 SQL 2K user account password in TXT format?MySQL creator: version 5.1 released with "fatal bugs"(ZZ)Donated 88.88 (new cash) to database board.这里有 Oracle DBA 吗?你们是如何准备10g OCA/OCP 考试的?请教一个问题,急, 谢谢这两天mysql总是出现一个问题how to extract large number of rows from sql server?ORACLE总是莫名其妙地执行我没有输入的命令SQL,UNION问题到哪儿去找一些sql script来读呢Undefined function 'Date' in Expression