TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sai Reddy
NA
214
31.2k
Dynamic query in sql server
May 22 2018 2:52 AM
I have faced a interview question.
Input
Id Country Amount
1 India 1000
2 US 2000
3 Dubai 30000
Output
Id Country Amount Currency
1 India 1000 Rupee
2 US 2000 Dollor
3 Dubai 30000 Dhiram
I wrote a query with case statement for above three records, he asked me to write a dynamic query for lakhs of records. How can i acheive it?
Thanks in advance.
Reply
Answers (
2
)
Running query in sql server
Error in my sql server query