Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming

How to order based on their value c1 c2 c3 c4 6 5 1 2 9 3 2

Customer Question
how to order based on...
how to order based on their value
c1 c2 c3 c4
6 5 1 2
9 3 2 5
8 2 7 3
how to get this results
c1 c2 c3 c4 results
6 5 1 2 1-2-5-6
9 3 2 5 2-3-5-9
8 2 7 3 2-3-7-9
Submitted: 2 years ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 2 minutes by:
9/13/2015
Programmer: Aitizaz, Software Engineer replied 2 years ago
Aitizaz
Aitizaz, Software Engineer
Category: Programming
Satisfied Customers: 1,291
Experience: 2 Years of experience with VC#,VC++,C,C++
Verified

Hello and welcome to Just Answer! I am Aitizaz and i will assist you today.

can you tell me the criteria for ordering these values? Also, do you want the result in plain SQL or you are using some software like SQL server etc.?

Ask Your Own Programming Question
Customer reply replied 2 years ago
well i have gridview where this will be as part of the columns that gets displayed
so i want that under query select statment
here the question again
column1 column2 column3 column4
8 7 9 1
6 3 1 2
5 2 4 3
8 6 3 1
so the answer should be
column1 column2 column3 column4 column5
8 7 9 1 1-7-8-9
6 3 1 2 1-2-3-6
5 2 4 3 2-3-4-5
8 6 3 1 1-3-6-8
Customer reply replied 2 years ago
column1 column2 column3 column4
8 7 9 1
6 3 1 2
5 2 4 3
8 6 3 1so the answer should be
column1 column2 column3 column4 column5
8 7 9 1 1-7-8-9
6 3 1 2 1-2-3-6
5 2 4 3 2-3-4-5
8 6 3 1 1-3-6-8
Customer reply replied 2 years ago
column 5 will order each row from minimum value to max and concatenate them
Programmer: Aitizaz, Software Engineer replied 2 years ago

minimum value in this case is -9 but you have started off with the value of 8

can you please put these columns in tabular form here so that i may understand it more easily?

Ask Your Own Programming Question
Customer reply replied 2 years ago
im using c# ***** i want this to be displayed undergridview
Programmer: Aitizaz, Software Engineer replied 2 years ago

can you put these values in a table ( may be in MS word) and upload the file here so that i have a clear understanding of the situation

Ask Your Own Programming Question
Customer reply replied 2 years ago
dash doesnt count the columns have integer values so order columns5 is having a concatenation for this columns reflecting
these columns value orders
Programmer: Aitizaz, Software Engineer replied 2 years ago

with your permission, i will re-iterate that kindly provide me the values in tabular form in an MS WORD or MS EXCEL format along with column5 and the logic with each row

Ask Your Own Programming Question
Customer reply replied 2 years ago
i attached the question,sorry i couldnt accpt the call becuase it gonna be pricy for me
Programmer: Aitizaz, Software Engineer replied 2 years ago

no problem. let me check and i will get back to you in a while

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

Right. so now i understand the query. This basically needs to be implemented row wise. can you hand over the C# ***** so that i may have a look at it to get the exact idea of data handling?

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

or you just want me to write the query / SQL statement for column5 which you will incorporate yourself?

Ask Your Own Programming Question
Customer reply replied 2 years ago
u look at column1 ,column2,column3 ,column4 and then order them and concatenate them(so column 5 have concatention not minus sign)
its as Atizaz-software not atizaz minus software
Programmer: Aitizaz, Software Engineer replied 2 years ago

i understand that

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

please give me some time to work on it.

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

do we have 2-3 hours?

Ask Your Own Programming Question
Customer reply replied 2 years ago
u have till monday 5 am ,but try before that
Programmer: Aitizaz, Software Engineer replied 2 years ago

thank you very much. i will get back to you soon with a solution.

Ask Your Own Programming Question
Customer reply replied 2 years ago
thank u
Programmer: Aitizaz, Software Engineer replied 2 years ago

Pleasure!

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

hello! is the data stored in database or it in only available in datagrid (static values) ?

Ask Your Own Programming Question
Customer reply replied 2 years ago
the data is stored in a database ,the data grid is just to display the data ,the grid will not be used to do functionality as sort or anything
Customer reply replied 2 years ago
email me at***@******.***
if u have any question
Customer reply replied 2 years ago
do think pivot can solve it
by finding minimum
select case
when a<=b and b<=c and c<=d then a
when b<=c and c<=d then b
when c<=d then c
else d
end as min_n
Pivot on that to get
minco1 micol2 and concatenate them
i dont know i asked you this could be solution if u couldnt find any ,hopefully u found solution ,still pivot style didnt work with me thats y i told u
Customer reply replied 2 years ago
its past 5 am.
are u close to anything
Customer reply replied 2 years ago
hay i got funny guy who respond use when case as a reply
no more than that ,
Programmer: Aitizaz, Software Engineer replied 2 years ago

Hello! do you still want me to work on it please?

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

actually i did not work on it, waiting for your reply

Ask Your Own Programming Question
Programmer: Aitizaz, Software Engineer replied 2 years ago

now as the requirement is clear, i will take not much time to develope it. can you share the database with me so that i may work directly on it?

Ask Your Own Programming Question
Customer reply replied 2 years ago
oh sir someone from differnet site replied
i waited for u but i understand im programmer too and poor like hill.
thanks again
Ask Aitizaz Your Own Question
Aitizaz
Aitizaz
Aitizaz, Software Engineer
Category: Programming
Satisfied Customers: 1,291
1,291 Satisfied Customers
Experience: 2 Years of experience with VC#,VC++,C,C++

Aitizaz is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,109 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

789 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I can't open an existing excel spread sheet from the file
I can't open an existing excel spread sheet from the file itself. I have to open excel first then select the file to see the data. I'm unable to do a mail merge to word by selecting the data file. I h… read more
robert
robert
Bachelor's Degree
2,594 satisfied customers
How do I write this formula correctly in excel? Excel 2010
Hello Pearl How do I write this formula correctly in excel? … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I have excel 2013. and I'm trying to load the solver add-in.
I have excel 2013. and I'm trying to load the solver add-in. That seems to have been successful, but I don't have and 'analysis group' in the data tab. What's the problem? Cheers, … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I need Excel help that is advanced in nature... In Excel, I
Hello, I need Excel help that is advanced in nature... … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I am trying to make a formula in an excel cell that will
I am trying to make a formula in an excel cell that will state if the value in cell L2 is 2 than the range in cells J2, J3 ,J4 is 50 to 58, if the value in L2 is 3 Than the range in J2, J3, J4 is 55 t… read more
John D
John D
Bachelor Degree in Engineering
342 satisfied customers
I have an Excel question how does this work? Excel 2010. I
I need a formula but it would be easier to show you what I need rather than trying to explain it is there a way I can do that? … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,208 satisfied customers
Changed formatting resets every time excel is opened. Excel
changed formatting resets every time excel is opened … read more
R LAFAYETTE
R LAFAYETTE
Intel Technology Provider 2017 GOLD
29 satisfied customers
We have a schedule (excel/VBA) that was created by a person
we have a schedule (excel/VBA) that was created by a person no longer at our company. It has multiply tabs and at the time it worked great. Now we need to add product however it does not have the simp… read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
I just have one question on excel. Excel 2016. I need some
HI I just have one question on excel JA: What programs and versions are you using? Customer: excel 2016 JA: What is your ideal outcome? How can we solve this for you? Customer: I need some tip tips st… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
I need some help with an excel formula. Microsoft excel
I trying to use an index and match function using three criteria to pull a value off of a chart … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
I know that Excel is a math based program. Is there a way to
I know that Excel is a math based program. Is there a way to learn it with limited math skills? … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,208 satisfied customers
I need help with excel function. Excel 2013. I have a math
i have a math problem and i have been posting in many sites … read more
John Lohr
John Lohr
Owner / Technology Specialist
Teaching Certification
379 satisfied customers
When accessing Excel, I receive the following message:
When accessing Excel, I receive the following message: "Microsoft Office cannot verify the license for this product." I cannot get past this message. What do I need to do. … read more
Bryan
Bryan
IT Consultant
8,745 satisfied customers
I cannot use save as in Excel. It sends a message of Excel
Hi, I cannot use save as in Excel. It sends a message of Excel is not responding and then I have to restart the program. … read more
Shefin
Shefin
Technical Support Executive
Engineering Diploma
218 satisfied customers
I am looking for some excel help, excel 2016, to get an
to get an excel function that will filter results from a data set based on specific criteria and then populate the filtered data set on a different worksheet. Ideally, I want to have 4 separate data sets on a separate worksheet that meet specific criteria from a master list … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
What are your rates? Excel 10, Can You write Excel 10
Can You write Excel 10 Program for calculating: A + B - C = D for a Table of numbers consisting 3 columns of 10 rows, each row having 10 different numbers, and compute each and every possible combination, 1000 combinations ? … read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,109 satisfied customers
Have an excel formula issue, Excel 2016, need the fomula to
have an excel formula issue JA: What programs and versions are you using? Customer: Excel 2016 JA: What is your ideal outcome? How can we solve this for you? Customer: need the fomula to work JA: Anyt… read more
Russell H.
Russell H.
computer technology consultant
Vocational, Technical or Trade Scho
775 satisfied customers
I want to install my excel, I accidently unistalled my excel
I accidently unistalled my excel and now I want to re-instal … read more
ChrisC
ChrisC
PC Technician
Associate Degree
659 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x