Skip to Content

Get All cenvat taxcode using sql query

Dear all,

I want to all cenvat taxcode.

I have used foll query. bt not giving proper result.

SELECT T0.CODE,NAME FROM OSTC T0

INNER JOIN OTFC T1 ON T0.TfcId=T1.AbsId

INNER JOIN TFC1 T2 ON T1.AbsId=T2.TfcId

WHERE T2.TYPEID IN (SELECT ABSID FROM OSTT WHERE nftaxid=-50)

GROUP BY T0.CODE,NAME

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 02, 2014 at 12:21 AM

    Hi,


    Try this query:

    SELECT T0.[Code], T0.[Name] FROM OSTC T0 left JOIN OTFC T1 ON T0.TfcId = T1.AbsId left JOIN TFC1 T2 ON T1.AbsId = T2.TfcId GROUP BY T0.[Code], T0.[Name]

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.