Thread: hi sir urgent..required a Query

hi sir urgent..required a Query

From
"Rajeev Chaudhary, Noida"
Date:
Hi Sir,
I am attaching a document with this file showing two table.. <<table_for_
you.doc>>

It consist of two table VALUE AND VALUE_TYPE..

when i have value_type_id=1 i must get Value_varchar column value

when i have value_type_id=2 i must get Value_int column value
Please send a SQL query for this...


I want to retrive

Thanks and Regards

Rajeev Chaudhary
HCL Technologies Ltd,
A-11, Sector 16, Noida, (U.P.) India
Email : rajeevc@noida.hcltech.com
Phone: +91 (120) 2510701 extn :3321




Disclaimer:

This message and any attachment(s) contained here are information that is
confidential,proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law.The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward,
print,retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.



Attachment

Re: hi sir urgent..required a Query

From
Josh Berkus
Date:
Rajeev,

> I am attaching a document with this file showing two table.. <<table_for_
> you.doc>>
>
> It consist of two table VALUE AND VALUE_TYPE..
>
> when i have value_type_id=1 i must get Value_varchar column value
>
> when i have value_type_id=2 i must get Value_int column value
> Please send a SQL query for this...

Please re-post this with your table design in the body of your e-mail, and NO 
doc attachment.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco