79562229

Date: 2025-04-08 13:53:26
Score: 1.5
Natty:
Report link

Use the following query to obtain the count of records available for each table in descending order (from high to low) - include conditions if necessary:

select distinct t.name as Table_Name,p.rows as Noof_Records from sys.tables t inner join sys.partitions p on t.object_id=p.object_id where create_date<='15-apr-2025'

order by p.rows desc

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Raj Kumar