Subquery: View sample SEDE table data

0

Please login or register to vote for this query.

(click on this box to dismiss)

Subquery of https://data.stackexchange.com/stackoverflow/query/835150 ...returns top 50 records from table specified.

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

--select 'https://data.stackexchange.com/stackoverflow/query/874190/?table=users'

declare @sql nvarchar(50)
if ##table:string## is null 
  begin
    print 'Missing table name'
    return
  end
set @sql = N'select top 50 * from '+##table:string##
execute sp_executesql @sql
--table:Enter a table name

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results