Hi,
I am trying to create a blank reecord if the values in the column doesn't match, but I am running into some problems.
For example I have the following values
ID, BLDG, WBLDG
323,NV HOMES,NV HOMES -- OK
323,NV HOMES,NV HOMES11-- Not OK. User wants something like
323,NV HOMES
323 NV HOMES11
I am using the following query.
select distinct id,
BCN as bldg,
(select VALUE from WR_A where WR_A_CODE = 'CONFIG NAME' and wr_no = c.wr_no) as WBLDG
From WRc,
BCA d,
BWR e,
BBC g
where c.wr_no = e.wr_no and
g.bca_id = e.bca_id and
d.id = e.bca_id and
e.bca_id = 323
group by BCN, id, c.wr_no
Any help is very much appreciated on this.
Thanks.
I am trying to create a blank reecord if the values in the column doesn't match, but I am running into some problems.
For example I have the following values
ID, BLDG, WBLDG
323,NV HOMES,NV HOMES -- OK
323,NV HOMES,NV HOMES11-- Not OK. User wants something like
323,NV HOMES
323 NV HOMES11
I am using the following query.
select distinct id,
BCN as bldg,
(select VALUE from WR_A where WR_A_CODE = 'CONFIG NAME' and wr_no = c.wr_no) as WBLDG
From WRc,
BCA d,
BWR e,
BBC g
where c.wr_no = e.wr_no and
g.bca_id = e.bca_id and
d.id = e.bca_id and
e.bca_id = 323
group by BCN, id, c.wr_no
Any help is very much appreciated on this.
Thanks.