quick ms sql query - group and order

完了済み 投稿 6年前 着払い
完了済み 着払い

have database with half dozen fields two of which are xtime and xfrom - xtime is datetime field and xfrom is string with phone numbers. I need a query that will get me a listing that includes all records that has the records in descending time order - but has all the phone numbers grouped - so it only uses the time of the first record with that phone number - so I have 50 records over 10 hours - I need the records shown with most recent phone number and then all of the records for that phone number - then the next phone number by time desc. and all the records for that - etc. etc.

I am doing in a web page so i can do a loop with more than one query if that helps - just can't seem to figure out how to make this work easily.

データベースプログラミング マイクロソフトSQLサーバー SQL

プロジェクトID: #16530651

プロジェクトについて

14個の提案 リモートプロジェクト アクティブ 6年前

アワード:

sun0815

Hello. I read your decription very carefully. I am very interested in your job. I am a sql expert. So I can finish your job in a short time. I'd like to discuss more details via chat. I will wait for your rep もっと

$25 USD 1日以内
(4レビュー)
4.8

14人のフリーランサーが、平均$26 で、この仕事に入札しています。

Eagles90

Dear Client Ready to do it for you now! I have understood your requirements and ready to go for it right away. Warm Regards Z

$25 USD 1日以内
(レビュー1件)
4.5
brianconey

Hi there I have read your job description in detail . I can solve your problem . It is a piece of cake Please contact me and Let 's discuss more thanks for your posting . hope to hear from you .

$25 USD 1日以内
(4件のレビュー)
4.1
logiclast

Hi Dear, I am having an expert level knowledge in DotNet and SQLSERVER. I would love to work in this project to help you get the details of your need. Awaiting your positive response. Regards, Mayuri Patel.

$35 USD 1日以内
(4件のレビュー)
4.1
periyannas

Ok. help you immediately. -----------------------------------------------------------------------------------------------------------------------------------------------------------------

$25 USD 0日以内
(8件のレビュー)
4.3
PATechnology

A proposal has not yet been provided

$20 USD 1日以内
(27件のレビュー)
4.5
Shattenjagger

Hello. Pretty complex query combining temporary view and actual table. But anyway, that’s possible to do. Let’s talk and do the business!

$30 USD 1日以内
(2件のレビュー)
2.9
Rebeater

Hi, I'm a software developer. I have 2 years of experience in SQL Server in business projects with modules such as: Inventories, personnel control, customers, users, reports, sales, among others. I am interested in もっと

$18 USD 1日以内
(レビュー1件)
0.2
manuelvalle1984

Not sure what is the result but I have a lot of experience with T-SQL in SQL Server, so, I'd like to have the chance of helping you

$25 USD 1日以内
(0件のレビュー)
0.0
michaelll111

Hi, I will do it now. I will do it now. I will do it now. I will do it now. I will do it now. Regards

$25 USD 1日以内
(0件のレビュー)
0.0
rkmuduli1

A proposal has not yet been provided

$25 USD 1日以内
(0件のレビュー)
0.0
chaitanyaalapat4

As I am having 5 years of experience in SQL in MNC and have developed so many queries similar to this

$25 USD 1日以内
(0件のレビュー)
0.0