Solved

How to Arrange data Together

Posted on 2014-02-11
2
235 Views
Last Modified: 2014-02-18
Hi Experts,
I am sending an image can you check and let us know how we can display data together of particular vehicle in sql server 2008 by orderly .


Thanks in advance
TableData.png
0
Comment
Question by:Asrar Azmi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 500 total points
ID: 39850051
What you need is to group by that column.

Check the GROUP BY syntax here:
http://technet.microsoft.com/en-us/library/ms177673.aspx

Hope that helps.
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 39850070
Here's an article on SQL Server GROUP BY Solutions that would be a good read for you.

>how we can display data together of particular vehicle in sql server 2008
GROUP BY will group records by whatever column you choose, in this case vehicle.  You'll want to put some thought into which columns you want to display and which ones you don't.  Looking at your screen shot, you can return a set with 5624, 6684 as single rows, but you won't be able to display other columns with different values, such as speed.

You'll want to spell out in detail what you want to display, and we'll help with that.

>by orderly .
Not sure what you mean here.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql query help 15 53
How to add a suffix to a value in a column based on the value in another column 4 32
Copy data to New Year 9 33
Can I skip a node in XML? 9 34
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question