F
|
Freertool 10/14/2014 |
Hi Forum, Can someone tell me what's wrong with the folowwing? string strSQLExists = "select * from dbo.vCommonData where dbo.vCommonData.EmployeeID = 'dbo.Employee.EmployeeID'"; when i click on the "Check Syntax" button the code gets underlined... Regards, Manuel Roman
|
M
|
mroman98 author 10/14/2014 |
All you need to dos is Select from dbo.vCommonData Employee ID is record in your table, isn't it. Unless you have some type of parameter for EmployeeID otherwise if you do have it declared it would be select from dbo.vCommonDAta where EmployeeID = @EmployeeID Your not doing that, What is it that your trying to do exactly? |
M
|
mroman98 author 10/14/2014 |
Hi, |
F
|
Freertool 10/14/2014 |
Hi, I am trying to read a record from a common data table to populate default values. Regards, Manuel Roman
|
M
|
mroman98 author 10/14/2014 |
3 tables Employee, Bonus detail and Common Data... their all link by employee ID. |
F
|
Freertool 10/14/2014 |
3 tables Employee, Bonus detail and Common Data... their all link by employee ID.
|
M
|
mroman98 author 10/14/2014 |
so you want to join the tables Select * from CommonData INNER JOIN Empolyees ON Commondata.EmployeeID = Employee.ID or EmployeeID |
M
|
mroman98 author 10/14/2014 |
Thanks, |
M
|
mroman98 author 10/21/2014 |
Thanks, I am trying that next. |