Skip to main content
Solved

I'm trying to retrieve only 10 or so rows from source - SQL Catalog Item

  • August 31, 2023
  • 1 reply
  • 68 views

Forum|alt.badge.img+1
  • Data Pioneer

Hi, I have created a SQL Catalog item in UI however I'm trying to retrieve only 10 or so rows from the database. I am using the SELECT TOP/LIMIT clause to choose how many rows I want to retrieve both queries are having errors, I'm not sure what the problem is, does anyone have any ideas? Thank you.

 

SELECT TOP 10 FROM x 

 

SELECT * FROM x LIMIT 10

 

 

 

 

Best answer by Albert de Ruiter

Hi @C_R

Depending on the underlying database platform there will be different options to limit the number of rows. Therefore I suggest to test the query outside Ataccama on the database directly first.

Kind regards,

Albert

1 reply

Albert de Ruiter
Rocket Pioneer L1
Forum|alt.badge.img+4
  • Rocket Pioneer L1
  • Answer
  • September 1, 2023

Hi @C_R

Depending on the underlying database platform there will be different options to limit the number of rows. Therefore I suggest to test the query outside Ataccama on the database directly first.

Kind regards,

Albert