Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SQL query with needed blank records

Author  Topic 

Girolamo
Starting Member

1 Post

Posted - 2014-07-04 : 03:31:05
Hi,

I'm new to the forum and this is my first topic.

I'm having some diffult to get a query output with a table.

Here is the table:

Role Name Surname OperationAdministrative John Smith Order sent
Administrative Mark White Order redacted
Employee Jack Connor Order sent
Administrative John Smith Order sent
.... ... .... ....

I would need this kind of output
Role Name Surname OperationAdministrative John Smith Order Sent 2
Order redacted 1
Employee Jack Connor Order Sent

Since the customer would have this data into an Excel file, I can't create a report but I have to use sql to get the result.

How can I obtain thie result?

Regards,
G.

adsingh82
Starting Member

20 Posts

Posted - 2014-07-07 : 02:51:58
Please refer the below link it dictates how to read data from excel

http://dotnetbites.com/read-data-from-excel-openrowset

Regards,
Alwyn.M
Go to Top of Page
   

- Advertisement -