Find out the column values based on primary key from one table [message #690207] |
Sun, 08 December 2024 11:01 |
|
vasu.bods703
Messages: 2 Registered: March 2015 Location: Chennai
|
Junior Member |
|
|
Hi Experts,
I have a view with selecting columns from multile tables. In that one table column value is not matching with Test and Prod.
So i need to find out that not matching value coming from which table and that table primary key.
Example:
View
----
create view demo_view
as
select
A.Product_id
B.Customer
C.Product_desc
D.cust_desc
from A left join B
on a.product_id=b.product_id
left join c
on a. cust_id=c.cust_id
left join D
on a.member_id=d.member_id.
when i select product,customer,product_desc,cust_desc from dempo_view where product=12345;(That particuler product(12345)
product_desc value is coming wrong)
but when i cehck product_desc from C table. it is producting multiple values, I need to find out based on c table primary
key i have to look exact value of product_desc
if my question is not undurstand, please let me know
Thanks,
Vasu
|
|
|
Re: Find out the column values based on primary key from one table [message #690208 is a reply to message #690207] |
Sun, 08 December 2024 12:00 |
John Watson
Messages: 8962 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
I can't understand what you are trying to do or what the problem is. Part of this is because you have named your tables A, B, C, and D which gives no hint of what they actually are. I'm guessing that B is a fact table and that A, C, and D are dimension tables. Is that correct? If you can explain this, then perhaps someone can help.
|
|
|
|
|
|