Dumb question. Oracle 10g.
Is it possible for the where clause to affect the connection?
I have a request in the form:
select * from
(select product, product_name from products p
join product_serial ps on product.id = ps.id
join product_data pd on pd.product_value = to_number(p.product_value)) product_result
where product_name like '%prototype%';
Obviously, this is a contrived example. There is no real need to show the structure of the table, like all imaginable. Unfortunately, I cannot show the actual table structure or query. In this case, p.product_value is a VARCHAR2 field, which on some lines has an identifier stored inside it, and not text. (Yes, poor design - but something I inherited and cannot change)
The problem is the connection. If I omit the where clause, the query works and the rows are returned. However, if I add a where clause, I get an "invalid number" error in the connection condition pd.product_value = to_number (p.product_value).
, " " , , p.product_value. , , ? external where, where ? , , where , , , .
?