Teradata : Delete n rows from a table -


i wanted delete first n rows or last n rows table in teradata. not getting correct query doing this. can please tell me how can this?

i dont have experience in working teradata if working sql make :

delete |tablename| |the id column name| in (select top(n) |the id column name| |tablename|) 

so example if have customer table , table contains customerid primary key column , customername , delete first 10 rows :

delete customer  customerid in (select top(10) customerid  customer) 

i hope can


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -