[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

I wanna retrieve data from two worksheets in the .xlsx file by doing join operation on them using olebd c#.wrote the query as (@"select * from [sheet1$] inner join [sheet2] on sheet1.Id = sheet2.id"

Posted on 2016-10-22
2
Medium Priority
?
53 Views
Last Modified: 2016-11-11
But it's giving error "no value passed to one or more required parameters"..
0
Comment
Question by:Susmita Patra
[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
2 Comments
 
LVL 35

Accepted Solution

by:
[ fanpages ] earned 2000 total points (awarded by participants)
ID: 41855577
The exact SQL statement needed will depend on how you are opening the connection to the MS-Excel workbook file, certainly depending if you are using the "HDR=Yes" parameter, but I suspect you may need to revise what you have at present to something like this:

SELECT * FROM [Sheet1$] INNER JOIN [Sheet2$] ON [Sheet1$].[Id] = [Sheet2$].[id]
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 41883574
Without further input from the Asker this comment is the 'best' solution.
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

650 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