Ask a Question related to Coldfusion Database Access, Design and Development.
-
whatsaname #1
Set new variable name.
I've got two tables: one called issue and one called regionmail.
On table issue, i've got a collomn called SPARPROD. with only does have values
of "Products" or "SPARES.
On table regionmail, there are two collomns, one called "Products" and one
called "Spares", both collomns do have
different values.
I do need to get the value from Table Issue, collomn SPARPROD. ( this could
be either Products or Spares).
With should be placed in a new variable name( A none existing one of both
table quiries), with should call from table Regionmail , either the colloumn
Products or Spares.
( this depends on the value picked out of the collumn SPARPROD from table
issue)
Thanks in advanced
whatsaname Guest
-
#39634 [NEW]: session variable and normal variable
From: erhanbaris at gmail dot com Operating system: Win Xp SP1 PHP version: 5.2.0 PHP Bug Type: Variables related Bug... -
#39251 [NEW]: variable variable class array property is read only
From: taskfreak at gmail dot com Operating system: mac os PHP version: 5.1.6 PHP Bug Type: Class/Object related Bug... -
#22237 [Com]: PHP crashes when class references property using variable variable
ID: 22237 Comment by: rep at devdomain dot com Reported By: peter at globalvision dot com dot au Status: Closed... -
passing javascript variable into asp variable using vbscript
The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script... -
Datalist - how (if) to use a sub variable or session variable in the footer?
Hi, sorry to be greedy with all my posts lately, but can you tell I'm doing new things this week? I've just done my first datalist (a simple... -
yalta #2
Re: Set new variable name.
You did not specify the relationship between the tables, i.e. is there one
regionmail per sparprod? Anyway, you should try it with a UNION
That is, if products and spares are of the same type. I also assumed there is
a foreign key relationship between the tables:
************************************************** **********
select i.iid, products from issue i, regionmail r
where r.iid=i.iid
and i.SPARPROD = 'products'
union
select i.iid, spares from issue i, regionmail r
where r.iid=i.iid
and i.SPARPROD = 'spares'
yalta Guest



Reply With Quote

