Manoj Chaurasia Posted February 22, 2019 Share Posted February 22, 2019 We are using a SQL Query to get some data from our ERP system, but the results shows mutiple rows. I want to show only the first row of the results. Query looks like: SQLQUERY(S12,"SELECT id-cdads FROM data.pub.""ba-012"" WHERE ""Zoeksleutel"" = '%s'") How can I select the first row of the field id-cdads Link to comment Share on other sites More sharing options...
Wes Couturier Posted February 22, 2019 Share Posted February 22, 2019 Hello Stefan, If you're not looking for any particular record from that table, have you attempted to use a "Select Top 1 id-cdads ..." SQL query See the following Stack Overflow page for a refernce: https://stackoverflow.com/questions/1891789/sql-select-first-10-rows-only If you're still stuck, can you tell us what is your ERP system Does it use SQL Server Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now