Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Smart Notification
JDBC Connection
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
TomV
Past 24 Hours:
1
Prev. 24 Hours:
2
Overall:
5186
People Online:
Visitors:
320
Members:
0
Total:
320
Online Now:
New Topics
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Smart Notification
JDBC Connection
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Ken Ptak
Basic Member
Posts: 20
11/11/2007 11:59 PM
I just started working with SN's last week (please forgive if this question should not be posted). I have a query built in Access 2003 that runs fine, but when I copy the SQL over to the JDBC connection, I keep receiving an error. I believe it's because the SQL syntax is different between the two, but I don't know what those differences are.
My main objective is to create a SN that will return all Employees who appear in the GMDISTRIB table but do not appear in the GMEFFORT table. Any ideas are much appreciated.
My Access 2003 SQL is:
SELECT LAWSON_GMDISTRIB.EMPLOYEE, LAWSON_GMDISTRIB.COMPANY, LAWSON_GMEFFORT.EMPLOYEE, LAWSON_EMPLOYEE.LAST_NAME, LAWSON_EMPLOYEE.FIRST_NAME
FROM (LAWSON_GMDISTRIB LEFT JOIN LAWSON_GMEFFORT ON LAWSON_GMDISTRIB.EMPLOYEE=LAWSON_GMEFFORT.EMPLOYEE) LEFT JOIN LAWSON_EMPLOYEE ON LAWSON_GMEFFORT.EMPLOYEE=LAWSON_EMPLOYEE.EMPLOYEE
GROUP BY LAWSON_GMDISTRIB.EMPLOYEE, LAWSON_GMDISTRIB.COMPANY, LAWSON_GMEFFORT.EMPLOYEE, LAWSON_EMPLOYEE.LAST_NAME, LAWSON_EMPLOYEE.FIRST_NAME;
Thanks!
Ken
John Henley
Senior Member
Posts: 3348
11/12/2007 1:30 AM
Hi Ken, what database vendor is your Lawson database (i.e. Oracle, MSSQL, DB2, etc.). Typically, the table syntax would be schemaowner.tablename, i.e. LAWSON.EMPLOYEE. So the key is to find out what the schema owner's name is, which can vary dramatically depending on how your system is set up. For example, some people put all databases (i.e. PROD, TEST, LOGAN, etc) within the same database, and use the schema to differentiate (i.e. lawprod, lawtest, lawlogan); others put each set of tables in a unique database, and keep the schema owner generic, like 'lawson'.
Ken Ptak
Basic Member
Posts: 20
11/12/2007 1:06 PM
John - We use Oracle. After thinking about what you said, I was able to get it to work by removing all instances of "Lawson_" from my original posted query.
Thanks for your help!!!
Ken
You are not authorized to post a reply.