topics

全部话题 - 话题: firstname
首页 2 3 4 5 6 (共6页)
l*****n
发帖数: 92
1
来自主题: Database版 - 求教高手:odbc更新数据出错
数据库是access xp, 采用的是system dsn,其余都是缺省设置。
更新记录语句为:
update people set lastname='hhe', firstname='hehe', middlename='',
emailaddress='',
homepage='', institute='University', memo='' where peopleid=1
出错信息如下:
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must
use an updateable query.,
SQL state S1000 in SQLExecDirect in people_save.php on line 40
但是读取数据没有任何错误,请问可能是什么原因,怎么解决?谢谢
B****a
发帖数: 154
2
来自主题: Database版 - SQL question(在线等,谢谢!!)
Tables and keys:
patient (patientID, lastName, firstName, bMonth, bDay, bYear,
accountID) key: patientID
account (accountID, balance, responsibleParty) key: accountID
visit (patientID, vMonth, vDay, vYear, description, charge,
doctorID) key: patientID, vMonth, vDay, vYear
doctor (doctorID, drName, degreeYear) key: doctorID
diagnosis (dCode, dDescription) key: dCode
visitDiagnosis (patientID, vMonth, vDay, vYear, dCode) key:
patientID, vMonth, vDay, vYear, dCode
Query: Which patient(s) have been
l******e
发帖数: 956
3
来自主题: Database版 - A question about recursive query
I have a table like
id parent_id lastname firstname
1 0 A 1
2 0 B 1
3 1 A 2
4 3 A 3
....
So you can see id 1 is parent of id 3, id 3 is parent of id 4
How to right a single SQL query, when you give id = 1, it will return its own
record along with id 3 and id 4 records as its child and grandchild ?
Also, how to write a SQL query, when you gice id = 4, it will return its own
re
b**e
发帖数: 2
4
来自主题: Database版 - A question about recursive query
For your first question, and for the second onw it's pretty much same.
Sorry it's not simple. We have to wait for Yukon to write simple recursive
queries
(For microsoft sql server)
Create Table #tmpTABLE (ID int, parent_id int, lastName varchar(50), firstName
varchar(50) )
declare xTmp scroll cursor for SELECT * from tablename
open xTmp
declare @myid int
declare @pid int
declare @lName varchar(50)
declare @fName varchar(50)
declare @found bit
declare @tmpID int
declare @tmpPID int
declare @num i
d********y
发帖数: 2114
5
来自主题: Database版 - 怎么去除duplicates
假如有一个表,没有primary key。
属性例如,firstName, lastName, major, dateOfBirth。
怎么去除这个表里面重复的?
除了select distinct然后存到新表里面。
i****a
发帖数: 36252
6
it's very clear: data in the field named "FirstName" is too long for your
database or SSIS definition


or
26
Pipeline
i*****w
发帖数: 75
7
Open your destination (Flat file connectiong string) and increase the column
length of the FirstName column and try again.


or
26
Pipeline
g***l
发帖数: 18555
8
是的,超长,SOURCE TABLE里CHECK一下FIRSTNAME的长度,MAX(LEN(FRISTANME)),如果
有SPACE要TRIM
D*******z
发帖数: 319
9
原来是中文的原因
id title firstname lastname
135177135 NULL 呵呵 嘿嘿
r*****l
发帖数: 2859
10
来自主题: Database版 - How to find all duplicate record in SQL?
What is the meaning or "+" in "firstname+lastname+address". I am not a SQL
expert so forgive my simple question :)
m*********y
发帖数: 389
11
来自主题: Database版 - How to find all duplicate record in SQL?
+ is concatenation ; we use that a lot to find out and furthuer more, to
remove duplicate record. But, first thing first, how do you define your
duplicate is up to you.
you can use the Plus sign to concatenate string together...
Usually a table contains many, if not thousands of same first name, so, only
the same firstname&lastname&address combination together truly counts as a
duplicate.. it depends on how you define *duplicate* in your own table..
m*********y
发帖数: 389
12
来自主题: Database版 - How to find all duplicate record in SQL?
How to add a hash? I used the Checksum function, but I heard that HashType
is more powerful than Checksum. Anyway, let's say you want hash on the the
combination of first name, last name and address, you can do this:
Alter table person
Add hash as checksum(firstname,lastname,address)
After you created hash, searching for duplicate record is much easier, you
just need to run below query:
select hash,count(*) from person group by hash having count(*)>1
A*******n
发帖数: 625
13
来自主题: Database版 - SQL中怎样用定制列排序?
I think "order by" doesn't know what the "Name" is. "Name" is p.firstname+'
'+p.lastname, but it is for result after the query run.
r****5
发帖数: 618
14
来自主题: Database版 - Load .cvs to database
I have a .cvs file to load to database. The requirement are:
• In cases with first, last, and middle names, the names should be
merged into a single field as “Lastname, Firstname”
• Any records with an “Address2” value should have both address
parts combined into a single field
• Also, be sure to specify a BAD file location as you will need to
process the records in this file in the steps that follow.
My control file is:
REM This is to load a file, Part 1, assignment 3
LOAD D... 阅读全帖
z**********8
发帖数: 2049
15
来自主题: Database版 - list duplicators in one table
如果要在一个table里面,寻找和列出,姓名相同的records,
PERSONID, FIRSTNAME, LASTNAME, EMAIL
使用self join? 急求?
我只能找出哪些名字是有duplication,但是不知道如何LIST THE
SE RECORDS WITH ITS OWN EMAIL AND PERS
ONID RESPETIVELY.
xiexie
s**********o
发帖数: 14359
16
来自主题: Database版 - list duplicators in one table
GROUP BY PERSONID, FIRSTNAME, LASTNAME, EMAIL
HAVING COUNT(*)>1
c*********e
发帖数: 16335
17
要他在3个小時内编个web form application register page,每个新用户要有用户名,
firstname,lastname,dob,email,头像,家
庭住址,电话,security question,security answer.admin能指定哪个manager能看到
哪个user的帐户信息。
让他把整个web app和相应的database打包,发给你。
B*****g
发帖数: 34098
18
sorry,太忙没时间搞。这个是我前一段问的dynamic ETL map要用的。
parse source file没啥问题,map to target(oracle db)有问题。
假设source是

FixedLength



firstname
text
10


lastname
text
10



target map是



testschema
c*****t
发帖数: 1879
19
ft... 下次你问问题一定要贴全。。。你这问的让所有人都误解了。。。
你自己弄个 hashmap,把 firstname 等放进去。然后自己 parse 下那个
expression 就是了。又不是多难的 expression 。
不过我估计你 java 不是太熟。
s********h
发帖数: 286
20
来自主题: Programming版 - C++ 初学者请教一个 iostream 的问题
多谢你啊!你的方法真的解决了问题!等下马上给你发包子啊!
不过还是不太理解,为什么这样的语句后面接着读入 hoursWorked 就没问题,可是它
如果接着读入 firstName 就出问题呢?
j*****a
发帖数: 436
21
来自主题: Programming版 - C++ 初学者请教一个 iostream 的问题
hoursWorked也是数字,当读入时,它扫描你的输入,跳过'\n'符号而只接受后面的数字。而读入firstName时,你的输入循环,一上来就遇到'\n'符号,直接就结束了输入循环。所以要在循环前加一个cin.get()把你输入的回车符号给吃掉。
s********h
发帖数: 286
22
来自主题: Programming版 - C++ 初学者请教一个 iostream 的问题
哦,我明白了!真谢谢你啊!
包子已经转了,请你查收吧!:)

数字。而读入firstName时,你的输入循环,一上来就遇到'\n'符号,直接就结束了输
入循环。所以要在循环前加一个cin.get()把你输入的回车符号给吃掉。
G***l
发帖数: 355
23
来自主题: Programming版 - 大家难道全是半路出家?
我觉得你还是挺认真单纯讨论问题。恰好我hql跟linq都用过挺多。hql只是hibernate
的一个类sql的东西。linq的有那种sql like的语法写法,但是那只是linq的很小一部
分,而且完全可以不那么写。linq说到底是fp的东西,hql跟fp一点不沾边。写几个例
子。
比如你有BankAccount类,里面有一些账户信息。你有一个list存了一堆account,暂且
叫accounts吧
你可以写:
var goodAccounts = accounts.Where(x => x.Balance > 1000);
或者像是
IQualifier qualifier = new CreditQualificationChecker();
var qualifiedAccountOwners =
accounts.Where(x => qualifier.Check(x)).
Select(x => x.FirstName + x.LastName);
这些还不是什么高级的东西,都是最最简单的用法,你不觉得比写raw code要好很多吗
?写的人方便,读的... 阅读全帖
c*e
发帖数: 17
24
来自主题: Programming版 - cassandra db design
I am new to cassandra and want to know how to design a security db.
In RDBMS, it's modeled like belows:
1. membership table uid, username, password,email,etc.
2. user table uid,firstname,lastname, phone,address,etc.
3. password history table pid,uid,passwordhashed,etc
4. roles rid, rolename, description
5. Permission peid,permissionname,description
6. role-permission-mapping rid,peid
7. user-role uid,rid4
some basic operations:
1. query if user has role
2. query if user has permission
3. CRUD pe... 阅读全帖
i****t
发帖数: 61
25
来自主题: Programming版 - 问几个javascript面试题
function PatientSorter () {
var stringComparer = function (a, b) {
return a.toLowerCase() < b.toLowerCase() ? -1 : 1;
};
var dateComparer = function (a, b) {
return Date.parse(a) < Date.parse(b) ? -1 : 1;
};
var numberComparer = function (a, b) {
return a - b;
};
var comparers = {
firstName: stringComparer,
lastName: stringComparer,
emailAddress: stringComparer,
birthDate: dateComparer,
latestBloodPressur... 阅读全帖
s*********y
发帖数: 6151
26
来自主题: Programming版 - 这样写牛逼吗?
我看了是很无语 写的人估计觉得自己很牛逼
key = key === 'firstName' ? 'givenName' : key === 'lastName' ? 'surname' :
key;
d****n
发帖数: 1637
27
来自主题: Programming版 - 这样写牛逼吗?
很沙比,以后维护会很头疼
我会这样写
if (key == 'lastName' ) {
key = 'surname';
}
if (key == 'firstName') {
key = 'givenName';
}

这样写一点也不寒蝉,而且是为人类。 尽量放弃ternary operator
m****r
发帖数: 243
28
来自主题: Programming版 - 这样写牛逼吗?
分行不好而已。
key = (key === 'firstName') ? 'givenName' :
(key === 'lastName') ? 'surname' :
key;
比if语句好的地方: 只有一次赋值。所以如果用grep寻找所有赋值语句一看就清楚,不
用打开文件看上下文。
n*******p
发帖数: 231
29
关于简历 和 找工作 - 几点个人意见
陆陆续续收到一些朋友们的简历。背景都很awesome,但是简历terrible。相反跟我认
识的这里的美国人比,他们的背景都不怎么样,很多psychology或者english专业的,
但是简历相当impressive。这个就是如何UPSELL你自己的问题,或者personal
marketing。
(1)申请一个professional looking的email address。什么叫professional looking
,去找几个business card来看看,一般都是 f****************[email protected]。或者
f*****************************[email protected]。收到的简历目前没有一个是
professional looking的电子邮件。
(2)不要mention你有绿卡。除非你竞争的人100%都是中国人。It ONLY
differentiates you in a negative way as you are telling people that you NOT
... 阅读全帖
t*******e
发帖数: 141
30
Not sure what OP means for company.com. It should be avoided to use
current employer's domain name for job seeking communication. Using
personal email address such as gmail/yahoo/hotmail is more appropriate.
But agree with OP that using FirstName+LastName in the ID part. For example
use JohnDoe123@ mitbbs.com, but not to use tictactoe@ mitbbs.com

com"
need
your
n*******p
发帖数: 231
31
关于简历 和 找工作 - 几点个人意见
陆陆续续收到一些朋友们的简历。背景都很awesome,但是简历terrible。相反跟我认
识的这里的美国人比,他们的背景都不怎么样,很多psychology或者english专业的,
但是简历相当impressive。这个就是如何UPSELL你自己的问题,或者personal
marketing。
(1)申请一个professional looking的email address。什么叫professional looking
,去找几个business card来看看,一般都是 f****************[email protected]。或者
f*****************************[email protected]。收到的简历目前没有一个是
professional looking的电子邮件。
(2)不要mention你有绿卡。除非你竞争的人100%都是中国人。It ONLY
differentiates you in a negative way as you are telling people that you NOT
... 阅读全帖
t*******e
发帖数: 141
32
Not sure what OP means for company.com. It should be avoided to use
current employer's domain name for job seeking communication. Using
personal email address such as gmail/yahoo/hotmail is more appropriate.
But agree with OP that using FirstName+LastName in the ID part. For example
use JohnDoe123@ mitbbs.com, but not to use tictactoe@ mitbbs.com

com"
need
your
n*******p
发帖数: 231
33
当然是用gmail.com的邮件了。我说的professional仅仅指firstname.lastname的格式
而已。

好文
D*a
发帖数: 6830
34
来自主题: Biology版 - 别人叫我Dr怎么办?
Please call me Firstname ?
h********r
发帖数: 821
35
来自主题: Chemistry版 - 我就说说我当年遇见的老板吧
同样,如果你见到姓Levy,Levi或者Levine等等类似的,还有什么Rabbi,Laba,
firstname叫Mose(这个可能广泛了一点),Ehud等等的,尽管大胆猜他是犹太人。
不过这些规律应该都主要适用于米犹,以色列来的犹太人实际上可能拥有全世界的特征。
我所见到的圈内犹太人总体表现还过得去,对中国人不算狠,个别jerk,但是几乎个个
都很会抓钱。

,s
m*l
发帖数: 507
36
来自主题: Environmental版 - 关于修改简历的一个建议
最近几个月,我收到过好几封版上朋友的来信,请我帮着看简历。
版上的资源是非常有限的。如何把有限的资源投入到无限的为版友服务中去,让我非常
头痛。这让我产生了下面这个想法。这个想法来自于编程序的一些网上论坛。
如果你写程序有问题,在论坛上提问第一条原则就是,请附上源程序。然后大家会在发
表的源程序上进行注解。我觉得这是个很好的办法。
所以,我提意,如果你需要大家帮助你修改简历,请将简历贴到版面上来。我想信很多
人都会乐意帮着修改的。这样就能充分利用版上的资源了。下面是个例子。
TOPIC: HEADER OF RESUME
BEFORE:
FIRSTNAME: JIANLI LAST NAME: GAI TELEPHONE: 123-456-7890
EMAIL: E***[email protected]
AFTER:
GAI JIANLI
123-456-7891 E***[email protected]
COMMENTS:
简历强调的就是个“简”。每一个字都要充分发挥它的作用。所以象FIRST NAME/LAST
NAME/EMAIL/TELEPHONE这些大家一看就知道的信息,没有必要写出来占用
d****y
发帖数: 2180
37
请在名单上的同学尽快注册,如果今晚9pm EST还没有注册的话,版务会把你的位置给
在waiting list上面的同学。
“一定是用麦地注册ID填写first name and last name,请
不要用其他方式填写, 如因此不能被批准者,后果自负。”
比如上面VIP 名单第一个是Meganli1998, 那她注册的话:Firstname: Meganli1998,
last name: Meganli1998.
谢谢大家!
m******r
发帖数: 1904
38
☆─────────────────────────────────────☆
hmis (hmis) 于 (Tue Aug 7 22:18:34 2012, 美东) 提到:
根据大家的报名时将先后, 先将人员分为三组, 由各位负责的小组长于近期内通过麦
地信箱发放链接。
重要通知:再用连接注册时,一定适用麦地注册ID填写first name and last name,请
不要用其他方式填写, 如因此不能被批准者,后果自负, 而且,麦地组织者不予以私
信解答, 届时会另开一贴,有问题者跟贴。
再通知:为了公平起见, 此次报名一切以报名时间先后为主, 不接受一切私信报名,
见谅。
讲座开始前链接会开放,请没有排上队的同学关注。 麦地后期还会有一些活动,老规
矩写感想的同学自动成为VIP
VIP:
Meganli1998
cusmle
Ashlin
kittencute
wherewhen123 同声传译
Sarah
mmmouse2010 (mmmouse2010)
zilkr00 (Rubimaks)
gosarah
alexanda (鸭梨山大)
Sarah2 (Sar... 阅读全帖
t**n
发帖数: 4365
39
来自主题: Pharmaceutical版 - 急求Krishna Prasad 的e-mail
有没有其他人的email?很多公司都是f****************[email protected]
m********8
发帖数: 123
40
首先,牛顿的firstname:issacc,好像
藕不以为对:
下中国象棋、围棋、国际象棋的人,技术最厉害的时候在40多岁,而下其是非常烧脑子的
所以,藕认为,一个人不断进取的话,做一定的first-hand的details,40多岁应该是
做物理最好的时候;
历史上、当今,30几岁是做物理出成果最多的时候,那是因为这些人40多的时候,自己
都远离了细节,开始只探讨 BIG 事情 ---unfortunately,BIG事情需要的智商并不
高,一般也不会给你带来任何technical idea
idea产于实践
m*****3
发帖数: 47
41
来自主题: Quant版 - 有人在jpmorgan吗?
F****************[email protected]
d*j
发帖数: 13780
42
select p.FirstName, p.LastName, a.City, a.State
from person as p, address as a
where p.person_ID = a.person_ID
c****o
发帖数: 1280
43
I think you need to join these two tables
select p.FirstName, p.LastName, a.City, a.State
from person as p, address as a
from person JOIN address, ON p.person_ID = a.person_ID
n****e
发帖数: 2401
44
来自主题: Quant版 - Credit suisse 的大牛请进一下
hahaha, they are all firstname.lastname@credit-suisse
t*******g
发帖数: 452
45
你别据说据说什么的。你去top10的学校网上看看就知道了。
下面是一个学校网上的信息。
Student Statistics 2012 Finance Profile
Fall 2012 Admissions
# Applicants 134
# Enrolled 3
他们招了3个。
再看看经济系一年毕业的有多少:
Ph.D. Candidates in 2012-2013
Lastname, Firstname
Almunia, Miguel
Chodorow-Reich, Gabriel
Friedman, Willa
Gerard, Francois
Hausman, Joshua
Herr, Dr. Jane Leber
Huang, Xing
Lee, Insook
Lleras, Dr. Juan Sebastian
Maheshri, Dr. Vikram
Mergo, Teferi
Nayeem, Omar
Noguera, Dr. Guillermo
Poirier, Alexandre
Romem, Israel
Rosato, Antonio
Serafinell... 阅读全帖
t*******g
发帖数: 452
46
你别据说据说什么的。你去top10的学校网上看看就知道了。
下面是一个学校网上的信息。
Student Statistics 2012 Finance Profile
Fall 2012 Admissions
# Applicants 134
# Enrolled 3
他们招了3个。
再看看经济系一年毕业的有多少:
Ph.D. Candidates in 2012-2013
Lastname, Firstname
Almunia, Miguel
Chodorow-Reich, Gabriel
Friedman, Willa
Gerard, Francois
Hausman, Joshua
Herr, Dr. Jane Leber
Huang, Xing
Lee, Insook
Lleras, Dr. Juan Sebastian
Maheshri, Dr. Vikram
Mergo, Teferi
Nayeem, Omar
Noguera, Dr. Guillermo
Poirier, Alexandre
Romem, Israel
Rosato, Antonio
Serafinell... 阅读全帖
p********a
发帖数: 5352
47
来自主题: Statistics版 - [合集] 一个sas问题,急急急!!!
☆─────────────────────────────────────☆
Plainsman (War Eagle) 于 (Mon Apr 21 20:03:38 2008) 提到:
要输入三个table然后用sql,
但是infile文件有问题,因为其中有个变量,既有字母也有数字,而且表中还有很多的
missing data。 该怎么输入数据呢?记录有几万条,不可能手动改啊?
大牛快救我!!!
数据比如说这样:
certno HCID memberno firstName LastName MI
13545899 321A61483 10 MARK ANDERSON
15426551 803A53858 10 JOE AUKSTOLIS
15426551 803A53858 40 JUDITH AUKSTOLIS
15426551 803A5385
i******n
发帖数: 839
48
来自主题: Statistics版 - 嗨一声,死得太难看了
好不容易有朋友推荐个位置,COVER letter 把hiring manager firstname 当成
lastname 了。
p********a
发帖数: 5352
49
来自主题: Statistics版 - [合集] 嗨一声,死得太难看了
☆─────────────────────────────────────☆
integrin (老邢) 于 (Wed Mar 10 00:31:12 2010, 美东) 提到:
好不容易有朋友推荐个位置,COVER letter 把hiring manager firstname 当成
lastname 了。
☆─────────────────────────────────────☆
berry321 (内心要强大) 于 (Wed Mar 10 00:34:57 2010, 美东) 提到:
这没啥吧
☆─────────────────────────────────────☆
berry321 (内心要强大) 于 (Wed Mar 10 00:35:05 2010, 美东) 提到:
这没啥吧
☆─────────────────────────────────────☆
integrin (老邢) 于 (Wed Mar 10 00:52:13 2010, 美东) 提到:
careless mistake kills job opport
首页 2 3 4 5 6 (共6页)