🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.database
Article #1057

Re: �и��򵥵���ݿ��ѯ������̴�ң�

#1057
From: Schumi
Date: Thu, 10 Apr 2008 07:41
27 lines
1761 bytes
select a.[StaffID],a.[Name],a.[position],b.[StaffName] as subleaderName,b.[p
osition] as subleaderPosition, c.[StaffName] as LeadName, c.[position] as le
adPosition 

from StaffBasic as a, StaffBasic as b, StaffBacis as c, Relation as r

where a.[StaffID]=r.[StaffID] and b.[StaffID]=r.[subleaderID] and c.[StaffID
]=r.[LeaderID]

�������ô


�� �� hhybigfool (����) �Ĵ������ᵽ: ��
: �����ű�
: Relation:
: StaffID , subleaderID, LeaderID , ManagerID
: StaffBasic:
: StaffID, Name��position
: ϣ��õ��Ľ��
: staffbasic�Ļ���Ϣ+ subleaderName,subleaderPosition+LeadName+leadPosition...
: StaffID, Name��position,SubleaderName, subleaderPosition,LeadName,leadPosition
: ˵���������ó�subleaderId��ȥstaffbasic������ as SubleaderName��Ȼ��right jo
: in�������Dz��԰�
: .................������ʡ�ԣ�
--

�� ��Դ:����ˮ˼Դ bbs.sjtu.edu.cn��[FROM: 207.46.55.28]
Technical Details
Message-ID: <4ZPFl9$aug@bbs.sjtu.edu.cn>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.netfront.net!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.shec6.edu.cn!SJTU

Show Full Headers
Complete Article Headers
X-Google-Thread: 101948,3700462e17833c69,start
X-Google-Attributes: gid101948,domainid0,public,usenet
X-Google-Language: ENGLISH,GB
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.netfront.net!newsgate.cuhk.edu.hk!news.neu.edu.cn!news.shec6.edu.cn!SJTU
From: Goliath.bbs@bbs.sjtu.edu.cn (Schumi)
Newsgroups: cn.bbs.comp.database
Subject: Re: �и��򵥵���ݿ��ѯ������̴�ң�
Date: 10 Apr 2008 07:41:54 GMT
Organization: ��ˮ˼Դ
Message-ID: <4ZPFl9$aug@bbs.sjtu.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: database/M.1207812057.A
Lines: 27