473,836 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SELECT of Members

Hi,

I just wondered how I can do a SQL SELECT on a table that has more than one
member and I want do specify the name of the member. I tried
select * from filename(member )
and
select * from filename.member
Both didn't work. Any ideas?

Michael
Aug 1 '07 #1
3 10748
On Aug 1, 7:58 am, Michael Roppel <m.rop...@kapsg mbh.dewrote:
Hi,

I just wondered how I can do a SQL SELECT on a table that has more than one
member and I want do specify the name of the member. I tried
select * from filename(member )
and
select * from filename.member
Both didn't work. Any ideas?

Michael
Hello, I am not sure I understand your question but if you mean that
"filename" is the name of the table and "member" is a column in the
table and you would just like to list that column then you would just
need to do:

select member from filename
or
select * form filename where member = 'somename'

or are you wanting to just list all the columns of the table?? In that
case :

db2 describe table filename

Aug 1 '07 #2
Michael Roppel wrote:
Hi,

I just wondered how I can do a SQL SELECT on a table that has more than
one member and I want do specify the name of the member. I tried
select * from filename(member )
and
select * from filename.member
Both didn't work. Any ideas?
If you are using DB2 for i5/OS (System i, iSeries, AS/400) you could
create an alias:
http://publib.boulder.ibm.com/infoce...atingalias.htm

--
Karl Hanson
Aug 1 '07 #3
Thanks, that is what I wantet to know!
Michael

Karl Hanson schrieb:
Michael Roppel wrote:
>Hi,

I just wondered how I can do a SQL SELECT on a table that has more
than one member and I want do specify the name of the member. I tried
select * from filename(member )
and
select * from filename.member
Both didn't work. Any ideas?

If you are using DB2 for i5/OS (System i, iSeries, AS/400) you could
create an alias:
http://publib.boulder.ibm.com/infoce...atingalias.htm
--
Karl Hanson
Aug 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2393
by: callmebill | last post by:
I'm relatively new to javascript, and I'm trying to decide whether the following (and if so, clues on how to do it): I'd like to create two HTML multiple-select boxes. The first would be a list of items, and the second would be a list of categories. By clicking a category in the 2nd box, the members of that category (from the first box) would be highlighted (indicated here by arrows). E.g., -- List of Nums -- -- Categories -- 1...
14
2945
by: Jos? | last post by:
This one droves me completely mad. I did not succeed to exploit the track given to me by Bob. I have : three tables : Clubs, Persons and ClubsPersons that join the two first in a many to many relationship. Club has two (2) fields : ClubId (Autonumber) and ClubName (Text). Peoples has two(2) fields : (PersonId (Autonumber) and PersonName (Text) ClubsPersons has two (2) fields : ClubId (LongInteger) and PersonId
4
2273
by: wizard_chef | last post by:
I have a database containing info on subscribers to an organization. I have one table with members info in it (name, address, etc.), another table containing orders for membership, (AV materials, etc.), and other ancillary related tables. I need to query my database to find all of the members who paid their dues last year, but did NOT pay this year. Sounds easy, but I can't seem to create a query or queries that does the job. When I...
4
1776
by: petersk | last post by:
I want to produce age profile information from a group of club members with recorded dates of birth. I can create a selct query to count the number of members between 20 and 30 years of age (for example) OK. I want to count them for 20-30 and 30-40 and 40-50 etc and can only do this by repeating the query (or SQL) repeatedly. I am a novice programmer (although a senior citizen) and suspect that there is an easy way. If there isn't I...
5
2139
by: Allan M. | last post by:
I have a series of select boxes that must be populated client side, because they interact with each other. The design specification calls for these boxes to be updated without having to make a roundtrip to the server. The codebehind seems to be unaware of select box members populated via javascript. So, I'm having to create my own state management solution, (i.e. rewriting the VIEWSTATE mechanism) to persist the state of these select...
16
1729
by: Crirus | last post by:
I have a class. I need to write a routine in this class, that loop through it's members (in a instance of the class) and concatenate all members values as string. I need to filter does members with a custom attribute (found a way), so only some of them are considered to be added to final string. The hard part is that some members are class instances them selfs and the same method should be called for them and the returning string should...
2
2197
by: unabogie | last post by:
I have a table with entries tied to a membership database. The problem is that I want to select a limit of sixteen entries per member, per day, where some members have 16+ entries per day. I have this so far ( which I've simplified for this post) SELECT dbo.members.firstname, dbo.members.lastname, dbo.entries.gameDay FROM dbo.members INNER JOIN dbo.entries ON dbo.members.memberID =
4
1634
by: jmDesktop | last post by:
Hi, I am trying to reference this select: <form id="form3" method="post" action="exceptions.php"> <input type="hidden" name="id" value="<?php p($course->id) ? <input type="hidden" name="grade_itemid" value="<?php p($selectedgrade_item) ?>" /> <input type="hidden" name="sesskey" value="<?php p($USER- <input type="hidden" name="action" value="excepts" /> <select name="members" size="15" multiple="multiple">
25
5414
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if my question needs to be here or in coldfusion. If i have my question is in the wrong section i am sorry in advance an will move it to the correct section. Basically i have a multiple select box. An it works except for this one part i want to add to it.The first box i have is called project members which shows the users you can choose to send an email to and the other box is called assignees which is the...
3
4229
by: abhijeetraje | last post by:
I am applying XSLT to WSDL to generate html pages. now, as WSDL is not having comprehensive details, i am adding XML documentation (.NET) as well in XSLT. like this.. <xsl:variable name="ddoc" select="document('CustomerCare.ManageMeterReads.ServiceContracts.xml')" /> Here is the XML documentation.... <?xml version="1.0"?> <doc> <assembly> <name>CustomerCare.ManageMeterReads.ServiceContracts</name>
0
9816
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9668
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10840
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10546
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6978
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5647
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3112
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.