Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Poll
Would you like to see a separate forum on Baanboard for the ION product?
No
13%
Yes
87%
Total votes: 90

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 7th August 2012, 13:36
Tomas Toth Tomas Toth is offline
Junior Member
 
Join Date: Aug 2011
Posts: 20
Tomas Toth is on a distinguished road
Baan: BAAN IV - DB: BAAN IV - OS: WIN 7
BAAN Easy SQL, use one field twice
Baan: Other/Unknown

Hello Baan-gurus
does anyone can help how to compile to sql report to be able to use one field in the report twice, in two columns, where once it link to one field and after it will link to other field.
Reply With Quote
Sponsored Links
  #2  
Old 9th August 2012, 14:30
avpatil avpatil is offline
Guru
 
Join Date: Feb 2002
Posts: 647
avpatil is on a distinguished road
Baan: IVc3 - DB: SQL2000 - OS: Win 2003
You have posted in incorrect forum. If you can give example one can help.But it is simple in select statment you may write like this

where.....
and tdsls040.orno = tdsls041.orno
and tdsls040.orno= tdsls045.orno

this is just exmaple
Reply With Quote
  #3  
Old 9th August 2012, 18:37
tomlbacon tomlbacon is offline
Senior Member
 
Join Date: Nov 2002
Location: Wichita, Ks
Posts: 162
tomlbacon is on a distinguished road
Baan: Baan IVc and Baan V - DB: Oracle - OS: Unix
Read table and read again with Alias

select ticpr300_s.indt:cost.date
from ticpr300 ticpr300_s
where ticpr300_s.item = :tibom010.sitm
and ticpr300_s.indt <= (:hold.old.date + 3600)
| and ticpr300_s.indt >= :tibom010.indt
order by ticpr300_s.indt desc
as set with 1 rows
selectdo
select ticpr300.*
from ticpr300
where ticpr300.item = :tibom010.sitm
and ticpr300.indt = :cost.date
and ticpr300.amnt(1) > 0
order by ticpr300.indt desc
selectdo
if cnt.1 = 0 then
cnt.1 = cnt.1 +1
hold.date = ticpr300.indt
endif

| if hold.date = ticpr300.indt then
if hold.date = ticpr300.indt then
if bom.level(1;1) = "1" then
tot.old.amnt = tot.old.amnt + (ticpr300.amnt(1) * tibom010.qana)
endif
if done.it <> "done.it" then
comp.old.amnt = comp.old.amnt + (ticpr300.amnt(1) * tibom010.qana)
comp.old.date = ticpr300.indt
endif
endif
selectempty
comp.old.date = 0
endselect
done.it = "done.it"
selectempty
comp.old.date = 0
endselect
__________________
Tommy L. Bacon, CPIM
Reply With Quote
  #4  
Old 10th August 2012, 06:06
Tomas Toth Tomas Toth is offline
Junior Member
 
Join Date: Aug 2011
Posts: 20
Tomas Toth is on a distinguished road
Baan: BAAN IV - DB: BAAN IV - OS: WIN 7
Thanks a lot
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Distribution & Manufacturing Documents for Baan baan.tools General Discussion & Chat 15 26th June 2009 13:21
Interview with Jan Baan in an Indian Magazine bamnsour General Discussion & Chat 1 24th September 2007 14:11
Date Field Error during Load Oracle Data into Microsoft SQL server through ODBC wangxn Tools Administration & Installation 2 11th April 2002 14:07
Segregating tools company 000 vanwinkle Operating Systems & Databases 7 5th February 2002 14:22
BSP-US (LLC) added as a Baan Education Alliance svandenh General Discussion & Chat 1 20th August 2001 19:44


All times are GMT +2. The time now is 22:03.


©2001-2013 - Baanboard.com - Baanforums.com