Viewing 14 posts - 1 through 15 (of 15 total)
Thanks CELKO.
You are right. ISO 4217 currency codes look up is the best option to use.
Thanks again.
October 15, 2010 at 3:02 am
Perfect !.. thanks.Dont mind I am not familer with SQL..
October 14, 2010 at 6:12 am
select ISNULL(ts_Countries.CountryName, 'Unknown Country') as Country,
case when ts_Countries.CountryName = 'United Kingdom' then CONVERT(varchar(12), CostLocal, 1) + '£'
else ''
end,
Can we have a coulmn here instead of...
October 14, 2010 at 6:03 am
Thanks very much. it is very much useful stuff.I will test with table variable.
I have 45 countrries in table.
Here is my query snippet..i did changed as for my reqs.
select
ISNULL(ts_Countries.CountryName,...
October 14, 2010 at 5:59 am
Thanks a lot. switch case is working fine.But the excuetion time is high...
October 14, 2010 at 5:33 am
Yes.Right but that leads to be lot changes required in the DB and application side.
This report query just out of the application.
October 14, 2010 at 4:22 am
Thanks. you made my day mate!
September 15, 2010 at 9:18 am
Yes. I am very new to write sql queries.
I will try get understand your queries..Thanks for your time.
July 14, 2010 at 6:13 am
Thanks!
When i am modifying your query like below. I am getting zero rows.
Please can you check my query.
DECLARE @ts_vSignOffStatus AS TABLE(
[RequestID] INT,
[ApproveLevelName] VARCHAR(35))
--Now to the query
;WITH cte ( [RequestID], [Approval...
July 14, 2010 at 6:12 am
Please see my details below in bold text
DECLARE @TABLE AS TABLE(
[RequestID] INT,
[ApprovalName] VARCHAR(35))
INSERT INTO @TABLE([RequestID],[ApprovalName])
--- the below sample data i want query , i wnat use for tables...
July 14, 2010 at 6:03 am
Hi,
I have last question, how can i make this query for dynamic data instead of sample static data.
ex: select the rows from the table.
Thanks again..
July 14, 2010 at 5:56 am
Hi,
I want write one more select query like below:
I have written below query to get the total of each indicual items with same RequestID(requestitemsID are different)
select
(ts_a.CostLocal * ts_a.Qty)*(ts_b.ExchangeRate))...
July 14, 2010 at 5:46 am
Thanks a lot!! ..much appriciated for your help..its perfect..
July 14, 2010 at 5:45 am
Viewing 14 posts - 1 through 15 (of 15 total)